Hi All,
I am a bit stuck on the way to proceed on Invoice Discount Amount(the field upon pressing F9).Any help would be really appreciated.
I have an xml to import as a sales order and there is the field invoice discount amount which has some value lets say 20.5 ;
I have to perform the same calculation in the same way as I would enter the value 20.5 into the field invoice Discount Amount upon pressing F9 .
Any hep would be really appreciated . I tried doing it the same way the function UpdateInvDiscAmount(1) but with no success.
0
Comments
did you try to create a new field in table 36, and populate it using the function?
Ernst
I think I found a solution that is to re calculate the sales lines an modifying the SalesLine.Inv.Discount Amount and then modifying the Sales Header afterwards.
It seems to works as the calculations but I do not know if there are consequences or not
Thanks for the idea.