docs(pdf): fix poSubtotal JSDoc summary (effective-qty prose) + tidy blank lines

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
SJCoetz 2026-08-06 12:00:48 +02:00
parent 965f3e3bbe
commit a1714833a8
2 changed files with 3 additions and 3 deletions

View file

@ -110,8 +110,6 @@ describe("effectiveQuoteDate", () => {
});
});
describe("effectiveValidityDays", () => {
it("uses quote.validity_days when set to a number", () => {
expect(effectiveValidityDays({ validity_days: 60 })).toBe(60);

View file

@ -40,7 +40,9 @@ export function quoteSubtotal(items: { quantity: number; selling_price: number }
}
/**
* Sum of (order_qty ?? quantity) * cost_price across PO items. Differs
* Sum of effective-qty × cost_price across PO items, where
* `effective-qty` is `order_qty` when set (non-zero) and falls back to
* `quantity` otherwise. Differs from `quoteSubtotal()` in two ways:
* from `quoteSubtotal()` in two ways:
* 1. Multiplies by `cost_price` (the supplier-facing price), not
* `selling_price` (the customer-facing price).