X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=blobdiff_plain;f=purchasing%2Fsupplier_credit.php;h=4bfc235e52f4cd581b4e9be4de6bf2884929a570;hp=aff136119c58a4f5d527236fe1b7bdc37179ded0;hb=4888cf51abf175a0ed4645e6adb2a326ce7e0e5f;hpb=48589f9ce6c51bb25e2fa8ed83c57d9dfa485e44 diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index aff13611..4bfc235e 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -165,6 +165,13 @@ function check_data() { global $SysPrefs; + 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 credit note cannot be processed because the there are no items or values on the invoice. Credit notes are expected to have a charge."));