I have integrated WooCommerce with NetSuite and I ...
# ask-stanley-ai
v
I have integrated WooCommerce with NetSuite and I am creating Sales Orders using a SOAP PHP script. The tax amount is coming directly from WooCommerce, but in NetSuite, it requires selecting a tax code under the Accounting section on the Sales Order. How can I set or apply a custom tax amount on the Sales Order in NetSuite without manually selecting a tax code, since the tax is already calculated in WooCommerce?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you can set a custom tax amount on the Sales Order in NetSuite by creating a custom field on the header of the transaction to store the tax amount. Then, you can create a script that will take the value stored in the custom field and set the tax override amount field. Here is a sample script that was mentioned in the conversations:
Copy code
javascript
record.setFieldValue('istaxable','F' );
record.setFieldValue('taxitem','' );
In this script, 'record' is a sales order record. The 'istaxable' field is set to 'F' (False) and the 'taxitem' field is set to an empty string. Another approach mentioned in the conversations is to use the 'Tax Amount Override' feature. This feature allows you to override the tax amount calculated by NetSuite with a custom tax amount. However, to use this feature, you need to have a different tax code(s). Please note that these solutions might require some adjustments based on your specific setup and requirements. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851074219
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.847168
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845459044
Please provide your feedback on this answer.