Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
[php] Creating Customer Deposit
Hey all,
I'm trying to use the PHP Tool Kit to create a Customer Deposit. I can retrieve a Customer Deposit easily, but for whatever reason, I cannot create one. Here's what I have:
[PHP]require_once( trailingsla****( get_template_directory() ) .'PHPToolkit/NetSuiteService.php' );
$service = new NetSuiteService();
$deposit = new customerDeposit();
$deposit->customer = new RecordRef();
$deposit->customer->internalId = 5058;
$deposit->payment = 50;
$deposit->exchangerate = 1.01;
$request = new AddRequest();
$request->record = $deposit;
$addResponse = $service->add($request);
if (!$addResponse->writeResponse->status->isSuccess) {
echo "ADD ERROR";
} else {
echo "ADD SUCCESS, id " . $addResponse->writeResponse->baseRef->internalId;
I'm trying to use the PHP Tool Kit to create a Customer Deposit. I can retrieve a Customer Deposit easily, but for whatever reason, I cannot create one. Here's what I have:
[PHP]require_once( trailingsla****( get_template_directory() ) .'PHPToolkit/NetSuiteService.php' );
$service = new NetSuiteService();
$deposit = new customerDeposit();
$deposit->customer = new RecordRef();
$deposit->customer->internalId = 5058;
$deposit->payment = 50;
$deposit->exchangerate = 1.01;
$request = new AddRequest();
$request->record = $deposit;
$addResponse = $service->add($request);
if (!$addResponse->writeResponse->status->isSuccess) {
echo "ADD ERROR";
} else {
echo "ADD SUCCESS, id " . $addResponse->writeResponse->baseRef->internalId;
0