Skip to content
Snippets Groups Projects
Commit 8bea7033 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 398e9bad
No related branches found
No related tags found
No related merge requests found
......@@ -122,8 +122,10 @@ class Account extends CommonObject
*/
function canBeConciliated()
{
global $conf;
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;
return 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment