projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replaced the transaction list in attachments with a pager and made the sorting descent.
[fa-stable.git]
/
admin
/
gl_setup.php
diff --git
a/admin/gl_setup.php
b/admin/gl_setup.php
index 1a17092dfeb9cc67d17dc3ce9ae414b9b9f3d705..5f66fcc7b0279b4616acd5b34edb53c508dfb751 100644
(file)
--- a/
admin/gl_setup.php
+++ b/
admin/gl_setup.php
@@
-47,9
+47,9
@@
function can_process()
}
$grn_act = get_company_pref('grn_clearing_act');
}
$grn_act = get_company_pref('grn_clearing_act');
- if (
get_post('grn_clearing_act') != $grn_act
&& db_num_rows(get_grn_items(0, '', true)))
+ if (
(get_post('grn_clearing_act',0) != $grn_act)
&& db_num_rows(get_grn_items(0, '', true)))
{
{
- display_error(_("Before GRN Clearing Account can be changed all GRNs have to be invoiced")
.' '.$n
);
+ display_error(_("Before GRN Clearing Account can be changed all GRNs have to be invoiced"));
$_POST['grn_clearing_act'] = $grn_act;
set_focus('grn_clearing_account');
return false;
$_POST['grn_clearing_act'] = $grn_act;
set_focus('grn_clearing_account');
return false;
@@
-84,7
+84,7
@@
start_outer_table(TABLESTYLE2);
table_section(1);
table_section(1);
-if (get_company_pref('grn_clearing_act') === null) { // available f
or
m 2.3.1, can be not defined on pre-2.4 installations
+if (get_company_pref('grn_clearing_act') === null) { // available f
ro
m 2.3.1, can be not defined on pre-2.4 installations
set_company_pref('grn_clearing_act', 'glsetup.purchase', 'varchar', 15, 0);
refresh_sys_prefs();
}
set_company_pref('grn_clearing_act', 'glsetup.purchase', 'varchar', 15, 0);
refresh_sys_prefs();
}