Hi guys, can you help me in write check transactio...
# suitescript
d
Hi guys, can you help me in write check transaction. Scenario: We have custom button (approve and remove created by workflow), in expense subtab we have custom amount and custom whtax code columns wherein they will input the amount and select the tax code that they will be used upon creation of the transaction. Next, when the button is approve there's a script (UE beforeSubmit) that will run to set the ff : amount (standard) = Based on custom amount column apply whtax = True whtax code (standard) = Based on the custom whtax code column Question : 1. Upon setting the whtax code why the whtax rate, whtax baseamt, and whtax taxamt not sourcing the value meaning the rate, baseamt, and taxamt still blank when there is amount and whtax code already set. 2. When we set the whtax rate, whtax baseamt, and whtax taxamt manually the withholding tax line is not created automatically. You need to create it manually and thus if will not reflect on the whtax report.
n
To confirm you're creating a "Check" transaction record? What are the internal ids of the "whtax code" and other "wh" fields? I don't see them on the records browser.
d
Withholding tax is a bundle created by NS sorry I didn't include.
n
Ah OK, in that case I'm sorry I don't know why, you may need to speak with Support since it could be linked to the bundle behaviour since it's (potentially) not native NS in relation to the sourcing element of the process.
You could look at scripted records for Check and see if there are other UE scripts running on the Check that may interfer? Perhaps you need to re-order the order your UE's run. Could be worth a look if you're sure your code is 100% working without error.
d
Yeah, I think re-ordering the script should be the answer. Thanks for the response.
n
Good luck!