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 398e9bad94
commit 8bea703363

View File

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