How to assign Terms of payment to an Invoice via Suitescript or API?
How can I assign Terms of payment to an Invoice via suitescript (or any other programmatic means, e.g. API)? I haven’t been able to locate examples/documentation of that.
Hi,
Both of these are possible but are very different solutions.
Could you please explain your use case in more detail.
Thanks,
Chris
The first use-case I have in mind: in order to introduce payment terms to an organization that was not previously using them, I’ll need to update Terms of payment on a large list of existing Customers.
The second use-case is assigning specific on invoices that are automatically created by a workflow that transforms Sales Orders. Actually, this might not be necessary, since the invoice should default to whatever Terms have been set on the Customer (according to the docs).
Hi,
In that case, we’re just left with the first scenario. Have you considered Mass Update for this rather than having to build something?
Thanks,
Chris
It sounds like Mass Update would solve it in many cases. However, it’s possible the criteria for which Customers should be included in the update will be beyond the capabilities of that tool, so I may be presented with a (huge) list of IDs and need to update the corresponding Customers. It would be very helpful to see an example of how I could script that kind of operation.