chore: final review polish (trailing newlines, JSDoc, changelog tense)

This commit is contained in:
DEls 2026-09-17 12:49:37 +02:00
parent 8d1b5a6db7
commit 6cee861c3e
5 changed files with 7 additions and 6 deletions

View file

@ -344,7 +344,7 @@ Watch the workflow's execution log in n8n and the DN's `processing_status` in Po
## Changelog
### 2026-09-17 — disconnected the split branch (workflow edit pending)
### 2026-09-17 — split branch pending disconnection (workflow edit pending)
The branch `Is first delivery note?` (false) → `Create split DN record`
in workflow `Delivery Note OCR` (`wVbLw4paISkbrIpE`) **needs to be

View file

@ -173,4 +173,4 @@ def main(apply: bool) -> None:
if __name__ == "__main__":
main("--apply" in sys.argv)
print("\nDone.")
print("\nDone.")

View file

@ -131,4 +131,4 @@ describe("buildDeliveryNoteItemRows", () => {
"OCR 95% · desc: G6 Sub Base · unit: kg · rate: 168.50 · match: 100%",
);
});
});
});

View file

@ -25,7 +25,8 @@ export interface PoItemLite {
}
export interface DeliveryNoteItemRow {
/** Null when unmatched or unconvertible. */
/** Null when unmatched or unconvertible. Non-null with `qty_received = 0`
* when the id is unverifiable (PO items could not be fetched). */
purchase_order_item: string | null;
/** In the PO line's unit. Zero whenever purchase_order_item is null. */
qty_received: number;
@ -156,4 +157,4 @@ function asNumber(v: unknown): number | null {
return Number.isFinite(n) ? n : null;
}
return null;
}
}

View file

@ -23,4 +23,4 @@ describe("formatQtyDual", () => {
it("falls back to the raw figure when nothing converted", () => {
expect(formatQtyDual(0, "ton", 12, "m3")).toBe("0 ton · 12 m3");
});
});
});