tutorials
tutorials copied to clipboard
[ADD] sale_discount_recompute: recompute global discount on order lines changes
Ensure that the global discount line in Sale Orders is kept in sync with the current order lines.
- Recalculate discount when order lines are added, updated, or removed.
- Remove discount line when no order line is present.
- Handle for single discount and multi-discount lines as well.
task-5008128
