Merge branch '12.0_new_payments_on_vat' of github.com:atm-gauthier/dolibarr into NEW/add_real_payments_on_vat_objects
This commit is contained in:
commit
c1cd13aee3
@ -796,7 +796,12 @@ if ($id)
|
||||
}
|
||||
|
||||
// Classify 'paid'
|
||||
if ($object->paye == 0 && round($resteapayer) <= 0 && $user->rights->tax->charges->creer)
|
||||
if ($object->paye == 0
|
||||
&& (
|
||||
(round($resteapayer) <= 0 && $object->amount > 0)
|
||||
|| (round($resteapayer) >= 0 && $object->amount < 0)
|
||||
)
|
||||
&& $user->rights->tax->charges->creer)
|
||||
{
|
||||
print "<div class=\"inline-block divButAction\"><a class=\"butAction\" href=\"".DOL_URL_ROOT."/compta/tva/card.php?id=$object->id&action=paid\">".$langs->trans("ClassifyPaid")."</a></div>";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user