FIX Parsing of amount to pay vat

This commit is contained in:
Laurent Destailleur 2016-03-18 19:42:56 +01:00
parent bc377258e1
commit b4e775dd35

View File

@ -71,7 +71,7 @@ if ($action == 'add' && $_POST["cancel"] <> $langs->trans("Cancel"))
$tva->datev=$datev; $tva->datev=$datev;
$tva->datep=$datep; $tva->datep=$datep;
$amount = GETPOST("amount"); $amount = price2num(GETPOST("amount"));
if ($refund == 1) { if ($refund == 1) {
$amount= -$amount; $amount= -$amount;
} }