fix non numeric error

This commit is contained in:
Tobias Sekan 2020-03-26 09:29:35 +01:00 committed by GitHub
parent 4624fd2445
commit 1e13dbe270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -863,10 +863,10 @@ if (empty($reshook))
if (GETPOST('price_ht') != '')
{
$price_base_type = 'HT';
$ht = price2num(GETPOST('price_ht'));
}
else
if (GETPOST('price_ttc') != '')
{
$reg = array();
$vatratecleaned = $vat_rate;
@ -878,9 +878,9 @@ if (empty($reshook))
$ttc = price2num(GETPOST('price_ttc'));
$ht = $ttc / (1 + ($vatratecleaned / 100));
$price_base_type = 'HT';
}
$price_base_type = 'HT';
$pu_ht_devise = GETPOST('multicurrency_subprice');
// Add buying price