Ejemplo n.º 1
0
$f->l_select_field_from_object('org_id', org::find_all_inventory(), 'org_id', 'org', ${$class}->org_id, 'org_id', '', '', $readonly);
?>
         </li>
        <li><?php 
$f->l_text_field_d('wo_number', 'primary_column2');
?>
 </li>
        <li><?php 
$f->l_select_field_from_object('wo_type', am_wo_header::am_wo_type(), 'option_line_code', 'option_line_value', ${$class}->wo_type, 'wo_type', '', 1, $readonly);
?>
         </li>
        <li><label><?php 
echo gettext('Accounting Group');
?>
</label><?php 
echo $f->select_field_from_object('wip_accounting_group_id', wip_accounting_group::find_by_orgId(${$class}->org_id), 'wip_accounting_group_id', 'wip_accounting_group', ${$class}->wip_accounting_group_id, 'wip_accounting_group_id', '', 1, 'readonly1');
?>
         </li>
        <li><label><?php 
echo gettext('Asset Number');
?>
</label><?php 
$f->text_field_dm('am_asset_number');
echo $f->hidden_field_withId('am_asset_id', ${$class}->am_asset_id);
echo $f->hidden_field_withId('item_id_m', ${$class}->item_id_m);
?>
<i class="select_am_asset_number select_popup clickable fa fa-search"></i>
        </li>
        <li><?php 
$f->l_text_field_dm('activity_item_number', 'select_item_number_am_asset_activity');
echo $f->hidden_field_withId('activity_item_id_m', ${$class}->activity_item_id_m);
Ejemplo n.º 2
0
<?php

include_once "../../../includes/basics/basics.inc";
?>

<?php 
if (!empty($_GET['org_id']) && ($_GET['find_all_accounting_group'] = 1)) {
    echo '<div id="json_accounting_group_find_all">';
    $wag = new wip_accounting_group();
    $wag->org_id = $_GET['org_id'];
    $accounting_group_of_org = $wag->findBy_orgId();
    if (empty($accounting_group_of_org)) {
        return false;
    } else {
        foreach ($accounting_group_of_org as $record) {
            echo '<option value="' . $record->wip_accounting_group_id . '"';
            echo '>' . $record->wip_accounting_group . '</option>';
        }
    }
    echo '</div>';
}
?>