Understanding Sales Documents
FacturaScripts supports several types of sales documents:- Estimates (Presupuestos): Non-binding quotes for potential customers
- Orders (Pedidos): Confirmed customer orders
- Delivery Notes (Albaranes): Shipping documentation
- Invoices (Facturas): Final billing documents
Creating a Customer Invoice
Navigate to Sales
Go to the Sales menu and select Invoices from the dropdown. This opens the invoice list view.
Create New Invoice
Click the New button to open the invoice creation form. The system will automatically:
- Assign the next invoice number based on your series configuration
- Set today’s date as the invoice date
- Select the default warehouse
Select Customer
Start typing the customer name or code in the customer field. The autocomplete will show matching customers. Select the appropriate customer.
Configure Invoice Details
Set the following invoice parameters:
- Series (Serie): Invoice series for numbering
- Date (Fecha): Invoice date
- Payment Method (Forma de pago): Customer’s payment method
- Warehouse (Almacén): Source warehouse for stock
Add Invoice Lines
Add products or services to the invoice:
- Click Add Line or start typing in the reference field
- Select a product from the autocomplete list
- Enter the quantity
- The system automatically calculates:
- Unit price from the product’s price list
- Line discount (if applicable)
- Tax rates based on product configuration
- Line total
You can add custom lines without a product by entering a description directly.
Apply Discounts
Apply discounts at two levels:
- Line discount: Applied to individual lines
- Document discount: Applied to the entire invoice subtotal
Review Totals
Verify the calculated amounts:
- Net Amount (Base imponible): Sum before taxes
- Taxes (IVA/IRPF): Applied tax amounts
- Total: Final invoice amount
Creating Quotes (Estimates)
The process for creating estimates is similar to invoices:Create Estimate
Click New and fill in customer details and line items following the same process as invoices.
Generating Payment Receipts
After creating an invoice, you can generate payment receipts based on the payment method:Configure Payment Schedule
Choose one of two options:Automatic Split: Enter the number of receipts to split the payment into equal installments.Custom Amounts: Specify exact amounts for each receipt (up to 5 receipts) by entering amounts in the provided fields (EditFacturaCliente.php:189-199).
Creating Refund Invoices
To create a refund or credit note for an existing invoice:Select Items to Refund
For each invoice line, enter the quantity to refund in the corresponding field (EditFacturaCliente.php:304).
Configure Refund Details
Set the refund invoice parameters:
- Series (codserie): Series for the refund invoice
- Date (fecha): Refund invoice date
- Notes (observaciones): Reason for the refund
- Status (idestado): Invoice status
Create Refund
Click Create Refund. The system:
- Locks the original invoice if it was editable (EditFacturaCliente.php:316)
- Creates a new invoice with negative quantities (EditFacturaCliente.php:331)
- Links it to the original invoice
- Recalculates all totals (EditFacturaCliente.php:357)
- If the original was paid, marks refund receipts as paid (EditFacturaCliente.php:363)
Generating Accounting Entries
To generate accounting entries from an invoice:Generate Entry
- Click the Accounting Entries tab
- Click Generate Accounting Entry (EditFacturaCliente.php:68)
- The system creates the accounting entry automatically (EditFacturaCliente.php:160)
Best Practices
Invoice Numbering
Invoice Numbering
Configure invoice series in Administration > Series to:
- Separate different business units
- Distinguish invoice types (regular, simplified, etc.)
- Maintain sequential numbering per series
Inventory Management
Inventory Management
Always verify:
- Products have sufficient stock in the selected warehouse
- Stock movements are recorded correctly
- Reserved stock is updated for pending orders
Tax Configuration
Tax Configuration
Ensure products have correct tax settings:
- Standard VAT rate (IVA)
- Reduced rates for specific categories
- Tax exemptions where applicable
- IRPF withholding for professionals
Customer Data
Customer Data
Maintain complete customer records with:
- Valid tax ID (NIF/CIF)
- Complete billing address
- Correct VAT regime
- Updated contact information
Common Issues
Receipt totals don't match invoice
Receipt totals don't match invoice
If you see a warning about receipt differences:
- Check the sum of all receipt amounts
- Delete incorrect receipts
- Generate new receipts with correct amounts
Can't edit invoice
Can't edit invoice
Invoices become locked when:
- Their status is set to non-editable
- Accounting entries have been generated
- They have associated refund invoices
Product not found in autocomplete
Product not found in autocomplete
If a product doesn’t appear:
- Verify the product is active
- Check it’s not marked as discontinued
- Ensure it’s available in the selected warehouse
- Search by reference, barcode, or description
Related Topics
Managing Customers
Learn how to create and manage customer records
Stock Management
Manage inventory and warehouse operations
Accounting Entries
Work with accounting entries and ledgers
Invoicing Features
Explore advanced invoicing features

