Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
payment through php toolkit
I have this code below, and it successfully created a payment but it doesn't apply to a certain invoice.
$cpFields = array(
'customer' => new nsRecordRef(array('internalId' => $entity)),
'department' => new nsRecordRef(array('internalId' => $department)),
'location' => new nsRecordRef(array('internalId' => $location)),
'date' => $tranDate,
'memo' => $memo,
'payment' => $amount,
'autoApply'=>true,
'paymentMethod' => new nsRecordRef(array('internalId' => $pmethod)),
);
}
My question is:
How can I point or apply it to a certain transaction?