Hi all, is there anyway to access the credits appl...
# suitescript
a
Hi all, is there anyway to access the credits applied subtab in the customer payment or bill payment transaction?
b
closest reasonable solution is to do a search on the bill or invoice so you can use the applying transaction
an unreasonable solution is to use the fact that Standard Customer Payment PDF/HTML Template has access to the credits sublist so you can use render.transaction to print the payment as html and then parse the html to get the credits
you wont find anything to set those sublists
a
No. only on the creation mode
the unreasonable solution 😄 will work on server side scripts? if I need to extract all credits data and set it to a custom body field as array of objects. will creating a user event script and trigger it will populate those data? thanks for your spport
b
you have more options if you do it in a user event script
the view context of a beforeLoad user event script also has access to the credits sublist
a
mass update trigger the user-event scripts. will trigger before load script right?
b
no, thats not a view
a
Okay, thank you so much