due to the way our business is set up, we enter or...
# suitescript
j
due to the way our business is set up, we enter orders under a parent account and we link the location/branch (child account) at the line item level. We have a field on the Sales Order where we need to pull the branch/location number but the only connection in the sales order record would be the account we enter in the line item. How can I source this with either SQL or SuiteScript? Is it possible to load that customer record and get that value?
b
you probably want to switch to native field labels for whatever you are describing
i have no idea which fields you are trying to describe
j
No native fields involved unfortunately. All Custom
b
what is a parent account
what is a location/branch (child account)
the standard interpretation of gl account makes no sense
j
ever heard of parent/child relationships in netsuite?
b
yes
j
there. For instance, let's say customer is McDonalds, we bill the parent and we enter Sales Orders under that same account but at the line item level we tie in the child account (image attached) which would be the McD location
b
still doing the confusing thing with accounts/location
there are native records named accounts and location
and it does not sound like you are describing those