- Order model gains refundTotal; sync sums receipt.refunds (Money objects) onto each order and marks fully-refunded orders 'refunded' - orderNetRevenue() helper (total - refundTotal); profit metrics, monthly trends, and per-order analysis now use net revenue so refunded sales no longer overstate profit - ProfitMetrics adds totalRefunds; Analytics revenue card shows net revenue with the refunded amount, and monthly revenue is net Note: product-level profitability stays gross since receipt refunds are order-level amounts with no line-item breakdown. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| public | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsconfig.node.json | ||
| vite.config.ts | ||