Exemplo n.º 1
0
    ?>
         </td>
         <td><?php 
    $f->seq_field_d($count);
    ?>
</td>
         <td><?php 
    $f->text_field_wid2s('hr_expense_line_id', 'always_readonly dontCopy');
    ?>
</td>
         <td><?php 
    $f->text_field_wid2s('line_number', 'lines_number');
    ?>
</td>
         <td><?php 
    echo $f->select_field_from_object('expense_type', hr_expense_tpl_line::find_by_parent_id(${$class}->expense_template_id), 'hr_expense_tpl_line_id', 'expense_item', ${$class_second}->expense_type, '', '', 1, '', '', '', '', 'expense_category');
    ?>
</td>
         <td><?php 
    echo $f->date_fieldAnyDay('claim_date', ${$class_second}->claim_date);
    ?>
</td>
         <td><?php 
    echo $f->select_field_from_object('receipt_currency', option_header::currencies(), 'option_line_code', 'option_line_code', ${$class}->currency);
    ?>
</td>
         <td><?php 
    form::number_field_wid2s('receipt_amount');
    ?>
</td>
         <td><?php 
Exemplo n.º 2
0
<?php

include_once "../../../includes/basics/basics.inc";
if (!empty($_GET['expense_template_id']) && ($_GET['find_expense_details'] = 1)) {
    echo '<div id="expense_template_details">';
    $expense_details = hr_expense_tpl_line::find_by_parent_id($_GET['expense_template_id']);
    if (empty($expense_details)) {
        return false;
    } else {
        echo '<option value=""></option>';
        foreach ($expense_details as $key => $value) {
            echo '<option value="' . $value->hr_expense_tpl_line_id . '" data-expense_category = "' . $value->expense_category . '" ';
            echo '>' . $value->expense_item . '</option>';
        }
    }
    echo '</div>';
}
?>