when creating an invoice from a sales order using ...
# ask-stanley-ai
l
when creating an invoice from a sales order using /transform, the sales order is only partially billed. how can I ensure it is fully billed
c
AI generated answer (using internal Slack threads):
****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ****** When creating an invoice from a sales order using the
/transform
method, if the sales order is only partially billed, you can ensure it is fully billed by following these steps: 1. Check the status of the sales order. If it's showing as "Pending Billing" but there's nothing left to bill, you might need to manually change the status to "Fully Billed". 2. If you have a sales order with a billing schedule, pay attention to the URL on the invoice when you invoice an existing sales order in the UI. The query parameters on the URL are defaultValues you need to set while calling
record.transform
. 3. If the tax calculated on the Ecom website that was put on the sales order doesn't carry over to the invoice, you might need to check which tax-related features your account is using, how the order is being imported, and which customizations related to taxes are in the account. 4. If all else fails, you can close the order or use the line level close too. This should change the status of the sales order to "Fully Billed". Remember, these steps are based on the information provided in the Slack threads and might not cover all possible scenarios. Always test in a sandbox environment before applying changes to your live environment.
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832635581
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.822109759
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.812750697
Please provide your feedback on this answer.