コード例 #1
0
ファイル: gl_journal.php プロジェクト: M-Shahbaz/FA
//-----------------------------------------------------------------------------------------------
$id = find_submit('Delete');
if ($id != -1) {
    handle_delete_item($id);
}
if (isset($_POST['AddItem'])) {
    handle_new_item();
}
if (isset($_POST['UpdateItem'])) {
    handle_update_item();
}
if (isset($_POST['CancelItemChanges'])) {
    line_start_focus();
}
if (isset($_POST['go'])) {
    display_quick_entries($_SESSION['journal_items'], $_POST['person_id'], input_num('totamount'), QE_JOURNAL);
    $_POST['totamount'] = price_format(0);
    $Ajax->activate('totamount');
    line_start_focus();
}
//-----------------------------------------------------------------------------------------------
start_form();
display_order_header($_SESSION['journal_items']);
start_table(TABLESTYLE2, "width='90%'", 10);
start_row();
echo "<td>";
display_gl_items(_("Rows"), $_SESSION['journal_items']);
gl_options_controls();
echo "</td>";
end_row();
end_table(1);
コード例 #2
0
//-----------------------------------------------------------------------------------------------
$id = find_submit('Delete');
if ($id != -1) {
    handle_delete_item($id);
}
if (isset($_POST['AddItem'])) {
    handle_new_item();
}
if (isset($_POST['UpdateItem'])) {
    handle_update_item();
}
if (isset($_POST['CancelItemChanges'])) {
    line_start_focus();
}
if (isset($_POST['go'])) {
    display_quick_entries($_SESSION['pay_items'], $_POST['person_id'], input_num('totamount'), $_SESSION['pay_items']->trans_type == ST_BANKPAYMENT ? QE_PAYMENT : QE_DEPOSIT);
    $_POST['totamount'] = price_format(0);
    $Ajax->activate('totamount');
    line_start_focus();
}
//-----------------------------------------------------------------------------------------------
start_form();
display_bank_header($_SESSION['pay_items']);
start_table(TABLESTYLE2, "width=90%", 10);
start_row();
echo "<td>";
display_gl_items($_SESSION['pay_items']->trans_type == ST_BANKPAYMENT ? _("Payment Items") : _("Deposit Items"), $_SESSION['pay_items']);
gl_options_controls($_SESSION['pay_items']);
echo "</td>";
end_row();
end_table(1);
コード例 #3
0
ファイル: supplier_invoice.php プロジェクト: M-Shahbaz/FA
    $_SESSION['supp_trans']->remove_gl_codes_from_trans($id4);
    clear_fields();
    reset_tax_input();
    $Ajax->activate('gl_items');
}
$id2 = -1;
if ($_SESSION["wa_current_user"]->can_access('SA_GRNDELETE')) {
    $id2 = find_submit('void_item_id');
    if ($id2 != -1) {
        remove_not_invoice_item($id2);
        display_notification(sprintf(_('All yet non-invoiced items on delivery line # %d has been removed.'), $id2));
    }
}
if (isset($_POST['go'])) {
    $Ajax->activate('gl_items');
    display_quick_entries($_SESSION['supp_trans'], $_POST['qid'], input_num('totamount'), QE_SUPPINV);
    $_POST['totamount'] = price_format(0);
    $Ajax->activate('totamount');
    reset_tax_input();
}
start_form();
invoice_header($_SESSION['supp_trans']);
if ($_POST['supplier_id'] == '') {
    display_error(_("There is no supplier selected."));
} else {
    display_grn_items($_SESSION['supp_trans'], 1);
    display_gl_items($_SESSION['supp_trans'], 1);
    div_start('inv_tot');
    invoice_totals($_SESSION['supp_trans']);
    div_end();
}