skills/vendix-accounting-rules/SKILL.md
Colombian accounting rules for Vendix automatic entries: PUC account selection, debit/credit direction, payroll provisions, parafiscales, mapping-key ownership, and validation of balanced journal entries. Trigger: When working with journal entries, mapping keys, PUC accounts, payroll provisions, parafiscales, or any debit/credit logic.
npx skillsauth add rzyfront/vendix vendix-accounting-rulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to decide which PUC account is affected and whether the amount is debit or credit. Use vendix-auto-entries for the technical event/listener/service workflow.
Every journal entry must balance:
sum(debit_amount) === sum(credit_amount)
Vendix validation tolerates differences up to 0.001.
| Class | Meaning | Normal balance | Increases with | | --- | --- | --- | --- | | 1 | Assets | Debit | Debit | | 2 | Liabilities | Credit | Credit | | 3 | Equity | Credit | Credit | | 4 | Revenue | Credit | Credit | | 5 | Expenses | Debit | Debit | | 6 | Cost of sales | Debit | Debit | | 7 | Production costs | Debit | Debit |
Practical rule: receiving money/inventory is usually debit; owing money is credit; spending is debit; selling is credit.
| Code | Use |
| --- | --- |
| 1105 | Cash |
| 1110 | Bank / cards / Wompi / PSE / Nequi |
| 1305 | Accounts receivable / customers |
| 1435 | Merchandise inventory |
| 1450 | Employee advances |
| 1520 | Property, plant and equipment |
| 1592 | Accumulated depreciation |
| 2205 | Suppliers / accounts payable |
| 2335 | Costs and expenses payable / partner commissions |
| 2365 | Withholding tax |
| 2370 | Payroll withholdings and contributions |
| 2380 | Pension payable |
| 2408 | VAT payable |
| 2505 | Salaries payable |
| 2610 | Severance provision |
| 2615 | Severance interest provision |
| 2620 | Vacation provision |
| 2625 | Service bonus provision |
| 2805 | Customer advances / wallet / layaway |
| 4135 | Sales revenue |
| 4175 | Sales returns / contra revenue |
| 4245 | Gain on asset sale |
| 4295 | Miscellaneous income / cash overage |
| 5105 | Administrative payroll expense |
| 5110 | Employer social security/parafiscal expense |
| 5195 | General expenses |
| 5199 | Provisions / depreciation expense |
| 5205 | Sales payroll expense |
| 5295 | Inventory shrinkage / commissions / shortages |
| 5310 | Loss on disposal |
| 6135 | Cost of goods sold |
| 7205 | Direct labor |
1305, CR 4135, CR 2408.1105/1110, CR 1305.1105/1110, CR 4135, CR 2408.1305, CR 4135, CR 2408.2205.2205, CR cash/bank.1435, CR 2205.6135, CR 1435.5295, CR 1435.1435, CR 5295.2805.2805, CR revenue or receivable target depending on flow.4295; shortage: debit 5295.administrative -> 5105, sales -> 5205, operational -> 7205.2610, severance interest 2615, vacation 2620, service bonus 2625.When defining a mapping key, keep these synchronized:
DEFAULT_ACCOUNT_MAPPINGS in account-mapping.service.ts.MAPPING_DEFAULTS in default-account-mappings.seed.ts.MAPPING_LABELS / GROUP_DEFINITIONS in the frontend account mappings component.Existing sources currently diverge, so always inspect all three before changing mapping logic.
default-puc.seed.ts and chart_of_accounts.entry_date.vendix-auto-entriesvendix-prisma-seedvendix-prisma-migrationsdevelopment
Mobile app development rules for Vendix Expo/React Native project. Trigger: When editing, creating, or modifying any file under apps/mobile, or when developing mobile-specific features.
development
Feature gating by store subscription state: global store write guard, AI feature gate, Redis feature resolution, quota consumption, frontend paywall interceptor, banner, and subscription UI states. Trigger: When adding feature gates, paywalls, subscription-based access control, protecting store write operations, AI feature gates, or rollout flags.
testing
SaaS subscription billing for Vendix stores: plan pricing, invoices, Wompi platform payments, manual payments, partner commissions, payouts, proration, and dunning. Trigger: When creating SaaS invoices, working with partner rev-share, margin/surcharge pricing, invoice sequence allocation, partner payout batches, subscription payments, manual payments, or dunning flows.
development
Periodic quota counters with Redis, UTC period keys, Lua-based idempotent AI quota consumption, request-id deduplication, and post-success consumption. Trigger: When building quota counters, enforcing monthly/daily feature caps, or reusing AI quota patterns for uploads, emails, exports, or rate-limited features.