X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_invoice.php;h=07b41b282fc1f991eb7c1aae436c6bb7cc12e5ab;hb=8a53629bf51fc682489f6692ff4d6558a976c22c;hp=915ec27c1b3611157927ea6b1c6f5f8c32e5da32;hpb=6183e9450dcd7e4c747889c10903f6ff1b0add33;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index 915ec27c..07b41b28 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -156,25 +156,27 @@ 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 ""; // outer table + echo "
"; -echo "
"; - -display_grn_items($_SESSION['supp_trans']); + display_grn_items($_SESSION['supp_trans']); -display_gl_items($_SESSION['supp_trans']); - -//echo ""; // outer table -echo "
"; -invoice_totals($_SESSION['supp_trans']); + display_gl_items($_SESSION['supp_trans']); + //echo ""; // outer table + echo "
"; + invoice_totals($_SESSION['supp_trans']); +} echo ""; end_table(); // outer table echo "
"; -submit_center('PostInvoice', _("Enter Invoice")); +submit_center('PostInvoice', _("Enter Invoice"), true, '', true); echo "
"; end_form();