Resolved
In Accounting / General Ledger
Demo Company Accounting Preferences is USD for base currency
So ModelService wants to convert EURO payments into USD currency.
I have changed this value, my external payments are OK now !!!!
Eric
----- Original Message -----
From: "Jacques Le Roux" <[email protected]>
To: <[email protected]>; "Jacques Le Roux"
<[email protected]>
Sent: Wednesday, February 04, 2009 11:06 PM
Subject: Re: createPaymentFromPreference : Error modelservice validate
convertuom
Hi Eric,
Mmm, I guess EUT was typed in manually, forget my question... :/
Jacques
From: "Jacques Le Roux" <[email protected]>
From: "Eric DE MAULDE" <[email protected]>
Hello,
When I call the service : createPaymentFromPreference
ModelService is called from ???
ModelService.validate wants to convert payment amount from EUT to USD
EUT <> EUR ?
Jacques
requiredInfo =[uomId=String, uomIdTo=String, originalValue=Double]
requiredTest =[originalValue=928.00, uomId=EUR, uomIdTo=USD]
*** My configuration :
general.properties contains "currency.uom.id.default=EUR"
UI : Store - Default Currenry Uom Id = EUR - Euro
Do you know why an OFBiz service want to convert payment amounts from my
response servlet ?
Thanks
Eric
----- Original Message -----
From: "Eric DE MAULDE" <[email protected]>
To: <[email protected]>; "Jacques Le Roux"
<[email protected]>
Sent: Tuesday, February 03, 2009 12:02 AM
Subject: Re: createPaymentFromPreference : Error modelservice validate
convertuom
Hello Jacques,
I can't reproduce this error.
Because I implemented the SIPS payment from Atos Origin (remember you)
This error comes from SIPS response servlet.
I'm just cheking with log everywhere, where is the wrong entity type !
I'm going to send you a screenshot
Thanks
Eric
----- Original Message -----
From: "Jacques Le Roux" <[email protected]>
To: <[email protected]>
Sent: Monday, February 02, 2009 10:54 PM
Subject: Re: createPaymentFromPreference : Error modelservice validate
convertuom
Hi Eric,
Are you able to reproduce this error on demo server ?
Jacques
From: "Eric DE MAULDE" <[email protected]>
Hi,
When I call the service : createPaymentFromPreference
*** Error is :
[ ModelService.java:545:ERROR] [ModelService.validate] : {convertUom}
: (IN) Required test error:
org.ofbiz.service.ServiceValidationException: Type check failed for
field [convertUom.originalValue]; expected type is [Double]; actual
type is [java.math.BigDecimal]
The entity "OrderPaymentPreference" contains a field "maxAmount" with
type BigDecimal
I put a BigDecimal in : paymentPreference.set("maxAmount", new
BigDecimal(string));
I don't know where does error come from !!
Eric