Skip to content
Snippets Groups Projects
Commit 4de46892 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #2872 from atm-alexis/fix_button_create_payment_on_social_tax_less_than_1euro

FIX button create payment hide if tax amount is less than 1
parents 9c9afc0a 81a919e8
No related branches found
No related tags found
No related merge requests found
......@@ -422,7 +422,7 @@ if ($id > 0)
}
// Emettre paiement
if ($object->paye == 0 && ((price2num($object->amount) < 0 && round($resteapayer) < 0) || (price2num($object->amount) > 0 && round($resteapayer) > 0)) && $user->rights->tax->charges->creer)
if ($object->paye == 0 && ((price2num($object->amount) < 0 && price2num($resteapayer, 'MT') < 0) || (price2num($object->amount) > 0 && price2num($resteapayer, 'MT') > 0)) && $user->rights->tax->charges->creer)
{
print "<a class=\"butAction\" href=\"".DOL_URL_ROOT."/compta/paiement_charge.php?id=$object->id&amp;action=create\">".$langs->trans("DoPayment")."</a>";
}
......
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