Пример #1
0
 <table class="form_line_data_table">
  <thead> 
   <tr>
    <th><?php echo gettext('Seq') ?>#</th>
    <th><?php echo gettext('Agreed Quantity') ?></th>
    <th><?php echo gettext('Released Quantity') ?></th>
    <th><?php echo gettext('Agreed Amount') ?></th>
    <th><?php echo gettext('Released Amount') ?></th>
   </tr>
  </thead>
  <tbody class="form_data_line_tbody">
   <?php
   $count = 0;
   foreach ($po_line_object as $po_line) {
    if (($$class->po_type == 'BLANKET') && !empty($$class_second->po_line_id)) {
     $agrrement_details = po_line::find_agreement_details_by_lineId($$class_second->po_line_id);
     if ($agrrement_details) {
      $$class_second->agreed_quantity = $agrrement_details->agreed_quantity;
      $$class_second->agreed_amount = $agrrement_details->agreed_amount;
      $$class_second->released_quantity = $agrrement_details->released_quantity;
      $$class_second->released_amount = $agrrement_details->released_amount;
     } else {
      $$class_second->agreed_quantity = $$class_second->agreed_amount = $$class_second->released_quantity = $$class_second->released_amount = null;
     }
    } else {
     $$class_second->agreed_quantity = $$class_second->agreed_amount = $$class_second->released_quantity = $$class_second->released_amount = null;
    }
    ?>         
    <tr class="po_line<?php echo $count ?>">
     <td><?php $f->seq_field_d($count) ?></td>
     <td><?php $f->text_field_wid2r('agreed_quantity'); ?></td>
Пример #2
0
        <th><?php 
echo gettext('Agreed Amount');
?>
#</th>
        <th><?php 
echo gettext('Released Amount');
?>
#</th>
       </tr>
      </thead>
      <tbody class="form_data_line_tbody">
       <?php 
$count = 0;
foreach ($po_line_object as $po_line) {
    if (!empty(${$class_second}->bpa_line_id)) {
        $agrrement_details = po_line::find_agreement_details_by_lineId(${$class_second}->bpa_line_id);
        //                pa($agrrement_details);
        ${$class_second}->agreed_quantity = $agrrement_details->agreed_quantity;
        ${$class_second}->agreed_amount = $agrrement_details->agreed_amount;
        ${$class_second}->released_quantity = $agrrement_details->released_quantity;
        ${$class_second}->released_amount = $agrrement_details->released_amount;
    } else {
        ${$class_second}->agreed_quantity = ${$class_second}->agreed_amount = ${$class_second}->released_quantity = ${$class_second}->released_amount = null;
    }
    ?>
         
        <tr class="po_line<?php 
    echo $count;
    ?>
">
         <td><?php 
?>
 						</li>
        <li><?php 
$f->l_select_field_from_array('req_approval_hierarchy', po_purchasing_control::$approval_hierarchy_a, ${$class}->req_approval_hierarchy);
?>
 						</li>
        <li><?php 
$f->l_ac_field_d('tax_ac_id');
?>
</li> 
        <li><?php 
$f->l_select_field_from_object('default_inv_org_id', org::find_all_inventory(), 'org_id', 'org', ${$class}->default_inv_org_id, 'default_inv_org_id', '', 1, $readonly);
?>
 </li>
        <li><?php 
$f->l_select_field_from_object('default_line_type', po_line::po_line_types(), 'option_line_code', 'option_line_value', ${$class}->default_line_type, 'default_line_type', 'copyValue', 1, $readonly);
?>
</li>
       </ul> 
      </div> 
      <!--end of tab1 div three_column-->
     </div> 
     <!--              end of tab1-->

     <div id="tabsLine-2" class="tabContent">
      <div class="shipto_address"><?php 
$f->address_field_d('ship_to_id');
?>
</div>
      <div class="billto_address"><?php 
$f->address_field_d('bill_to_id');
Пример #4
0
${$class_third} =& $po_detail;
?>

<?php 
if (!empty($_GET["po_header_id"])) {
    $po_header_id = htmlentities($_GET["po_header_id"]);
} elseif (!empty($_POST["po_header_id"][0])) {
    $po_header_id = $_POST["po_header_id"][0];
} else {
    $po_line = new po_line();
    $po_line_object = array();
    array_push($po_line_object, $po_line);
    //	$field_array = po_line::$field_array;
}
if (!empty($po_header_id)) {
    $po_line_object = po_line::find_by_po_headerId($po_header_id);
    //assign the item number to the object
    foreach ($po_line_object as &$po_lines) {
        if (!empty($po_lines->item_id_m)) {
            $item = item::find_by_id($po_lines->item_id_m);
            $po_lines->item_number = $item->item_number;
        }
    }
    if (count($po_line_object) == 0) {
        $po_line = new po_line();
        $po_line_object = array();
        array_push($po_line_object, $po_line);
    }
}
?>
Пример #5
0
 							 </ul>
 							</td>
 							<td><?php 
    form::text_field_wid2sr('po_line_id');
    ?>
</td>
 							<!--<td><?php 
    // form::text_field_wid2s('line_number');
    ?>
</td>-->
 							<td><?php 
    echo form::text_field('line_number', ${$class_second}->line_number, '8', '20', 1, 'Auto no', '', $readonly, 'lines_number');
    ?>
</td>
 							<td><?php 
    echo form::select_field_from_object('line_type', po_line::po_line_types(), 'option_line_id', 'option_line_code', ${$class_second}->line_type, 'line_type', $readonly);
    ?>
</td>
 							<td><?php 
    form::text_field_wid2sr('item_id_m');
    ?>
</td>
 							<td><?php 
    form::text_field_wid2('item_number');
    ?>
</td>
 							<td><?php 
    form::text_field_wid2('item_description');
    ?>
</td>
							<td><?php 
Пример #6
0
                 </ul>
                </td>
                <td><?php 
    form::text_field_wid2sr('po_line_id');
    ?>
</td>
                <td><?php 
    echo form::text_field('line_number', ${$class_second}->line_number, '8', '20', 1, 'Auto no', '', $readonly, 'lines_number');
    ?>
</td>
                <td><?php 
    echo $f->select_field_from_object('receving_org_id', org::find_all_inventory(), 'org_id', 'org', ${$class_second}->receving_org_id, '', 'copyValue', 1, $readonly);
    ?>
</td>
                <td><?php 
    echo $f->select_field_from_object('line_type', po_line::po_line_types(), 'option_line_code', 'option_line_value', ${$class_second}->line_type, '', 'copyValue', 1, $readonly);
    ?>
</td>
                <td><?php 
    echo $f->hidden_field('item_id_m', ${$class_second}->item_id_m);
    form::text_field_wid2('item_number', 'select_item_number');
    ?>
                 <i class="select_item_number select_popup clickable fa fa-search"></i></td>
                <td><?php 
    form::text_field_wid2('item_description');
    ?>
</td>
                <td><?php 
    echo $f->number_field('line_quantity', ${$class_second}->line_quantity);
    ?>
</td>