Deanolito
Member
Hi All,
I am having a problem with B0000027 - Currency Conversion, Calculate
I pass in the BC Amount - Extended Price as the Domestic Amount, i.e. 15,2
going in
The Foreign amount is received into a variable that is based on AEXP, i.e.
15,2 coming out
If I pass in 84,60 and have an exchange rate of 1,1341083 I get a return
Foreign Amount of 96. It is rounding to no decimal places.
So, I tried changing the return field to MN29D9 but get the same result.
If I multiply the BC Amount - Extended Price by 100 before it goes in I
get 95.95 which is okay, EXCEPT, I can't find other examples where people
do this.
Should I Do a "F0013 - Get Currency Decimals" first, then a "Character to
math numeric, Convert" followed by a
Domestic Amount IN= [Domestic Amount]*(10^[VA
evt_MATH01_mnDisplayDecimals])
Then call the currency conversion and then repeat above with a Div instead
of mult
This may work but I can only find this sort of processing when processing
quantities and not amounts !?
Please help.
Xe, Co-Existence on AS/400. Update 3, SP 16.1
Cheers,
Dean
---------------------------------------------------------------------------------------
Dean Robinson (Whitehouse Consultants Ltd.)
Amersham Biosciences
Bjorkgatan, 30 (BV2) 75184 Uppsala, Sweden
Desk +46 18 61 20 200 Fax +46 18 61 218 05
Mobile +46 70 555 15 78
---------------------------------------------------------------------------------------
I am having a problem with B0000027 - Currency Conversion, Calculate
I pass in the BC Amount - Extended Price as the Domestic Amount, i.e. 15,2
going in
The Foreign amount is received into a variable that is based on AEXP, i.e.
15,2 coming out
If I pass in 84,60 and have an exchange rate of 1,1341083 I get a return
Foreign Amount of 96. It is rounding to no decimal places.
So, I tried changing the return field to MN29D9 but get the same result.
If I multiply the BC Amount - Extended Price by 100 before it goes in I
get 95.95 which is okay, EXCEPT, I can't find other examples where people
do this.
Should I Do a "F0013 - Get Currency Decimals" first, then a "Character to
math numeric, Convert" followed by a
Domestic Amount IN= [Domestic Amount]*(10^[VA
evt_MATH01_mnDisplayDecimals])
Then call the currency conversion and then repeat above with a Div instead
of mult
This may work but I can only find this sort of processing when processing
quantities and not amounts !?
Please help.
Xe, Co-Existence on AS/400. Update 3, SP 16.1
Cheers,
Dean
---------------------------------------------------------------------------------------
Dean Robinson (Whitehouse Consultants Ltd.)
Amersham Biosciences
Bjorkgatan, 30 (BV2) 75184 Uppsala, Sweden
Desk +46 18 61 20 200 Fax +46 18 61 218 05
Mobile +46 70 555 15 78
---------------------------------------------------------------------------------------