Line-Level Engine
Most commerce platforms apply promotions and taxes at the order total, then divide backwards and hope the rounding works out. Vectis computes them at the line — every SKU, every variant, every unit. It's a structural decision that cascades into correctness, accounting, tax compliance, and reporting for wholesale and retail alike.
Promotions per line
When a rule fires, it doesn't just reduce an order total — it writes a
LineDiscount
row against every affected line, with the triggering rule, the exact amount,
and the reason.
That unlocks real analytics: which SKUs are carrying the promotion, which
categories lift AOV, which customer groups are redeeming — answered by a
GROUP BY, not a reconciliation spreadsheet.
It also makes returns correct. Refund three units out of ten? The three units give back exactly what they took — not an averaged guess that drifts with every return.
The discount knows its rule. The tax knows its jurisdiction and type. Nothing is averaged, prorated, or lost.
Tax categories group products by applicability. Tax rates bind to jurisdictions with cascading specificity — state, county, city. Sales and excise rates compose per line.
Tax per line · sales + excise
Sales tax alone is not enough. Tobacco, nicotine, alcohol, cannabis, sugary beverages, rental equipment, hotel occupancy — excise taxes apply per unit, per SKU, per jurisdiction, often on top of sales tax.
Vectis ships with both cores. Tax categories group SKUs (standard, tobacco, alcohol, exempt), and rates bind to jurisdictions with cascading specificity. State, county, and city rates compose cleanly.
Every computed tax lives on the line as its own row — type, jurisdiction, rate, and amount. That means accounting can reconcile by jurisdiction without back-solving, wholesale and retail buyers alike get line-accurate tax for their own reporting, and auditors get a paper trail that actually matches the ledger.
Adding a sales tax rate. Excise rates configure the same way — per-unit, compounded on top.
Order totals are always the sum of their parts. No more "the discount reads $49.99 but the refund is $50.00" reconciliations.
Per-unit excise for tobacco, nicotine, alcohol, and similar isn't a bolt-on — it's the same engine as sales tax, per-SKU and per-jurisdiction.
Wholesale and retail buyers can pull line-accurate tax breakdowns for their own filings — something every other platform glosses over.
Every line carries the exact discount and tax it was charged. Refund three of ten units and the numbers return themselves.
Which products carry your promotions? Which SKUs lift AOV? A GROUP BY on line discounts answers it.
Every discount and tax row is immutable once the order is captured. What you charged is what you filed — down to the line, down to the cent.