<?php include_once "../../../includes/basics/basics.inc"; ?> <div id="json_inventory_ac_all"> <?php if (!empty($_GET['ship_to_inventory']) && ($_GET['find_account_details'] = 1)) { $org_id = $_GET['ship_to_inventory']; echo '<br/> in 1'; $in = new inventory(); $inventory_i = $in->findBy_org_id($org_id); $cc = new coa_combination(); echo '<div id="json_ap_accrual_ac_id">' . $cc->findBy_id($inventory_i->inv_ap_accrual_ac_id)->combination . '</div>'; echo '<div id="json_material_ac_id">' . $cc->findBy_id($inventory_i->material_ac_id)->combination . '</div>'; echo '<div id="json_inv_ppv_ac_id">' . $cc->findBy_id($inventory_i->inv_ppv_ac_id)->combination . '</div>'; } ?> </div>
$org_id = $_GET['org_id']; $customer_bu_assigment = mdm_bank_bu::find_by_orgId_customerId($mdm_bank_id, $org_id); echo '</div>'; } if (!empty($_GET['mdm_bank_id']) && ($_GET['find_all_sites'] = 1)) { echo '<div id="json_customer_sites_all">'; $mdm_bank_id = $_GET['mdm_bank_id']; if (!empty($_GET['org_id'])) { $org_id = $_GET['org_id']; $acs = new mdm_bank_site(); if (mdm_bank_bu::validate_customerBuAssignment($mdm_bank_id, $org_id) == 1) { echo '<div id="json_customerSites_find_all">' . form::select_field_from_object('mdm_bank_site_id', $acs->findBy_parentId($mdm_bank_id), 'mdm_bank_site_id', 'customer_site_name', '', 'mdm_bank_site_id') . '</div>'; $arcbu = new mdm_bank_bu(); $arcbu->mdm_bank_id = $mdm_bank_id; $arcbu->org_id = $org_id; $arcbu_i = $arcbu->findBy_orgId_customerId(); echo "<div id='receivable_ac_id'>" . coa_combination::find_by_id($arcbu_i->receivable_ac_id)->combination . '</div>'; } else { echo "<div class=\"errorMsg\">Customer BU Assignment doesn't exists</div>"; } } else { echo form::select_field_from_object('mdm_bank_site_id', mdm_bank_site::find_all_sitesOfCustomer($mdm_bank_id), 'mdm_bank_site_id', 'customer_site_name', '', 'mdm_bank_site_id'); } echo '</div>'; } //customer site details if (!empty($_GET['mdm_bank_site_id']) && ($_GET['find_site_details'] = 1)) { $customer_site_details = mdm_bank_site::find_by_id($_GET['mdm_bank_site_id']); echo header('Content-Type: application/json'); echo json_encode($customer_site_details); }
<?php include_once "../../../includes/basics/basics.inc"; ?> <div id="json_inventory_ac_all"> <?php if (!empty($_GET['ship_to_inventory']) && ($_GET['find_account_details'] = 1)) { $org_id = $_GET['ship_to_inventory']; $in = new inventory(); $inventory_i = $in->findBy_org_id($org_id); $cc = new coa_combination(); if (!empty($cc->findBy_id($inventory_i->inv_ap_accrual_ac_id))) { $inv_ap_accrual_ac = $cc->findBy_id($inventory_i->inv_ap_accrual_ac_id); echo '<div id="json_ap_accrual_ac_id" data-ac_id="' . $inv_ap_accrual_ac->coa_combination_id . '">' . $inv_ap_accrual_ac->combination . '</div>'; } if (!empty($cc->findBy_id($inventory_i->material_ac_id))) { $material_ac = $cc->findBy_id($inventory_i->material_ac_id); echo '<div id="json_material_ac_id" data-ac_id="' . $material_ac->coa_combination_id . '">' . $material_ac->combination . '</div>'; } if (!empty($cc->findBy_id($inventory_i->inv_ppv_ac_id))) { $inv_ppv_ac = $cc->findBy_id($inventory_i->inv_ppv_ac_id); echo '<div id="json_inv_ppv_ac_id" data-ac_id="' . $inv_ppv_ac->coa_combination_id . '">' . $inv_ppv_ac->combination . '</div>'; } } ?> </div>
<?php include_once "../../../includes/basics/basics.inc"; global $db; // if the 'term' variable is not sent with the request, exit if (!isset($_REQUEST['term'])) { exit; } $coa_combination = $_REQUEST['term']; if (!empty($_REQUEST['primary_column1'])) { $primary_column1 = $_REQUEST['primary_column1']; } else { $primary_column1 = 1; } $cc = new coa_combination(); $cc->coa_id = $primary_column1; $cc->combination = $coa_combination; if (!empty($_REQUEST['ac_type'])) { $cc->ac_type = $_REQUEST['ac_type']; } $data = $cc->searchBy_coaId_combination(); if (empty($data)) { $cc->combination = null; $cc->description = $coa_combination; $data = $cc->searchBy_coaId_description(); } // jQuery wants JSON data echo json_encode($data); flush();
<?php include_once "../../../includes/basics/basics.inc"; if (!empty($_GET['ar_transaction_type_id']) && !empty($_GET['find_ar_transaction_type_detail'])) { $data = []; $transaction_type_details = ar_transaction_type::find_by_id($_GET['ar_transaction_type_id']); foreach ($transaction_type_details as $key => $val) { $data[$key] = $val; } $rece_ac = coa_combination::find_by_id($data['receivable_ac_id'])->combination; $data['receivable_ac'] = $rece_ac; if (count($data) == 0) { return false; } else { echo header('Content-Type: application/json'); echo json_encode($data); } }