I have switched in BLC_LOCALE and BLC_CURRENCY tables to 'EUR' as default currency with fr_FR as default locale.
When creating a cart, all products, shipment etc are shown in EUR.
When doing checkout on delivery, I get a message:
Code: Select all
[artifact:mvn] [ERROR] 11:57:29 DefaultErrorHandler - An error occurred during the workflow
[artifact:mvn] java.lang.UnsupportedOperationException: No currency conversion service is registered, cannot add different currency types together (USD EUR)
[artifact:mvn] at org.broadleafcommerce.common.money.Money.add(Money.java:176)
[artifact:mvn] at org.broadleafcommerce.core.pricing.service.workflow.AdjustOrderPaymentsActivity.execute(AdjustOrderPaymentsActivity.java:87)
Checking in the source code I found out that in
Code: Select all
public class AdjustOrderPaymentsActivity extends BaseActivity<ProcessContext<Order>> {
@Override
public ProcessContext<Order> execute(ProcessContext<Order> context) throws Exception {
Order order = context.getSeedData();
OrderPayment unconfirmedThirdParty = null;
Money appliedPaymentsWithoutThirdParty = Money.ZERO;
.... more code
Money.ZERO generates an amount with currency 'USD' even though the 'order' has a currency set as 'EUR'. This seams to generate the currency mismatch.
I guess this is a bug. Should I register that on Github ?
Thank you