Discussions
How to associate a 'charge' with an 'invoice' as a line item?
Hi,
I seem to be having trouble linking a charge to an invoice either via web services or via suitescript/restlets. Via the UI, you simply create a new invoice and click 'Add Charges To As Of Date' and the line item appears with its internal charge id.
Via code (web services or suitescript), it always requires an item and specific properties of an item to be set. So i've added the required fields and then tried to link the associated charge via 'chargeslist'. So my web service code at the moment looks like the following .... (but this just creates the invoice with the line item details but no charge id linked)