projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented automatic price calculation of items from std. cost.
[fa-stable.git]
/
purchasing
/
supplier_credit.php
diff --git
a/purchasing/supplier_credit.php
b/purchasing/supplier_credit.php
index 625b9e4d9192c64003385e31ac23b7deb018d7f0..513135fc31bd8928b1ccd1a15f5841a1dba08407 100644
(file)
--- 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,
if ($input_error == false)
{
$_SESSION['supp_trans']->add_gl_codes_to_trans($_POST['gl_code'], $gl_act_name,
@@
-348,7
+354,7
@@
if (get_post('AddGLCodeToTrans'))
$Ajax->activate('inv_tot');
br();
$Ajax->activate('inv_tot');
br();
-submit_center('PostCreditNote', _("Enter Credit Note"), true, '',
true
);
+submit_center('PostCreditNote', _("Enter Credit Note"), true, '',
'default'
);
br();
end_form();
br();
end_form();