Hi all, we are show the total paid amount of a ven...
# suitescript
m
Hi all, we are show the total paid amount of a vendor bill in a PDF template, but that info is not available to the template through any field. We tried to use a custom field that gets updated every time a relevant record gets created that would effect that total paid amount... but for a certain process, where they creates a journal, then a bill payment, then the bill payment disappear somehow and leave the journal without any links to the vendor bill (they call it settlement journal, but I don't have enough info about it)... that process doesn't trigger the UE script. So... is there a better solution for this? I wish if there was a way where I can just listen to the updates of the fields (without caring about what triggered it).
d
have you tried a non-stored field sourced from the results of a summary saved search?
m
I am not sure how you can change the criteria based on the record here. The saved search has to be dynamic.
I ended up creating a custom record, attach it to the vendor bill, that I update it using beforeLoad... then get the value from that custom record.
It doesn't matter what will change the amount now.