Example #1
0
      <?php 
echo !empty($assigned_bu_statement) ? $assigned_bu_statement : "";
?>
     </div>
    </div>
    <div id="tabsHeader-3" class="tabContent">
     <div> 
      <ul class="column five_column">
       <li><label>Customer Profile : </label>
        <?php 
echo form::text_field_d('profile_name');
?>
       </li>
       <li><label>Credit Class : </label>
        <?php 
echo form::select_field_from_object('customer_credit_class', ar_customer::customer_credit_class(), 'option_line_code', 'option_line_value', ${$class}->customer_credit_class, 'customer_credit_class', $readonly, '', '');
?>
       </li>
      </ul>
     </div>
    </div>
    <div id="tabsHeader-4" class="tabContent">
     <div class="header_address"><?php 
$f->address_field_d('bill_to_id', 1, 'customer_header');
?>
</div>
     <div class="shipto_address"><?php 
$f->address_field_d('ship_to_id', 1, 'customer_header');
?>
</div>
    </div>
Example #2
0
<?php

include_once "../../../includes/basics/basics.inc";
if (!empty($_REQUEST['action']) && ($_REQUEST['action'] = 'search')) {
    if (empty($_REQUEST['term'])) {
        exit;
    }
    $customer_name = $_REQUEST['term'];
    if (!empty($_REQUEST['primary_column1'])) {
        $primary_column1 = $_REQUEST['primary_column1'];
    }
    $customer = new ar_customer();
    $customer->customer_name = $customer_name;
    if (!empty($primary_column1)) {
        $customer->org_id = $primary_column1;
        $data = $customer->searchBy_customerName_orgId();
    } else {
        $data = $customer->searchBy_customer_name();
    }
    // JSON data
    echo json_encode($data);
    flush();
    //return from this file
    return;
}
if (!empty($_GET['ar_customer_id']) && !empty($_GET['org_id'])) {
    echo '<div id="customer_bu_addresses">';
    $ar_customer_id = $_GET['ar_customer_id'];
    $org_id = $_GET['org_id'];
    $customer_bu_assigment = ar_customer_bu::find_by_orgId_customerId($ar_customer_id, $org_id);
    echo '</div>';