Fix: convert line delimiters
This commit is contained in:
parent
8f3ead5cfc
commit
8eb73aaa33
@ -68,18 +68,18 @@ if ($action == 'convert')
|
|||||||
$ret=$object->fetch($obj->rowid);
|
$ret=$object->fetch($obj->rowid);
|
||||||
if ($ret)
|
if ($ret)
|
||||||
{
|
{
|
||||||
if ($price_base_type == 'TTC')
|
if ($price_base_type == 'TTC')
|
||||||
{
|
{
|
||||||
$newprice=price2num($object->price_ttc,'2');
|
$newprice=price2num($object->price_ttc,'2');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$newprice=price2num($object->price,'MU');
|
$newprice=price2num($object->price,'MU');
|
||||||
}
|
}
|
||||||
|
|
||||||
$newvat=str_replace('*','',$newvatrate);
|
$newvat=str_replace('*','',$newvatrate);
|
||||||
|
|
||||||
$ret=$object->updatePrice($object->id, $newprice, $price_base_type, $user, $newvat);
|
$ret=$object->updatePrice($object->id, $newprice, $price_base_type, $user, $newvat);
|
||||||
if ($ret < 0) $error++;
|
if ($ret < 0) $error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user