Skip to content

Commit

Permalink
round to price2num
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Algoud committed May 22, 2015
1 parent 9184b08 commit 81a919e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/sociales/charges.php
Expand Up @@ -422,7 +422,7 @@
}

// Emettre paiement
if ($object->paye == 0 && ((price2num($object->amount) < 0 && round($resteapayer) < 0) || (price2num($object->amount) > 0 && round($resteapayer,2) > 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>";
}
Expand Down

0 comments on commit 81a919e

Please sign in to comment.