Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

I'm trying to update the discount of every SaleOrderLine on a SaleOrder after the discount of another SaleOrderLine with the same product_id has been changed.
So far I can update the discount field by searching the affected lines on the database, write the new discount and return the id's fo the affected lines to update the UI, but with the changes can't be discarded, as they were written to the database.
I've tried to make the discount field depend on the discount of the other SaleOrderLines, but the execution of this gets all messy as there isn't a clean way to check which line has the new discount.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 24
21391
0
wrz 24
1150
3
sie 24
2330
0
lut 24
1553
0
lut 24
1151