X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fsupplier_credit.php;h=bc60f4de4a92e4b089bace07d72bc3b61d52d478;hb=93a920d7c98e55be77d2ea84e6c457f681b7a4e4;hp=fc16875ce1b1214053447a7cdc30d8ad56c7ac94;hpb=47e386676320471986d462929c707552f0ab7362;p=fa-stable.git diff --git a/purchasing/supplier_credit.php b/purchasing/supplier_credit.php index fc16875c..bc60f4de 100644 --- a/purchasing/supplier_credit.php +++ b/purchasing/supplier_credit.php @@ -130,6 +130,12 @@ if (isset($_POST['AddGLCodeToTrans'])){ } } + if (!is_tax_gl_unique(get_post('gl_code'))) { + display_error(_("Cannot post to GL account used by more than one tax type.")); + set_focus('gl_code'); + $input_error = true; + } + if ($input_error == false) { $_SESSION['supp_trans']->add_gl_codes_to_trans($_POST['gl_code'], $gl_act_name,