X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_invoice.php;h=52ce2f7b03e9c557adf0c48adb587a13c87a2c8b;hb=8430384235d77fb7f8d8ca894e5efedd04d6bc0b;hp=b78505180184a76b7ccdae60e3a6dd62299e5e64;hpb=bf00f0e16df5974ecba17b59be8bc660bdf6b8a8;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index b7850518..52ce2f7b 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security=5; $path_to_root=".."; @@ -325,6 +334,7 @@ if ($id4 != -1) $Ajax->activate('inv_tot'); } +$id2 = -1; if ($_SESSION["wa_current_user"]->access == 2) { $id3 = find_submit('void_item_id'); @@ -366,39 +376,36 @@ if ($_SESSION["wa_current_user"]->access == 2) } } -start_form(false, true); - -start_table("$table_style2 width=98%", 8); -echo ""; // outer table +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'); + $Ajax->activate('inv_tot'); +} -echo "
"; +start_form(false, true); invoice_header($_SESSION['supp_trans']); + if ($_POST['supplier_id']=='') display_error('No supplier found for entered search text'); else { - echo ""; // outer table - - echo "
"; + start_outer_table("$table_style2 width=98%", 5); display_grn_items($_SESSION['supp_trans'], 1); - //display_grn_items_for_selection(); + display_gl_items($_SESSION['supp_trans'], 1); - //display_gl_controls(); - //echo ""; // outer table - echo "
"; div_start('inv_tot'); invoice_totals($_SESSION['supp_trans']); div_end(); -} -echo ""; -end_table(); // outer table + end_outer_table(0, false); +} //----------------------------------------------------------------------------------------- - if ($id != -1 || $id2 != -1) { $Ajax->activate('grn_items'); @@ -408,9 +415,9 @@ if ($id != -1 || $id2 != -1) if (get_post('AddGLCodeToTrans')) $Ajax->activate('inv_tot'); -echo "
"; +br(); submit_center('PostInvoice', _("Enter Invoice"), true, '', true); -echo "
"; +br(); end_form();