WDF 2540036 - The incoming payment is being synced to SAP with a double amount for a COD order

WDF 2540036 - The incoming payment is being synced to SAP with a double amount for a COD order

Symptom

The incoming payment is being synced to SAP Business One with a double amount when a Cash on Delivery (COD) order is paid with credit card in the Shopify.

Reproducing the issue
Prerequisites

You are using Integration Solution version 54 or lower.

Scenario:

The incoming payment is being synced to SAP Business One with a double amount when a Cash on Delivery (COD) order is paid with credit card in the Shopify. 
The following are the steps to reproduce the issue:
1. The customer created an order in the Shopify store with the payment method Cash on Delivery (COD).
2. Later, the payment of the Cash on Delivery (COD) order is received via credit card.
3. Synced the payment to SAP Business One. 
4. The solution creates the incoming payment in SAP Business One using both Cash and Credit Card methods, resulting in the payment being created with a double amount.

Expected Result:

The incoming payment is synced to SAP Business One with the original amount received in the Shopify.

Actual Result:

The incoming payment is being synced to SAP Business One with a double amount for a COD order.

Workaround:
Attached zip file is to be imported via BizStore Import of Control Center.

1. From your existing environment take the backup of "com.sap.b1i.dev.scenarios.design" file as per the backup process below:
To take the backup of the package file, perform the following steps:
  1. Login into Integration Framework 2.0.
  2. Goto Tools -->Control Center --> Maintenance -->BizStore Export.
  3. In the Exporting Content from BizStore, In the selection critera. Select the Dataset button.
  4. In the Choose Dataset, Choose Value "com.sap.b1i.dev.scenarios.design", Choose Group "OE.HUB.SHOPIFY"  and then press Submit button.
  5. Save the file in the relevant folder.
2. Perform the following steps to import the Package file:
  1. Login into Integration Framework 2.0.
  2. Goto Control Center --> Maintenance -->BizStore Import.
  3. In the Importing Content to BizStore, In the selection critera. In the Choose Archive, select the Choose File button. 
  4. Select the package file "com.sap.b1i.dev.scenarios.design.zip".
  5. Select the checkbox Assume File System-Friendly Naming and then Submit.

Solution

The issue described above will be fixed in the Intercompany Integration Solutions version 55 and higher versions.

Product
Product or Product Version
B1 INTERCOMPANY INTEGRATION
SAP B1 10.0 FOR SAP HANA
SAP B1 9.3 FOR SAP HANA
SAP BUSINESS ONE 10.0
SAP BUSINESS ONE 9.3