Example #1
0
         <th><?php echo gettext('Line Price') ?>#</th>
         <th><?php echo gettext('Tax Code') ?></th>
         <th><?php echo gettext('Tax Amount') ?></th>
         <th><?php echo gettext('GL Line Price') ?></th>
         <th><?php echo gettext('GL Tax Amount') ?></th>
         <th><?php echo gettext('Line Description') ?></th>
        </tr>
       </thead>
       <tbody class="form_data_line_tbody">
        <?php
        $count = 0;
        foreach ($po_line_object as $po_line) {
         ?>         
         <tr class="po_line<?php echo $count ?>">
          <td><?php $f->seq_field_d($count) ?></td>
          <td><?php echo $f->select_field_from_object('price_list_header_id', mdm_price_list_header::find_all_purchasing_pl(), 'mdm_price_list_header_id', 'price_list', $$class_second->price_list_header_id, '', 'medium copyValue'); ?>
          </td>
          <td><?php echo $f->date_fieldAnyDay('price_date', $$class_second->price_date, 'copyValue') ?></td>
          <td><?php echo $f->number_field('unit_price', $$class_second->unit_price); ?></td>
          <td><?php echo $f->number_field('line_price', $$class_second->line_price); ?></td>
          <td><?php echo $f->select_field_from_object('tax_code_id', mdm_tax_code::find_all_inTax_by_bu_org_id($$class->bu_org_id), 'mdm_tax_code_id', 'tax_code', $$class_second->tax_code_id, '', 'input_tax medium', '', $readonly, '', '', '', 'percentage') ?></td>
          <td><?php form::number_field_wid2('tax_amount'); ?></td>
          <td><?php $f->text_field_d2sr('gl_line_price'); ?></td>
          <td><?php $f->text_field_d2sr('gl_tax_amount'); ?></td>
          <td><?php form::text_field_wid2('line_description'); ?></td>

         </tr>
         <?php
         $count = $count + 1;
        }
        ?>
Example #2
0
?>
</li>
        <li><?php 
$f->l_select_field_from_object('currency', option_header::currencies(), 'option_line_code', 'option_line_code', ${$class}->currency, 'currency', '', 1, 1);
?>
</li>
        <li><?php 
$f->l_select_field_from_object('exchange_rate_type', gl_currency_conversion::currency_conversion_type(), 'option_line_code', 'option_line_code', ${$class}->exchange_rate_type, 'exchange_rate_type', '', 1, $readonly);
?>
</li>
        <li><?php 
$f->l_number_field('exchange_rate', ${$class}->exchange_rate, '', 'exchange_rate');
?>
 </li>
        <li><?php 
$f->l_select_field_from_object('price_list_header_id', mdm_price_list_header::find_all_purchasing_pl(), 'mdm_price_list_header_id', 'price_list', ${$class}->price_list_header_id);
?>
</li>
        <li><?php 
$f->l_number_field('header_amount', ${$class}->header_amount, '15', 'header_amount');
?>
</li>
        <li><?php 
$f->l_number_field('tax_amount', ${$class}->tax_amount, '15', 'tax_amount');
?>
</li>
        <li><?php 
$f->l_select_field_from_object('payment_term_id', payment_term::find_all(), 'payment_term_id', 'payment_term', ${$class}->payment_term_id, 'payment_term_id', '', 1, $readonly1);
?>
</li>
       </ul>