CMXX - Cartest update

This commit is contained in:
“VeLiTi”
2024-11-13 11:57:17 +01:00
parent ccdd5b6347
commit fa1bb61712
7 changed files with 303 additions and 113 deletions

View File

@@ -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;