Compliance Features
The system satisfies key Colombian legal requirements:Supporting Documentation: PDF/JPG upload for invoices and receipts
Provider Information: Complete supplier data including NIT and address
IVA Control: Track both input tax (paid) and output tax (collected)
Withholding Tax: Record retención en la fuente on purchases and sales
Inventory Valuation: Weighted average cost method for financial statements
Audit Reports: Professional Excel exports for DIAN audits
Electronic Invoicing: Integration with Alegra and Siigo for facturación electrónica
IVA (Value Added Tax)
Understanding Colombian IVA
Colombia uses a value-added tax system with multiple rates:| Rate | Description | Common Products |
|---|---|---|
| 0% | Exempt | Basic foods, books, medicines |
| 5% | Reduced | Some processed foods, utilities |
| 19% | Standard | Most goods and services |
Recording IVA on Purchases
When you purchase inventory from suppliers:- The supplier charges you IVA (typically 19%)
- This is input IVA that you can deduct
- Record the IVA amount in the inventory movement
- Example:
- Product cost: $1,000,000
- IVA (19%): $190,000
- Total paid: $1,190,000
Record the IVA amount (in this example: 190000)
Tracking IVA on Sales
When you sell products to customers:- You charge IVA on the sale price
- This is output IVA that you owe to DIAN
- Configure product-level IVA rates
- The system calculates IVA automatically on invoices
Net IVA Calculation
Your IVA obligation to DIAN is:IVA Filing Requirements
Steps for IVA filing:- Generate General Report for the period
- Note the IVA Collected and IVA Paid amounts
- Calculate net IVA obligation
- Export report to Excel for documentation
- File through DIAN’s MUISCA system
- Keep reports and supporting documents for 5 years
Retención (Withholding Tax)
Understanding Retención en la Fuente
Colombia requires withholding tax on many transactions:- At purchase: You withhold a percentage from supplier payments
- At sale: Customers (especially large companies) withhold from your invoices
- Withheld amounts are credited against income tax
Common Withholding Rates
| Concept | Rate | When Applied |
|---|---|---|
| Services | 4% | Professional services |
| Purchases | 2.5% | Goods purchases |
| Commissions | 10% | Sales commissions |
| Rent | 3.5% | Property rent |
Recording Withholding Tax
When recording a purchase with withholding:- Enter the gross amount as unit price
- Record IVA if applicable
- Enter the withholding amount
- Example:
- Purchase amount: $1,000,000
- IVA (19%): $190,000
- Withholding (2.5%): $25,000
- Net paid: 1,190,000 - $25,000)
Record the withholding amount (in this example: 25000)
Withholding Certificates
You must provide withholding certificates to suppliers:- Generate Purchase Report for the period
- Filter by supplier
- Sum withholding amounts
- Issue certificate (Certificado de Retención) to supplier
- File withholding declarations with DIAN monthly
Electronic Invoicing (Facturación Electrónica)
CompuTécnicos integrates with Colombian electronic invoicing providers to comply with DIAN’s facturación electrónica mandate.Supported Providers
The system supports two major e-invoicing providers:Alegra
- Popular cloud-based accounting platform
- Full DIAN certification
- Automatic invoice generation and transmission
- PDF and XML document generation
Siigo
- Enterprise accounting software
- DIAN-approved provider
- Complete electronic invoicing workflow
- Integration with Colombian banks
Configuration
Electronic invoicing is configured in/config/factura_config.php:
E-invoicing provider to use
alegra- Alegra platformsiigo- Siigo platform
Simulation mode - If true, invoices are registered locally without calling external APIs. Set to false for production.
Alegra Configuration
Alegra API token from your account settings
Email address associated with your Alegra account
Siigo Configuration
OAuth client ID from Siigo developer portal
OAuth client secret for API authentication
Siigo account username
Siigo account password
Invoice Generation Workflow
When an order is marked as completed:- System calls the e-invoicing provider API
- Invoice is created with order details:
- Customer information
- Line items with SKU, quantity, price
- IVA calculations per product
- Discounts if applicable
- Provider generates:
- Electronic invoice number
- PDF document
- XML file for DIAN
- CUFE (unique invoice code)
- System stores invoice reference locally
- Customer receives invoice via email
Invoice States
| State | Description |
|---|---|
simulado | Testing mode, not sent to provider |
enviado | Sent to provider, awaiting confirmation |
registrado | Successfully registered |
anulado | Canceled with credit note |
error | Failed, requires manual intervention |
Credit Notes (Notas Crédito)
When you need to cancel or adjust an invoice:- System generates a credit note
- Links to original invoice
- Sends to e-invoicing provider
- Original invoice is marked as “anulado”
- Credit note is transmitted to DIAN
Testing Electronic Invoicing
During setup and testing:- Set
'simulate' => truein configuration - Process test orders
- System registers invoices locally without API calls
- Verify all data is correct
- Switch to
'simulate' => falsefor production
Supporting Documentation
DIAN Requirements
Colombian law requires businesses to maintain:- Purchase invoices (facturas de compra)
- Sales invoices (facturas de venta)
- Payment receipts (comprobantes de pago)
- Bank statements
- Withholding certificates
Document Upload System
CompuTécnicos provides secure document storage:- Upload PDF or JPG files
- One document per inventory movement
- Files stored in
uploads/soportes/ - Secure file naming:
soporte_[product_id]_[timestamp].[ext] - Automatic cleanup of orphaned files
Document Security
Document Access
Documents are accessible:- From the inventory table (“View” link)
- Included in Excel report references
- Direct URL access for authorized users only
- Protected by session authentication
Provider (Supplier) Compliance
Required Provider Information
For DIAN compliance, record complete supplier details:Full legal business name as registered with DIAN
NIT (Número de Identificación Tributaria) - Can be stored in the name field or use a dedicated field
Complete physical address including city and department
Contact phone number
Business email address
Provider Registration Steps
- Navigate to Admin → Providers
- Click ”+ New Provider”
- Enter all required information
- Verify NIT is correct (format: XXXXXXXXX-X)
- Save the provider
Inventory Valuation Methods
Average Cost Method
CompuTécnicos uses the weighted average cost method:- Purchase 1: 10 units at 10,000
- Purchase 2: 5 units at 6,000
- Average cost: 1,066.67 per unit
- Is accepted by Colombian tax authorities
- Smooths price fluctuations
- Simplifies COGS calculations
- Matches NIIF accounting standards
Financial Statement Support
Balance Sheet Inventory
Use the Valued Inventory Report for:- Current assets section
- Inventory line item
- Valued at average cost
- As of balance sheet date
Income Statement COGS
Calculate Cost of Goods Sold:- Valued Inventory Report for beginning balance (Jan 1)
- Purchase Report for purchases during period
- Valued Inventory Report for ending balance (Dec 31)
Audit Preparation
DIAN Audit Response
If DIAN requests information:- Generate reports for the requested period
- Export to Excel for professional presentation
- Gather supporting documents:
- All uploaded invoices/receipts
- Withholding certificates
- Electronic invoice files (PDF/XML)
- Provide audit trail: Show user actions and timestamps
- Calculate tax reconciliation: IVA and withholdings
Document Checklist
General Report for full period
Purchase Report with all supplier transactions
Valued Inventory Report at period start and end
Supporting documents (PDFs/images) for all purchases
Electronic invoice records with CUFE numbers
Withholding tax calculations and certificates
Provider information with NIT verification
Future Enhancements
Planned features for enhanced compliance:- Sales integration: Connect exit movements to sales orders
- Profit reports: Calculate gross and net profit automatically
- Bank reconciliation: Match inventory purchases to bank transactions
- DIAN fiscal reports: Pre-formatted reports for common DIAN filings
- Automatic backups: Scheduled backup of documents and data
- Digital signature: Sign exported reports for legal validity
Compliance Best Practices
Daily Operations
- Record all inventory movements on the same day
- Upload supporting documents immediately
- Verify supplier information is complete
- Calculate taxes (IVA, retención) accurately
- Generate electronic invoices for all sales
Monthly Tasks
- Export and archive all monthly reports
- Verify IVA calculations before filing
- Issue withholding certificates to suppliers
- Reconcile inventory counts with system
- Review and clean orphaned documents
Annual Requirements
- Year-end inventory valuation report
- Annual IVA reconciliation
- Income tax preparation with COGS
- Financial statement support
- Document retention verification (5 years)