This commit is contained in:
2026-09-28 19:35:16 +05:30
parent eeef8851e4
commit 9a991fe5ab
3 changed files with 45 additions and 31 deletions

View File

@@ -560,8 +560,17 @@ export interface OrderRow {
*/
ordervalue?: number;
orderamount?: number;
/** Cash to collect on delivery. Shown only when > 0. */
collectionamt?: number;
/*
* `collectionamt` was declared here and read by three screens. It does not
* exist in Fiesta — `grep -rn "collectionamt" --include=*.go` returns nothing
* — so every one of them showed a dash or zero from the day it was written.
* Removed 2026-09-28 along with those screens.
*
* A type can describe a field the server has never sent, and nothing catches
* it: the optional marker makes `undefined` legal, and `?? 0` turns it into a
* plausible figure. That is the trap, and it is worth remembering before the
* next optional money field is added on the strength of a field name.
*/
deliverycharge?: number;
deliveryamt?: number;
paymenttype?: number;