echo gettext('Serial Number');
    ?>
</th>
                 </tr>
                </thead>
                <tbody class="form_data_detail_tbody">
                 <?php 
    $detailCount = 0;
    if (!empty(${$class_second}->inv_receipt_line_id)) {
        $serial_object = [];
        $inv_trnx_i = inv_transaction::find_by_refName_refValue('inv_receipt_line', ${$class_second}->inv_receipt_line_id);
        if (!empty($inv_trnx_i->inv_transaction_id)) {
            $serial_trnxs = inv_serial_transaction::find_by_invTransactionId($inv_trnx_i->inv_transaction_id);
            if (!empty($serial_trnxs)) {
                foreach ($serial_trnxs as $serial_trnx) {
                    $serial_no = new inv_serial_number();
                    $serial_no->findBy_id($serial_trnx->inv_serial_number_id);
                    array_push($serial_object, $serial_no);
                }
            }
        }
    }
    if (empty($serial_object)) {
        $serial_object = array(new inv_serial_number());
    }
    foreach ($serial_object as $serial_no) {
        ?>
                  <tr class="inv_serial_number<?php 
        echo $detailCount;
        echo $detailCount != 0 ? ' new_object' : '';
        ?>
  </tr>
 </thead>
 <tbody class="form_data_line_tbody">
  <?php
  $count = 0;
  if (!empty($search_result)) {
   foreach ($search_result as $inv_reservation) {
    if (!empty($$class->onhand_id)) {
     $onhand_i = onhand_v::find_by_id($$class->onhand_id);
     $$class->onhand = $onhand_i->onhand;
     $$class->reservable_onhand = $onhand_i->reservable_onhand;
    }else{
     $$class->onhand =  $$class->reservable_onhand = null;
    }
    if (!empty($$class->inv_serial_number_id)) {
     $inv_serial_number_i = inv_serial_number::find_by_id($$class->inv_serial_number_id);
     $$class->serial_number = $inv_serial_number_i->serial_number;
    }else{
     $$class->serial_number =  null;
    }
    ?>         
    <tr class="inv_reservation_line<?php echo $count ?>">
     <td><?php $f->seq_field_d($count); ?></td>
     <td><?php echo $f->select_field_from_array('supply_type', inv_reservation::$supply_type_a, $$class->supply_type); ?></td>
     <td><?php echo $f->select_field_from_object('subinventory_id', subinventory::find_all_of_org_id($$class->org_id), 'subinventory_id', 'subinventory' ,$$class->subinventory_id,  '' , 'subinventory_id subinventory'); ?>         </td>
     <td><?php echo $f->select_field_from_object('locator_id', locator::find_all_of_subinventory($$class->subinventory_id), 'locator_id', 'locator' , $$class->locator_id, '', 'locator_id locator'); ?>         </td>
     <td><?php
      echo $f->val_field_wid('serial_number', 'inv_serial_number', 'serial_number', 'item_id_m');
      echo $f->hidden_field('inv_serial_number_id', $$class->inv_serial_number_id);
      echo $f->hidden_field_withCLass('org_id', '', 'popup_value');
      echo $f->hidden_field_withCLass('item_id_m', '', 'popup_value item_id_m');
    ?>
</th>
                  <th><?php 
    echo gettext('End Date');
    ?>
</th>
                 </tr>
                </thead>
                <tbody class="form_data_detail_tbody">
                 <?php 
    $detailCount = 0;
    foreach ($hd_service_contract_detail_object as $hd_service_contract_detail) {
        $class_third = 'hd_service_contract_detail';
        ${$class_third} =& $hd_service_contract_detail;
        ${$class_third}->item_number = !empty(${$class_third}->item_id_m) ? item::find_by_item_id_m(${$class_third}->item_id_m)->item_number : '';
        ${$class_third}->serial_number = !empty(${$class_third}->inv_serial_number_id) ? inv_serial_number::find_by_id(${$class_third}->inv_serial_number_id)->serial_number : '';
        ?>
                  <tr class="hd_service_contract_detail<?php 
        echo $count . '-' . $detailCount;
        ?>
">
                   <td>
                    <?php 
        echo ino_inline_action(${$class_third}->hd_service_contract_detail_id, array('hd_service_contract_header_id' => ${$class}->hd_service_contract_header_id, 'hd_service_contract_line_id' => ${$class_second}->hd_service_contract_line_id), 'add_row_detail_img', 'detail_id_cb');
        ?>
                   </td>
                   <td><?php 
        $f->seq_field_detail_d($detailCount);
        ?>
</td>
                   <td><?php 
Exemplo n.º 4
0
<?php

include_once "../../../includes/basics/basics.inc";
if (!empty($_GET['item_id_m']) && !empty($_GET['find_serial_list']) && !empty($_GET['status'])) {
    $isn = new inv_serial_number();
    $isn->item_id_m = $_GET['item_id_m'];
    $isn->status = $_GET['status'];
    $isn->current_org_id = !empty($_GET['current_org_id']) ? $_GET['current_org_id'] : null;
    $isn->current_subinventory_id = !empty($_GET['current_subinventory_id']) ? $_GET['current_subinventory_id'] : null;
    $isn->current_locator_id = !empty($_GET['current_locator_id']) ? $_GET['current_locator_id'] : null;
    $data = $isn->findBasic_SerialInfo();
    if (count($data) > 0) {
        echo header('Content-Type: application/json');
        echo json_encode($data);
    }
}
Exemplo n.º 5
0
    $f->text_field_d('item_number', 'select_item_number');
} else {
    $f->text_field_dr('item_number');
}
?>
      </li>
      <li><?php 
$f->l_text_field_dr('item_description');
?>
</li>
      <li><?php 
$f->l_text_field_d('serial_number');
?>
</li>
      <li><?php 
$f->l_select_field_from_object('status', inv_serial_number::serail_status(), 'option_line_code', 'option_line_value', ${$class}->status, 'status', '', 1, 1);
?>
       </li>
      <li><?php 
$f->l_select_field_from_array('generation', item::$ls_generation_a, ${$class}->generation, '', 'generation', '', 1, 1);
?>
       </li> 
      <li><?php 
$f->l_text_field_d('description');
?>
 					</li>
     </ul>
    </div>
    <div id="tabsHeader-2" class="tabContent">
     <div> <?php 
echo ino_attachement($file);