Commit 572c71e
committed
Fix: re-read Sales Header from DB after RedistributeInvoiceDiscounts
Replace the IsCompletelyShipped save/restore pattern with Rec.Find()
after RedistributeInvoiceDiscounts. This re-reads the entire Sales Header
record from the database, ensuring all fields including Completely Shipped
reflect the true persisted state regardless of any in-memory side effects
from the invoice discount redistribution call chain.1 parent 7dff085 commit 572c71e
2 files changed
Lines changed: 2 additions & 8 deletions
File tree
- Apps/W1
- APIV1/app/src/pages
- APIV2/app/src/pages
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
455 | | - | |
456 | 454 | | |
457 | 455 | | |
458 | 456 | | |
459 | | - | |
460 | 457 | | |
461 | | - | |
| 458 | + | |
462 | 459 | | |
463 | 460 | | |
464 | 461 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
618 | 616 | | |
619 | 617 | | |
620 | 618 | | |
621 | | - | |
622 | 619 | | |
623 | | - | |
| 620 | + | |
624 | 621 | | |
625 | 622 | | |
626 | 623 | | |
| |||
0 commit comments