Adam Weaver
01/21/2025, 2:53 PMCeligo AI
01/21/2025, 2:53 PMAI generated answer (using internal Slack threads):To add an ASAP charge to a sales order form, you can use a SuiteScript or a workflow depending on the complexity of your requirements. If you are using SuiteScript, you can modify the 'altSalesTotal' field on the Sales Order record. This field can be used to make changes to the Alternate Sales Amount (ASA), which can be used to add an ASAP charge. Here is a sample code snippet for SuiteScript:
javascript
var salesOrderRecord = nlapiLoadRecord('salesorder', salesOrderId);
salesOrderRecord.setFieldValue('altSalesTotal', yourChargeValue);
nlapiSubmitRecord(salesOrderRecord);
If your requirements are not too complex, you can also use a workflow to add the ASAP charge. You can create a new workflow, set the record type to 'Sales Order', and add a 'Set Field Value' action to set the 'altSalesTotal' field to your charge value.
Remember to test your changes in a sandbox environment before deploying to production.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
01/21/2025, 2:53 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806587756
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.792158842
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.790323675
Celigo AI
01/21/2025, 2:53 PM