Hey guys,
I would like to do the following:
I have an ordinary Sales Order, which consists of 5 lines.
In the Sales Line table I have added two new fields: Amount & Amount including extra charges.
Ih the first line Amount is 100 and "Amount including extra charges" is 100,too.
It is also 100, because in the first line Amount and "Amount including extra charges" arel always the same.
Now in the second line "Amount including extra charges" is calculated out of "Amount including extra charges" from the first line (so 100) and 70 from Amount from the second line (given by the user)
So "Amount including extra charges" in the second line will be 170 and that logic should be the same for all other lines.
How can I achieve this?
Thank you ;)