X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_invoice.php;h=d3cef151f0c9717f509b2785006930d5cec14b40;hb=4888cf51abf175a0ed4645e6adb2a326ce7e0e5f;hp=6b21c935a1584b30f5cee9b2b325782055a0fd90;hpb=f192e88b16ff3cfa910fd5b1dc59e9c15219b0ac;p=fa-stable.git diff --git a/purchasing/supplier_invoice.php b/purchasing/supplier_invoice.php index 6b21c935..d3cef151 100644 --- a/purchasing/supplier_invoice.php +++ b/purchasing/supplier_invoice.php @@ -170,6 +170,13 @@ function check_data() { global $Refs; + if (!get_post('supplier_id')) + { + display_error(_("There is no supplier selected.")); + set_focus('supplier_id'); + return false; + } + if (!$_SESSION['supp_trans']->is_valid_trans_to_post()) { display_error(_("The invoice cannot be processed because the there are no items or values on the invoice. Invoices are expected to have a charge."));