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.
Was this topic helpful?
Document Information
Modified date:
19 September 2018
UID
ibm10732043