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);
|
||||
if ($ret)
|
||||
{
|
||||
if ($price_base_type == 'TTC')
|
||||
{
|
||||
$newprice=price2num($object->price_ttc,'2');
|
||||
}
|
||||
else
|
||||
{
|
||||
$newprice=price2num($object->price,'MU');
|
||||
}
|
||||
|
||||
$newvat=str_replace('*','',$newvatrate);
|
||||
|
||||
$ret=$object->updatePrice($object->id, $newprice, $price_base_type, $user, $newvat);
|
||||
if ($price_base_type == 'TTC')
|
||||
{
|
||||
$newprice=price2num($object->price_ttc,'2');
|
||||
}
|
||||
else
|
||||
{
|
||||
$newprice=price2num($object->price,'MU');
|
||||
}
|
||||
|
||||
$newvat=str_replace('*','',$newvatrate);
|
||||
|
||||
$ret=$object->updatePrice($object->id, $newprice, $price_base_type, $user, $newvat);
|
||||
if ($ret < 0) $error++;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user