on 2018 May 11 1:54 AM
Experts,
We tried implementing synchronous pricing with asynchronous ordering and ran into total mismatch between Hybris and SAP systems.
As per present implementation SAPPricing extension - Hybris receives priceBeforeDiscount and discount for each product. SAPItemMapper calculates the price by priceBeforeDiscount -discount and show in shopping experience pages.
Consider the scenario when SAP has multiple discount rows for same customer, which are applied sequentially in SAP system.
Original Item Price 2.17
Apply 2% Discount 2.1266
Apply 3% Discount 2.062802
Total Discount 0.107198
Rounded Discount 0.1
Hybris Calculated Price 2.07
We add this to product for quantity of 4. ItemTotalPrice comes as 8.28
During Order create - SAP first multiplies the item price with quantity and sequentially applies the discount.
Original Item Price 2.17
Price for 4 quantity 8.68
Apply 2% Discount 8.5064
Apply 3% Discount 8.251208
Rounded Total 8.25
Difference of 0.03 is observed between systems.
Is this known issue? Please share any idea to tackle this issue. We do not want Synchronous ordering now. But Total mismatch is big setback.
Thanks, -Senthil
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.