Hi all, please provide some help or thoughts on th...
# suitescript
r
Hi all, please provide some help or thoughts on this. I am writing a scheduled script which will read CSV files and create Sales Orders in the NetSuite system from the CSV data. We already have a lot of customizations in our system. When we created normal Sales Orders from the UI, on the click of OK of each item line, the client scripts trigger a complex pricing engine and a bunch of other dynamic customizations. How can I leverage these pricing engine and other functionalities from my scheduled script? In other words I want to simulate the OK click on each line item of the Sales Order (just like in UI) but from my SS. Any thoughts pls suggest. Thanks, Raj
b
basically hope that the code used in the client script can be used as a Custom Module
There is a fair chance that it will involve rewriting the the interface of the pricing engine
r
Thank you @battk Yes its a legacy code written in 1.0. Also it involves complex logic and has bunch of functionality.
b
SuiteScript 1 equivalent is a Library Script File
there is still a fair chance that you will need to change the interface of your pricing engine
keep in mind that now is probably the time to rewrite it to suitescript 2 since you will probably have to rewrite it anyways
r
Yes, sure. Thanks again 👍