Merge pull request #12582 from atm-maxime/fix_remise_split

Fix #11849 : missing price2num in discount split
This commit is contained in:
Laurent Destailleur 2019-12-01 10:54:30 +01:00 committed by GitHub
commit aa5dff9aae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -61,8 +61,10 @@ if ($action == 'confirm_split' && GETPOST("confirm") == 'yes')
//if ($user->rights->societe->creer)
//if ($user->rights->facture->creer)
$amount_ttc_1=GETPOST('amount_ttc_1');
$amount_ttc_2=GETPOST('amount_ttc_2');
$amount_ttc_1 = GETPOST('amount_ttc_1');
$amount_ttc_1 = price2num($amount_ttc_1);
$amount_ttc_2 = GETPOST('amount_ttc_2');
$amount_ttc_2 = price2num($amount_ttc_2);
$error=0;
$remid=GETPOST("remid")?GETPOST("remid"):0;