Documentation Index
Fetch the complete documentation index at: https://mintlify.com/joaquinobed/simple-invoice/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The company profile contains your business information that appears on invoices and throughout the Simple Invoice system. All settings are stored in theperfil table.
Profile Configuration
Access the company profile by navigating to the configuration page (perfil.php). The profile is identified by id_perfil=1 in the database.
Database Schema
Theperfil table contains the following fields:
Configuration Fields
Company Information
Company name (up to 150 characters)
Company phone number (up to 20 characters)
Company email address (up to 64 characters)
Address Information
Street address (up to 255 characters)
City name (up to 100 characters)
State, region, or province (up to 100 characters)
Postal or ZIP code (up to 100 characters)
Financial Settings
Tax/IVA percentage (2 digits max)
Currency symbol (up to 6 characters)Selected from the See Currency Configuration for available currencies.
currencies table:Company Logo
Path to company logo image (up to 255 characters)The logo is displayed on invoices and the profile page:
Logo Upload
The system supports logo uploads via AJAX using the file upload input:Upload Implementation
Logo uploads are processed by
ajax/imagen_ajax.php and stored in the img/ directory.Updating Profile
The profile form submits data via AJAX toajax/editar_perfil.php:
Example Data
Here’s an example of a complete company profile:Company Name
SISTEMAS WEB LA
Tax Rate
13%
Currency
$ (US Dollar)
Location
Moncagua, San Miguel
Best Practices
Logo Requirements
Logo Requirements
- Use PNG or JPG format
- Recommended size: 200x200 pixels or larger
- Keep file size under 1MB for optimal performance
- Logo should have a transparent background for best results
Tax Configuration
Tax Configuration
- Enter the tax percentage as a whole number (e.g., 13 for 13%)
- The system stores this as an integer (2 digits max)
- Tax is applied to invoices automatically
- Update this value when tax rates change
Required vs Optional Fields
Required vs Optional Fields
Required fields:
- nombre_empresa (Company name)
- telefono (Phone)
- direccion (Address)
- ciudad (City)
- impuesto (Tax rate)
- moneda (Currency)
- estado (State/Region)
- codigo_postal (Postal code)
- logo_url
