Hi, how do i get the paymentsessionamount on a sal...
# suitescript
g
Hi, how do i get the paymentsessionamount on a sales order when saving the record. I edited the data, and when I do this var paymentAmount = transactionRecord.getValue({ fieldId: 'paymentsessionamount' }) I get whatever was auto-populated. But the payment event saves with the edited amount so it has to be transferred somewhere... can't seem to find it!
p
Share more of your code. Is it in a UE? Which function? What is transactionRecord? newRecord, oldRecord, something else?
g
It's a client script, alerting if the Auth amount is lower then the total on the sales order. If no new info is entered then I can just take the last payment event. If a new auth is entered I cannot seem to pull the amount
got it. I was trying to pull it from the transaction and not from the current record