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.

Rookie Asked on February 2, 2023 in How To's.
Add Comment
4 Answer(s)

Hi,

Both of these are possible but are very different solutions.

Could you please explain your use case in more detail.

Thanks,

Chris

Intermediate Answered on February 2, 2023.
Add Comment

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).

Rookie Answered on February 2, 2023.
Add Comment

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

Intermediate Answered on February 3, 2023.
Add Comment

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.

Rookie Answered on February 3, 2023.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor