Accounting Fields
When registering inventory movements (particularly purchases), the system captures comprehensive accounting information:Provider ID - Reference to the supplier/vendor making the sale
Invoice Number - Legal invoice number from the supplier for tax compliance
Unit Price - Cost per unit at time of purchase (used for inventory valuation)
IVA (Value Added Tax) - Amount of IVA paid on this purchase. Standard Colombian IVA rate is 19%
Retención (Withholding Tax) - Amount of withholding tax applied to this transaction
Invoice Date - Date on the legal invoice document
Supporting Document - PDF or JPG file of the invoice or receipt. One file per product/purchase
Recording Inventory Movements
To register an inventory purchase with accounting information:- Navigate to Admin → Inventory
- Click ”+ New Movement”
- Select “Entry (Purchase)” as movement type - this activates accounting fields
- Fill in all required fields:
- Product
- Provider
- Invoice number
- Unit price
- IVA (optional but recommended)
- Withholding tax (if applicable)
- Supporting document (PDF/JPG)
- Submit the form
Document Management
Uploading Supporting Documents
The system manages supporting documents (invoices, receipts) similar to profile photos:- One document per product/purchase: Each inventory movement can have one associated file
- Automatic replacement: Uploading a new document automatically deletes the previous one
- Supported formats: PDF and JPG files only
- File naming: Documents are stored as
soporte_[product_id]_[timestamp].[ext] - Storage location: Files are saved in
uploads/soportes/
Viewing Documents
In the inventory table, click the “View” button in the “Support” column to open the document in a new tab.Cleaning Orphaned Files
Over time, orphaned files (documents without database references) may accumulate. To clean them:- Go to Admin → Inventory
- Click “🗑️ Clean Supports” in the header
- Review statistics about orphaned files
- Execute automatic cleanup
Inventory Valuation
CompuTécnicos uses the average cost method for inventory valuation:- Each purchase records the unit price paid
- The system calculates the weighted average cost across all purchases
- Inventory value = Stock quantity × Average unit price
- This method complies with Colombian accounting standards
Calculating Cost of Goods Sold
When inventory is sold (exit movement), the system uses the average cost to determine COGS:Provider Management
Registering Providers
Before recording purchases, register your suppliers:- Go to Admin → Providers
- Click ”+ New Provider”
- Enter provider details:
- Name (required)
- Phone
- Address
- Contact person
- Submit the form
Provider Name - Business name or legal name of the supplier
Email - Contact email for the provider
Phone - Contact phone number
Address - Physical address of the provider
Contact - Name of contact person at the provider
Provider Information for Compliance
For Colombian tax compliance, ensure you record:- Full legal business name
- NIT (Tax identification number) - can be stored in the name or address field
- Complete address
- Contact information
Tax Tracking
IVA (Value Added Tax)
Colombia’s standard IVA rate is 19%, though some products may be exempt (0%) or taxed at reduced rates (5%). IVA Paid: When you purchase inventory, record the IVA amount paid to suppliers. This is your input IVA that can be deducted. IVA Collected: When you sell products, the system calculates IVA collected from customers (if configured). This is your output IVA owed to DIAN. The accounting reports show both IVA paid and collected to help you calculate your net IVA obligation.Retención (Withholding Tax)
In Colombia, certain transactions require withholding tax (retención en la fuente):- Retención at Purchase: Record the amount withheld by your business when paying suppliers
- Retención at Sale: Track amounts withheld by customers from your invoices
- Common rates: 2.5%, 3.5%, 4% depending on transaction type
Data Integrity
The system ensures accounting data integrity through:- Database transactions: All inventory movements are atomic operations
- Foreign key constraints: Ensures referential integrity with products and providers
- Validation: Required fields are enforced at both frontend and backend
- Audit trail: All movements record user, timestamp, and are immutable (delete only)