X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_invoice.php;h=080e8fc36f3d52fadf8e22becda73dc00b3db55c;hb=da7df35c61205d0b1af47d286be591b8a3194b0c;hp=e527a980b8fc39011d5012dcb17eaf2593cf4a18;hpb=4f0d9fa89c0a7323fe8c3d58f05cebadf1940ab5;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index e527a980..080e8fc3 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -27,10 +27,6 @@ if (user_use_date_picker()) $js .= get_js_date_picker(); //---------------------------------------------------------------------------------------- -check_db_has_suppliers(_("There are no suppliers defined in the system.")); - -//-------------------------------------------------------------------------------------------------- - if (isset($_GET['New'])) { if (isset( $_SESSION['supp_trans'])) @@ -54,6 +50,8 @@ page($_SESSION['page_title'], false, false, "", $js); if (isset($_GET['ModifyInvoice'])) check_is_editable(ST_SUPPINVOICE, $_GET['ModifyInvoice']); +check_db_has_suppliers(_("There are no suppliers defined in the system.")); + //--------------------------------------------------------------------------------------------------------------- if (isset($_GET['AddedID']))