I need some help, im creating a vendor payment fro...
# suitescript
i
I need some help, im creating a vendor payment from a
vendor bill
using transform, everything looks good except the record is not being created, it doesnt throw any error, here is what im doing, the script is deployed on the vendor bill on afterSubmit, first I create a journal entry, then
transform
the vendor bill to vendor payment, in there I set the customer, and then loop the list apply, in there I check two lines, the one with the
JE
just created and the one with the id of the vendor bill, commit the line and everything seems ok, just that when logging the id, for
record.save()
I get a 0, and when going to the vendor bill, it appears as PAID but on the
related records > payments
it only appears the Journal Entry, there is no vendor payment
b
you probably want to experiment in the ui more
payments are only created when necessary, if your payment only applies other transactions, then no actual payment is created