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

users need. I introduce a hidden option to fix this quickly.
This commit is contained in:
Laurent Destailleur 2015-09-04 19:42:07 +02:00
parent 62a1d1c4a2
commit a66bcf1965

View File

@ -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;
} }