<@UD595Q3FC> - lucky you...hope for something simi...
# suitescript
l
@Zeeshan - lucky you...hope for something similar on payment, but it is not yet there...
b
depending on what sort of payment you are speaking about, there should be a default value similar to deposits
for example, on customer payments, it could be inv
l
@battk - in help it looks like it is only for deposits - already tried invoice, apply, credit - all throw an error abot wrong init parameter
b
thats unfortunate
you could try the opposite direction and directly apply the credit memo or customer deposit to an invoice
z
@lukasz You could use the "entity" & "invoices" as initializing params while creating customer payment for specific invoices. For your information default initialize params and default transformed params are two different things. Please see the SuiteScript 1.0 Record Initialization Defaults list in SuiteAnswers https://netsuite.custhelp.com/app/answers/detail/a_id/10470/
l
@Zeeshan - I was using transform, not load, but maybe can change it and use entity - will check that one, but still it is only 50% as there is also credit sublist...
@Zeeshan - I tested it and seems that it may help for invoices - thank you, so just credit part is the missing piece now...
z
For the credits and deposits, you may use "credits", "deposits" like "invoices" as param on customer payment.
Make sure you use these params while creating customer payment in dynamic mode.
l
not described in help, but let me try...
👍 1
@Zeeshan - I owe you a huge beer (or whatever you drink) 🍺. Not sure yet if passing 1000 of invoices will cause problems or not, but in general it looks that all 3 params are working - even NS Support was not able to solve this one, so 👏 👏 👏 for you!!
z
Thanks for the compliment!! That's one of my tips & tricks 😉
l
yeah - that's unfortune that we need to have tips and tricks to solve problems 😉