hello everyone, if i need do this, Create a button...
# general
a
hello everyone, if i need do this, Create a button in SO view mode named 'Add Line Calc' that would initiate the following record operations:
Get the total amount(rate x qty) of the sales order line items
Get the 8.5% of the total amount
Add an item to the line items: internalid:999, quantity = 1, rate = (8.5%total amount) , i need the user event for the button, but the question is , for the operation what type of script i need? to do the process when the user click th button. thanks!!!
f
If you need it to be performed on the Edit mode, then obviously you need a Client Script
e
The button should call a suitelet that will run server-side to do the calculation and line addition.
f
Hmmm,,, I don't think SuiteLet can add the line. Can it? I have a similar solution but I use 1. UE to create the button 2. CS to create the action
a
i finally made a user event for show the button and a suitlet to made the record operations , thanks!!!