Discussions
Scripting customer payment assigned to multiple invoices
Hi all,
I have looked around the forum as usual, found a few related post with very similar questions but nothing seems to be answered.
Background:
We are importing a CSV with the status of monthly direct debit statuses (successfull, rejected, cancelled, etc.) and the amounts. We would like to create payments based on information imported. The problem is that these payments could be for multiple invoices.
Question:
How do I create a payment and assign it to multiple invoices via a script?
Understanding:
I realise I can use the nlapiTransformRecord but from my understanding this work on a one-to-one basis e.g. invoice for £60 gets transformed into a payment of £60. I am needing a payment of £60 for two seperate invoices of £30 each.