Skip to Content
1
May 11, 2018 at 12:54 AM

Synchronous pricing - Total mismatch with SAP

129 Views

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.

  1. Original Item Price 2.17

  2. Apply 2% Discount 2.1266

  3. Apply 3% Discount 2.062802

  4. Total Discount 0.107198

  5. Rounded Discount 0.1

  6. 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.

  1. Original Item Price 2.17

  2. Price for 4 quantity 8.68

  3. Apply 2% Discount 8.5064

  4. Apply 3% Discount 8.251208

  5. 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