X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_credit.php;h=5729fcf53cd1bae720106b0304803b10b9eb9a7c;hb=3e2a432dd72688dbac39a07716201b2b00c16c8b;hp=c16211be0771282ba03f4710d367cc7c96739e19;hpb=6183e9450dcd7e4c747889c10903f6ff1b0add33;p=fa-stable.git
diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php
index c16211be..5729fcf5 100644
--- a/purchasing/supplier_credit.php
+++ b/purchasing/supplier_credit.php
@@ -153,22 +153,24 @@ 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
+ $total_grn_value = display_grn_items($_SESSION['supp_trans']);
-$total_grn_value = display_grn_items($_SESSION['supp_trans']);
+ $total_gl_value = display_gl_items($_SESSION['supp_trans']);
-$total_gl_value = display_gl_items($_SESSION['supp_trans']);
-
-echo " |
"; // outer table
-
-invoice_totals($_SESSION['supp_trans']);
+ echo " |
"; // outer table
+ invoice_totals($_SESSION['supp_trans']);
+}
echo " |
";
end_table(1); // outer table
-submit_center('PostCreditNote', _("Enter Credit Note"));
+submit_center('PostCreditNote', _("Enter Credit Note"), true, '', true);
echo "
";
end_form();