docs(pdf): fix poSubtotal JSDoc summary (effective-qty prose) + tidy blank lines
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
parent
965f3e3bbe
commit
a1714833a8
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue