ליאור גבסו
03/26/2025, 10:58 AMCeligo AI
03/26/2025, 10:58 AMAI generated answer (using internal Slack threads):Yes, you can trigger the change from 'Pending Fulfillment' to 'Pending Billing' using a SuiteScript. This can be achieved by transforming the Sales Order to an Item Fulfillment record and then to an Invoice record. Here is a sample code snippet:
javascript
var salesorder = nlapiLoadRecord('salesorder', salesOrderId);
var itemFulfillmentId = nlapiTransformRecord('salesorder', salesOrderId, 'itemfulfillment');
nlapiSubmitRecord(itemFulfillmentId);
var invoiceId = nlapiTransformRecord('salesorder', salesOrderId, 'invoice');
nlapiSubmitRecord(invoiceId);salesOrderIdCeligo AI
03/26/2025, 10:58 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853198469
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851888061
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845531821
Celigo AI
03/26/2025, 10:58 AM