diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 394b4887a6f..9eb31ebd608 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -140,10 +140,6 @@ class Commande extends CommonOrder */ var $lines = array(); - // Pour board - var $nbtodo; - var $nbtodolate; - // Multicurrency var $fk_multicurrency; var $multicurrency_code; diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index 880ff92d3d5..589c266d525 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -397,15 +397,11 @@ if ($id > 0 || ! empty($ref)) } } - if ($object->type != 2 && $object->rappro) - { + if ($object->canBeConciliated() > 0) { // If not cash account and can be reconciliate - if ($user->rights->banque->consolidate) - { - print ''.$langs->trans("Conciliate").''; - } - else - { + if ($user->rights->banque->consolidate) { + print ''.$langs->trans("Conciliate").''; + } else { print ''.$langs->trans("Conciliate").''; } } @@ -529,8 +525,11 @@ if ($id > 0 || ! empty($ref)) print '