Merge pull request #12772 from hregis/10.0_mc
FIX wrong var name and avoid warning
This commit is contained in:
commit
e2c7ee7d09
@ -135,7 +135,7 @@ if ($action == 'convert')
|
||||
$newlevel=$level;
|
||||
|
||||
//print "$objectstatic->id $newprice, $price_base_type, $newvat, $newminprice, $newlevel, $newnpr<br>\n";
|
||||
$retm=$objectstatic->updatePrice($newprice, $price_base_type, $user, $newvatratclean, $newminprice, $newlevel, $newnpr, 0, 0, $localtaxes_type, $newdefaultvatcode);
|
||||
$retm=$objectstatic->updatePrice($newprice, $price_base_type, $user, $newvatrateclean, $newminprice, $newlevel, $newnpr, 0, 0, $localtaxes_type, $newdefaultvatcode);
|
||||
if ($retm < 0)
|
||||
{
|
||||
$error++;
|
||||
|
||||
@ -1859,6 +1859,9 @@ class Product extends CommonObject
|
||||
if (empty($newnpr)) {
|
||||
$newnpr=0;
|
||||
}
|
||||
if (empty($newminprice)) {
|
||||
$newminprice=0;
|
||||
}
|
||||
|
||||
// Check parameters
|
||||
if ($newvat == '') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user