IBM Support

How can a record for an invoice be created when ChargePerUnit=0?

Question & Answer


Question

Consider the below scenario-
1. Create an order with shipping charge with ChargePerUnit=0. This inserts  an entry in the yfs_line_charges for record_type=ORD
2. Create a shipment invoice for this order. No records were inserted in the table - yfs_line_charges for the shipping charge.
How can invoices for this line charge be tracked?

 

 

Cause

Since the invoiced amount for that charge is 0, it is not being tracked in the system

Answer

A solution to achieve the use case is using the API - recordInvoiceCreation
The API can be used to record charges against the main invoice created with InvoiceType='INFO'
This will trigger an entry in the yfs_order_invoice table for amount 0 against the same invoice which holds the order total.

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Component":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.3,9.4,9.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
19 September 2018

UID

ibm10732043