IBM Support

TotalCharges are not displayed correctly after importing an order

Troubleshooting


Problem

An order is being imported using the API - importOrder, with the following charges at header level - HeaderCharges> But the Header charges under OverallTotals when getOrderDetails is called is not showing the correct value

Cause

This is due to attribute OtherCharges not being passed in the importOrder. This is the sum of all the charges at the header level.

Resolving The Problem

Pass the attribute OtherCharges at the order level .This will be the sum of all the charges at th header level In the use case cited, OtherCharges will be SHIPPING+MERCH CHARGE (5.0+2.0) should be set to 7.0.
This will ensure that the Header Charges under OverallTotals are returned correctly when getOrderDetails is called.

[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.3;9.4;9.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21996908