fix non numeric error
This commit is contained in:
parent
4624fd2445
commit
1e13dbe270
@ -863,10 +863,10 @@ if (empty($reshook))
|
|||||||
|
|
||||||
if (GETPOST('price_ht') != '')
|
if (GETPOST('price_ht') != '')
|
||||||
{
|
{
|
||||||
$price_base_type = 'HT';
|
|
||||||
$ht = price2num(GETPOST('price_ht'));
|
$ht = price2num(GETPOST('price_ht'));
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (GETPOST('price_ttc') != '')
|
||||||
{
|
{
|
||||||
$reg = array();
|
$reg = array();
|
||||||
$vatratecleaned = $vat_rate;
|
$vatratecleaned = $vat_rate;
|
||||||
@ -878,9 +878,9 @@ if (empty($reshook))
|
|||||||
|
|
||||||
$ttc = price2num(GETPOST('price_ttc'));
|
$ttc = price2num(GETPOST('price_ttc'));
|
||||||
$ht = $ttc / (1 + ($vatratecleaned / 100));
|
$ht = $ttc / (1 + ($vatratecleaned / 100));
|
||||||
$price_base_type = 'HT';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$price_base_type = 'HT';
|
||||||
$pu_ht_devise = GETPOST('multicurrency_subprice');
|
$pu_ht_devise = GETPOST('multicurrency_subprice');
|
||||||
|
|
||||||
// Add buying price
|
// Add buying price
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user