I am currently trying to create a custom product discount line.
I got all working but the problem is that I need to know how to update the invoice line values to make my project work.
I tried using "object.write" but it only creates another line of "Product Discount".
I don't want to use the "% discount" of the product because I have my own computations.
here is the sample below:
Any help would be greatly appreciated...