예제 #1
0
$f->l_select_field_from_object('ledger_id', gl_ledger::find_all(), 'gl_ledger_id', 'ledger', ${$class}->ledger_id, 'ledger_id', '', '', $readonly1, 1);
?>
</li>
      <li><label><?php 
echo gettext('Period Name');
?>
</label><?php 
if (!empty($period_name_stmt)) {
    echo $period_name_stmt;
} else {
    $f->text_field_d('period_id');
}
?>
      </li>
      <li><?php 
$f->l_select_field_from_object('ar_receipt_source_id', ar_receipt_source::find_all(), 'ar_receipt_source_id', 'receipt_source', ${$class}->ar_receipt_source_id, 'ar_receipt_source_id', '', 1, $readonly);
?>
			 </li>
      <li><?php 
$f->l_date_fieldFromToday_m('document_date', ${$class}->document_date, 1);
?>
</li>
      <li><?php 
$f->l_text_field_d('document_number');
?>
</li>
      <li><?php 
echo $f->l_val_field_d('customer_name', 'ar_customer', 'customer_name', '', 'customer_name', 'vf_select_customer_name');
echo $f->hidden_field_withId('ar_customer_id', ${$class}->ar_customer_id);
?>
<i class="generic g_select_customer_name select_popup clickable fa fa-search" data-class_name="ar_customer"></i></li>
예제 #2
0
<?php

include_once "../../../includes/basics/basics.inc";
global $f;
if (!empty($_GET['bu_org_id']) && !empty($_GET['find_receipt_source_details'])) {
    $data = [];
    $bu_org_id = $_GET['bu_org_id'];
    $receipt_source = ar_receipt_source::find_by_buOrgId($bu_org_id);
    $receipt_source_stmt = $f->select_field_from_object('ar_receipt_source_id', $receipt_source, 'ar_receipt_source_id', 'receipt_source', '', 'ar_receipt_source_id', '', 1);
    $data['receipt_source_stmt'] = $receipt_source_stmt;
    if (count($data) == 0) {
        return false;
    } else {
        echo header('Content-Type: application/json');
        echo json_encode($data);
    }
}