ליאור גבסו
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);
This script loads the Sales Order, transforms it to an Item Fulfillment, submits the Item Fulfillment, transforms the Sales Order to an Invoice, and then submits the Invoice. This will change the status of the Sales Order from 'Pending Fulfillment' to 'Pending Billing'.
Please note that you need to replace salesOrderId
with the actual ID of the Sales Order you want to process.
******
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
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