Deleting or adjusting a delivery note now keeps each sales order line's delivered quantity and remaining-to-invoice quantity correct.
Sales Order Delivered Quantities Stay Accurate
Deleting a delivery note used to leave stale delivered quantities behind on the related sales order, which then carried through to invoicing. This is now corrected:
- Deleting a delivery note recomputes each affected sales order line's delivered quantity and delivery status from the remaining delivery note items, and refreshes the parent order's status.
- Invoice preparation now reads the live delivered total from the delivery note items instead of a cached field, so the remaining-to-invoice quantity reflects deleted or adjusted deliveries.