accountdetails); $account_hierarchy = json_decode($responses->accounthierarchy); template_header('Account', 'account', 'view'); $view = '

'.$account_h2.' - '.$_GET['rowID'].'

'; if ($update_allowed === 1){ $view .= '✏️'; } $view .= '
'; if (isset($success_msg)){ $view .= '

'.$success_msg.'

'; } $view .= '
'; $view .= '
'.$view_account_information.'

'.$account_status.'

'.(($responses->status == 'Customer')? ''.$responses->status:''.$responses->status).'

'.$account_name.'

'.$account_details->billcompany.'

'.$account_firstname.'

'.$account_details->billfirstname.'

'.$account_lastname.'

'.$account_details->billlastname.'

'.$account_email.'

'.$account_details->billemail.'

'.$account_phone.'

'.$account_details->billphonenumber.'

'; $view .='
'; $view .='
'.$view_account_contact.'

'.$account_contactfirstname.'

'.$account_details->contactfirstname.'

'.$account_contactlastname.'

'.$account_details->contactlastname.'

'.$account_contactemail.'

'.$account_details->contactemail.'

'.$account_contactphonenumber.'

'.$account_details->contactphonenumber.'

'; $view .= '
'; $view .= '
'.$account_billing.'
'.$account_billstreetadress.' '.$account_details->billstreetadress.'
'.$account_details->billdistrict.'
'.$account_billpostalcode.' '.$account_details->billpostalcode.'
'.$account_billcity.' '.$account_details->billcity.'
'.$account_billstate.' '.$account_details->billstate.'
'.$account_billcountry.' '.$account_details->billcountry.'
'; $view .= '
'.$account_shipping.'
'.$account_streetadress.' '.$account_details->streetadress.'
'.$account_postalcode.' '.$account_details->postalcode.'
'.$account_details->district.'
'.$account_city.' '.$account_details->city.'
'.$account_state.' '.$account_details->state.'
'.$account_country.' '.$account_details->country.'
'.$account_vatnumber.' '.$account_details->vatnumber.'
'.$account_loghandlername.' '.$account_details->loghandlername.'
'.$account_loghandleraccount.' '.$account_details->loghandleraccount.'
'; $view .= '
'.$view_asset_details.'
'.$general_salesid.' '.$account_hierarchy->salesid.'
'.$general_soldto.' '.$account_hierarchy->soldto.'
'.$general_created.' '.getRelativeTime($responses->created).'
'.$general_createdby.' '.$responses->createdby.'
'; $soldto_id = explode("-",$account_hierarchy->soldto) ?? ''; //DISPLAY RELATED COMMUNICATION RECORDS $view_communication = ''; if ($_SESSION['authorization']['permission'] == 3 || $_SESSION['authorization']['permission'] == 4){ $view_communication = ' '.$button_partner_assigned_communication.''; } //DISPLAY RELATED USERS $view_users =''; if ($_SESSION['authorization']['permission'] == 3 || $_SESSION['authorization']['permission'] == 4){ $view_users = ' '.$button_partner_assigned_users.''; } $healthindex =''; if ($healthindex_allowed === 1){ $healthindex = ''.$view_asset_data_ranking.''; } $view .= '
'.$view_asset_actions.'
'.$button_partner_assigned_equipment.' '.$button_partner_assigned_contracts.' '.$view_communication.' '.$view_users.' '.$healthindex.'
'; //OUTPUT echo $view; template_footer() ?>