forked from Wavyzz/dolibarr
FIX Parsing of amount to pay vat
This commit is contained in:
@@ -71,7 +71,7 @@ if ($action == 'add' && $_POST["cancel"] <> $langs->trans("Cancel"))
|
||||
$tva->datev=$datev;
|
||||
$tva->datep=$datep;
|
||||
|
||||
$amount = GETPOST("amount");
|
||||
$amount = price2num(GETPOST("amount"));
|
||||
if ($refund == 1) {
|
||||
$amount= -$amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user