CMXX - Cartest update
This commit is contained in:
@@ -24,6 +24,20 @@ $clause = '';
|
||||
$clause_insert ='';
|
||||
$input_insert = '';
|
||||
|
||||
//INCLUDE ACCOUNTHIERARCHY
|
||||
$account = array(
|
||||
"salesid"=>$partner->salesid,
|
||||
"soldto"=>$partner->soldto,
|
||||
"shipto"=>$partner->shipto,
|
||||
"location"=>$partner->location,
|
||||
"section"=>$partner->section
|
||||
);
|
||||
|
||||
// CREATE ACCOUNTHIERARCHY JSON FROM ACCOUNT ARRAY
|
||||
$accounthierarchy = json_encode($account, JSON_UNESCAPED_UNICODE);
|
||||
// add to post_content
|
||||
$post_content['accounthierarchy'] = $accounthierarchy;
|
||||
|
||||
//ADD STANDARD PARAMETERS TO ARRAY BASED ON INSERT OR UPDATE
|
||||
if ($command == 'insert'){
|
||||
$post_content['created'] = $date;
|
||||
|
||||
Reference in New Issue
Block a user