Sharon Brown
09/24/2024, 2:37 PMCeligo AI
09/24/2024, 2:37 PMAI generated answer (using internal Slack threads):To exclude shipping cost on a customer invoice, you can use a SuiteScript. You can create a User Event script that triggers on the creation of an invoice. In this script, you can set the shipping cost to zero. Here is a sample code snippet:
javascript
function beforeSubmit(type){
    if(type == 'create'){
        var record = nlapiGetNewRecord();
        var shippingCost = record.getFieldValue('shippingcost');
        if(shippingCost != 0){
            record.setFieldValue('shippingcost', 0);
        }
    }
}Celigo AI
09/24/2024, 2:38 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.836789072
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830066204
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828123629
Celigo AI
09/24/2024, 2:38 PM