gtSOSalesOrderAddress
This function supplies the information to add Customer Delivery Address details to Sales Order headers. Each Sales Order is uploaded to Greentree Desktop as a complete transaction set. The order either uploads in its entirety or nothing of the document is loaded into Greentree Desktop.
Reference
This must be the unique identifier generated by the gtSOSalesOrder function call. It has the format SOORD-nnn. This ensures the lines are of the correct order header. It also ensures Excel creates the header information before attempting to calculate and create the order line item details.
AddDeliveryText
Additional delivery instructions/information for the sales order.
Address1
The first line of the delivery address.
Address2
The second line of the delivery address.
Address3
The third line of the delivery address.
Suburb
The delivery address suburb.
PostCode
The delivery address postcode.
State
The delivery address state.
CountryCode
The delivery address country code. If no value is entered here, Greentree Desktop updates the country code for the address to the code associated with the customer's default address.
Contact
The delivery address contact name.
The delivery address email address.
Fax
The delivery address fax number.
MobileNo.
The delivery address mobile number.
PhoneNo.
The delivery address phone number.
Returns
- Ok - If there are no errors.
- Error - If there is an error.
Example
gtSOSalesOrderAddress(SOORD-1,Leave at back door,33 O'Hare Street,Penrose,Auckland,,,,,,,)
Errors Returned
- Invalid sales order header reference
- Sales order header not found