</td>
             <td><?php 
        echo $f->select_field_from_object('from_subinventory_id', subinventory::find_all_of_org_id(${$class}->from_org_id), 'from_subinventory_id', 'subinventory', ${$class}->from_subinventory_id, 'from_subinventory_id', 'from_subinventory_id', '', $readonly);
        ?>
         </td>
             <td><?php 
        echo $f->select_field_from_object('from_locator_id', locator::find_all_of_subinventory(${$class}->from_subinventory_id), 'locator_id', 'locator', ${$class}->from_locator_id, 'from_locator_id', 'locator_id from_subinventory_id', '', $readonly);
        ?>
         </td>
             <td><?php 
        echo $f->val_field_d('supplier_name', 'supplier', 'supplier_name', '', 'supplier_name', 'vf_select_supplier_name');
        echo $f->hidden_field_withId('supplier_id', ${$class}->supplier_id);
        ?>
<i class="generic g_select_supplier_name select_popup clickable fa fa-search" data-class_name="supplier"></i></td>
             <td><?php 
        $supplier_site_obj = !empty(${$class}->supplier_id) ? supplier_site::find_by_parent_id(${$class}->supplier_id) : array();
        echo $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, 'supplier_site_id');
        ?>
 </td>
             <td><?php 
        $f->text_field_d('rfid_reference');
        ?>
</td>
            </tr>
            <?php 
        $count = $count + 1;
    }
}
?>
         </tbody>
         <!--                  Showing a blank form for new entry-->
Ejemplo n.º 2
0
 </a></li>
    <li><a href="#tabsLine-7"><?php 
echo gettext('Notes');
?>
 </a></li>
    <li><a href="#tabsLine-8"><?php 
echo gettext('Secondary');
?>
</a></li>
   </ul>
   <div class="tabContainer">
    <div id="tabsLine-1" class="tabContent">
     <div class="first_rowset"> 
      <ul class="column header_field"> 
       <li><?php 
$f->l_select_field_from_object('supplier_site_type', supplier_site::supplier_site_types(), 'option_line_code', 'option_line_code', $supplier_site->supplier_site_type, 'supplier_site_type', '', '', $readonly);
?>
       </li>
       <li><?php 
$f->l_select_field_from_object('site_tax_country', option_header::COUNTRIES(), 'option_line_code', 'option_line_code', $supplier_site->site_tax_country, 'tax_country', '', '', $readonly);
?>
       </li>
       <li><?php 
$f->l_text_field('site_tax_reg_no', ${$class_second}->site_tax_reg_no);
?>
</li>
       <li><?php 
$f->l_text_field('site_tax_payer_id', ${$class_second}->site_tax_payer_id);
?>
</li>
       <li><?php 
Ejemplo n.º 3
0
    $supplier_file = file::find_by_reference_table_and_id('supplier', $supplier_id);
    $data = array_merge($data, (array) $supplier_file, (array) $supplier_details);
    if (count($supplier_details) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($data);
    }
}
if (!empty($_GET['supplier_id']) && !empty($_GET['org_id']) && !empty($_GET['find_supplier_bu_details'])) {
    $supplier_id = $_GET['supplier_id'];
    $org_id = $_GET['org_id'];
    $sbu = new supplier_bu();
    $supplier_bu_assigment = $sbu->findBy_orgId_supplierId($org_id, $supplier_id);
    if (count($supplier_bu_assigment) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($supplier_bu_assigment);
    }
}
if (!empty($_GET['supplier_site_id']) && ($_GET['find_site_details'] = 1)) {
    $supplier_site_id = $_GET['supplier_site_id'];
    $supplier_site_details = supplier_site::find_by_id($supplier_site_id);
    if (count($supplier_site_details) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($supplier_site_details);
    }
}
Ejemplo n.º 4
0
</th>
        <th><?php 
echo __('Documents');
?>
</th>
       </tr>
      </thead>
      <tbody class="form_data_line_tbody">
       <?php 
$count = 0;
foreach ($po_asl_line_object as $po_asl_line) {
    if (!empty(${$class_second}->supplier_id)) {
        $sup = new supplier();
        $sup->findBy_id(${$class_second}->supplier_id);
        ${$class_second}->supplier_name = $sup->supplier_name;
        $supplier_site = supplier_site::find_by_id(${$class_second}->supplier_site_id);
        $supplier_site_obj = [];
        array_push($supplier_site_obj, $supplier_site);
        $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class_second}->supplier_site_id, '', 'supplier_site_id', '', $readonly);
    } else {
        ${$class_second}->supplier_name = null;
        $supplier_site_name_statement = form::text_field('supplier_site_id', ${$class_second}->supplier_site_id);
    }
    ?>
         
        <tr class="po_asl_line<?php 
    echo $count;
    ?>
">
         <td>    
          <?php 
Ejemplo n.º 5
0
              </thead>
              <tbody class="form_data_line_tbody user_supplier_values" >
               <?php 
$count = 0;
foreach ($user_supplier_object as $user_supplier) {
    if (!empty(${$class}->supplier_id)) {
        $sup = new supplier();
        $sup->findBy_id(${$class}->supplier_id);
        ${$class}->supplier_name = $sup->supplier_name;
        $supplier_site = supplier_site::find_by_id(${$class}->supplier_site_id);
        $supplier_site_obj = [];
        if ($supplier_site) {
            array_push($supplier_site_obj, $supplier_site);
            $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, '', 'supplier_site_id', '', $readonly);
        } else {
            $supplier_site_obj = supplier_site::find_by_parent_id(${$class}->supplier_id);
            $supplier_site_name_statement = $f->select_field_from_object('supplier_site_id', $supplier_site_obj, 'supplier_site_id', 'supplier_site_name', ${$class}->supplier_site_id, '', 'supplier_site_id', '', $readonly);
        }
    } else {
        ${$class}->supplier_name = null;
        $supplier_site_name_statement = form::text_field('supplier_site_id', ${$class}->supplier_site_id);
    }
    ?>
         
                 <tr class="user_supplier_line<?php 
    echo $count;
    ?>
">
                  <td>    
                   <ul class="inline_action">
                    <li class="add_row_img"><img  src="<?php