X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_invoice.php;h=534e55b3534813b3461c0c4817ba2b50352b1b08;hb=032543e8bebfaf5ed19f8a8bad793893af497862;hp=b78505180184a76b7ccdae60e3a6dd62299e5e64;hpb=bf00f0e16df5974ecba17b59be8bc660bdf6b8a8;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index b7850518..534e55b3 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security=5; $path_to_root=".."; @@ -368,37 +377,26 @@ if ($_SESSION["wa_current_user"]->access == 2) start_form(false, true); -start_table("$table_style2 width=98%", 8); -echo ""; // outer table - -echo "
"; - 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 +406,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();