Invoice Discount Amount on Sales order

imclever1205imclever1205 Member Posts: 94
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.

Comments

  • evandeveerdonkevandeveerdonk Member Posts: 49
    Hi,

    did you try to create a new field in table 36, and populate it using the function?

    Ernst
    http://www.vssolutions NAV-Outlook synchronisation re-invented.
  • imclever1205imclever1205 Member Posts: 94
    Yes I tried that and replace the New field in the the calculations but still it didnt work .
    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.
Sign In or Register to comment.