cancel
Showing results for 
Search instead for 
Did you mean: 

"Trying to create a journal entry of the local BP with foreign amounts" error

ronnie_scott
Participant
0 Kudos

I have an addon that needs to set the Total (LC) field on the invoice form when a Delivery is copied to an Invoice. In this case, it's $169,978.62. The original Unit Price on the row is $7,000.00, with quantity of 5 MT (selling UoM). After populating the line total field through SDK UI, it calculated discount% to be -385.653. When I press Add, it gives me red bar error "Trying to create a journal entry of the local BP, with foreign amounts [message 3530-11]". This BP uses local currency and there is no foreign currency involved on this document. If I perform the same action through normal UI without SDK, I can add the invoice without a problem. I know it probably has to do with rounding, but how can I get past this error if I have to set the line total through SDK?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ronnie,

May you provide the excerpt of the code which does the modification then the update?

Regards,

Eric

ronnie_scott
Participant
0 Kudos

Thanks Eric. Upon further examining of my code, I changed the code around a bit so it only executes when certain conditions are true. It used to be triggered by FORM_ACTIVATE event which probably makes it execute more times than it should. The error has gone away after that change.

Former Member
0 Kudos

Hi Ronnie,

Glad you have found the issue

Regardss,d

Eric

Answers (0)