<th><?php 
    echo gettext('Action');
    ?>
</th>
                  <th><?php 
    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>
        <th><?php 
echo gettext('Add Lot Numbers');
?>
</th>
        <th><?php 
echo gettext('Add Serial Numbers');
?>
</th>
       </tr>
      </thead>
      <tbody class="form_data_line_tbody">
       <?php 
$count = 0;
foreach ($inv_interorg_transfer_line_object as $inv_interorg_transfer_line) {
    $inv_trnx = inv_transaction::find_by_refName_refValue('inv_interorg_transfer_line', ${$class_second}->inv_interorg_transfer_line_id);
    ?>
    
        <tr class="inv_interorg_transfer_line<?php 
    echo $count;
    ?>
">
         <td class="add_detail_values0">	<?php 
    echo !empty(${$class_second}->lot_number_id) ? $f->hidden_field('lot_number_id', ${$class_second}->lot_number_id) : $f->hidden_field('lot_number_id', '');
    echo !empty(${$class_second}->lot_generation) ? $f->hidden_field('lot_generation', ${$class_second}->lot_generation) : $f->hidden_field('lot_generation', '');
    ?>
 
          <img src="<?php 
    echo HOME_URL;
    ?>
themes/images/page_add_icon_16.png" class="add_detail_values_img" alt="add detail values" />