Skip to content
Snippets Groups Projects
Commit a66bcf19 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix deadlock feature. Can't reconciliate cash bank account. Sometimes

users need. I introduce a hidden option to fix this quickly.
parent 62a1d1c4
No related branches found
No related tags found
No related merge requests found
...@@ -122,8 +122,10 @@ class Account extends CommonObject ...@@ -122,8 +122,10 @@ class Account extends CommonObject
*/ */
function canBeConciliated() function canBeConciliated()
{ {
global $conf;
if (empty($this->rappro)) return -1; if (empty($this->rappro)) return -1;
if ($this->courant == 2) return -2; if ($this->courant == 2 && empty($conf->global->BANK_CAN_RECONCILIATE_CASHACCOUNT)) return -2;
if ($this->clos) return -3; if ($this->clos) return -3;
return 1; return 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment