Saturday, January 12, 2019

Make the "Tax Code" column non-mandatory for transactions through scripting

By design, the "Tax Code" column is set to mandatory, once you enable the "Per-Line Taxes on Transactions" preference. However, there are some cases that it won't be essential such as when editing historical records either uploaded via CSV or records created before tax codes feature were applied.


We can set it to non-mandatory through scripting. We would need to use a User Event script set to trigger on the "Before Load" event.

Below is a sample script on how we can set it to non-mandatory.




DISCLAIMER: The sample code described herein is provided on an"as is" basis, without warranty of any kind, to the fullest extentpermitted by law. Oracle + NetSuite Inc. does not warrant or guarantee theindividual success developers may have in implementing the sample code on theirdevelopment platforms or in using their own Web server configurations.

Oracle +NetSuite Inc. does not warrant, guarantee or make any representations regardingthe use, results of use, accuracy, timeliness or completeness of any data orinformation relating to the sample code. Oracle + NetSuite Inc. disclaims allwarranties, express or implied, and in particular, disclaims all warranties ofmerchantability, fitness for a particular purpose, and warranties related tothe code, or any service or software related thereto.

Oracle + NetSuite Inc. shall notbe liable for any direct, indirect or consequential damages or costs of anytype arising out of any action taken by you or others related to the samplecode.


 


No comments:

Post a Comment