Another Form Question : Purchase Statistics

madmmadm Member Posts: 92
edited 2008-04-10 in Navision Attain
I have added a variable to the purchase stats form, which shows the LCY vat amount, as this helps with the invoice authorization process. (We buy "local" products in different currencies).

I have bascially put

TotalVATAmountLCY := TotalPurchLineLCY."Amount Including VAT" - TotalPurchLineLCY.Amount;

Which works fine, but there are cases we change the VAT amount (by 1p etc) but this fails to update the field until we exit out of the form. The other fields on the form are updated when clicking into the header.
I guess it is something to do with the LCY "Amount Including VAT" not refreshing till we exit the form.

Any suggestions?

(I have tried running the pre calculated amount with the exchange currency, but this gives slightly different figures to the Unposted Purchases Report, which then causes differences in the balancing process!)

Comments

  • Dave_CintronDave_Cintron Member Posts: 189
    It sounds like you have both the statistics and purchase form open at the same time. The problem is that the statistics form does not retrieve the record again just because you activate it. You would have to add a GET statement to the OnActivate trigger to re-read the data.
    Dave Cintron
    Dynamics West
    http://www.dynamicswest.com
Sign In or Register to comment.