which answers part of my previous question, i can ...
# suitescript
m
which answers part of my previous question, i can ONLY react after the vendor payment record has been created, coming from PAY BILLS. Now, in my scenario, vendor bills have a custom field (special type) which is a list of values. I need to ensure that no one creates a vendor payment from the pay bills UI, with vendor bills with differnt SPECIAL TYPE. Is tehre any way to interact with the Pay Bills form?
s
PAY BILLS actually fires the before submit event as well.
You can't change the Pay Bills screen, but if you have a script that fires on before submit of PAY BILLS (deployed to Vendor Payment), you should be able to detect that bills applied have different special types and throw an exception.
It's not pretty, but it will at least prevent the payment from generating.
If you need to always group bills together based on the special type, the only way to do that is to modify the billing address on the bill to make it unique to each group. That will force NS to not group all of them together and will generate separate payments.
m
thanks for your input, could you clarify what you mean by the last sentence? I got lost and I think this might be an interesting workaraound
what do you mean by modifying the billing address to make it unique?
thanks in advance for your taking the time to respond to my questions