Currency change in Sales Invoice in case o Type=G/L Account

its_rks
its_rks Member Posts: 21
Hi Everybody,
When I change Currency code in Sales Invoice in case when 'Type' of sales line =G/L Account, in sales lines , line amount is not converted accordingly as it works when Type=Item.

Has anybody any idea on this???

Thanks

Comments

  • bab
    bab Member Posts: 65
    As far as I know, it's a standard behavior: NAV deletes the existing lines, and recreates them. So you will lost all fields' value, which you have set "by hand", such as Line Discount (or any other custom fields). If you want to avoid this, you need to put code in the T36.RecreateSalesLine function.
    And another thing: if you have Dimension Values in the lines, which are different from the Dimension Values in the Header, you will lost theese values too...
  • its_rks
    its_rks Member Posts: 21
    Hi,
    Actually its coverts line amount for other types( Item,Resourse) but not for G/L.........
  • ara3n
    ara3n Member Posts: 9,258
    Yes that's how it works.
    If you need to change it you need to change the function recreatesalesline in sales header table.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n