Skip to content

Instantly share code, notes, and snippets.

View etahamad's full-sized avatar

Omar Hamad etahamad

View GitHub Profile
@iloveitaly
iloveitaly / netsuite_payment_auto_apply_after_creation.js
Last active October 3, 2023 09:16
Auto-apply NetSuite Customer Payments to NetSuite Invoices when they are Created or Edited
/*
Author: <mike@suitesync.io>
Description: When is invoice is created or edited, any unapplied payments on the customer
are auto-applied to the invoice.
Link: https://gist.github.com/iloveitaly/a35d460b0fb744a290dce3db95873e41
Installation:
1. https://system.sandbox.netsuite.com/app/common/scripting/uploadScriptFile.nl
2. User Event
3. Name: Auto-apply Unapplied Customer Payments