Skip to Content
0
Former Member
Jan 31, 2018 at 11:10 PM

Custom promotion throwing arithmetic exception after migrating to 6.6 from 6.2

53 Views

After migrating hybris from 6.2 to 6.6, I seem to have problem with the promotions. The discount is not getting reflected in the order and I am getting arithmetic exception. Find the exception below,

[Error: XYZRuleYYYYOrderDiscountAction.executeAction(new DefaultDroolsRuleActionContext(variables, kcontext), ["quantity_to_uuid":"54a7fc21-444e-4778-a6c8-21d839f5ee5b", "stackable":Boolean.TRUE, "quantity_to":new Integer(4), "value_uuid":"98dd4a24-5d4b-4ab9-aa9b-2d4059854e77", "quantity_from_uuid":"8cbbabc8-3e72-4694-9592-6dc1976b1da4", "quantity_from":new Integer(3), "value":["CAD":new BigDecimal("20")]]): / by zero] [Near : {... Map variables = [ "de.hyb ....}] ^ Any help would be appreciated. Thanks in advance.