ghettoboombox of Netsuite Snippets
6/9/2019 - 6:56 AM

Sales Order Customer Deposit Snippet

This snippet allows for slight modifications to create a customer deposit with a nominated account within Netsuite when a Sales Order is created


{{#if_eq record.Order.0.OrderPayment.0.PaymentType "PayPal Express"}}
	  "deposit_paymentmethod":"9",
      "deposit":[{
      "account":"333",
      "payment":"{{record.Order.0.OrderPayment.0.Amount}}",
								"custom_fields":
									[{
									"name":"trandate",
									"value":"{{dateTimeToDate record.Order.0.OrderPayment.0.DatePaid}}"
									},
									{
										"name":"custbody_pm_int_tran_con_id",
										"value":"{{record.Order.0.ID}}-0"
									},
									{
										"name":"externalid",
										"value":"{{record.Order.0.ID}}-0"
									},
									{
										"name":"custbody_pm_int_webstore",
										"value":"1"
									}]
    }],
{{/if_eq}}
This snippet allows for creation of a customer deposit for Awards & Trophies.
Key variables need to altered to suit the account