[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question around exchange rate and taxes



Hi Chris,
  My boss monitoring that ,

      The default currency in our program is Canadian dollar, so when I used US$ They saw the amount in cash - payment form is not as the amount in the vendor invoice if you post the invoice.
       I follow it, I find the taxes always adding without multiply in exchange rate.
     
            so, I added * $form->{exchangerate} to post_invoice in IR.pm as you see

            for (@taxaccounts) {
                $form->{acc_trans}{ $form->{id} }{ $_->account }{amount} +=
                  $_->value * $form->{exchangerate};
            }

         Is that OK and is there any restriction .
Advise me,
Best wishes,
Shaekir,