X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_credit.php;h=319bab0bb1acf583fec8d99a4198668a47bc718e;hb=c31829537f02787dd94654820dd74168c054b8c4;hp=25c24e3b0afdf31771954d07b0ede86581ad817f;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index 25c24e3b..319bab0b 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -36,7 +36,7 @@ check_db_has_suppliers(_("There are no suppliers defined in the system.")); if (isset($_GET['AddedID'])) { $invoice_no = $_GET['AddedID']; - $trans_type = 21; + $trans_type = ST_SUPPCREDIT; echo "
"; @@ -153,7 +153,7 @@ function check_data() return false; } - if (!is_new_reference($_SESSION['supp_trans']->reference, 21)) + if (!is_new_reference($_SESSION['supp_trans']->reference, ST_SUPPCREDIT)) { display_error(_("The entered reference is already in use.")); set_focus('reference');