Merge pull request #12772 from hregis/10.0_mc

FIX wrong var name and avoid warning
This commit is contained in:
Laurent Destailleur 2019-12-30 21:48:56 +01:00 committed by GitHub
commit e2c7ee7d09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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++;

View File

@ -1859,6 +1859,9 @@ class Product extends CommonObject
if (empty($newnpr)) {
$newnpr=0;
}
if (empty($newminprice)) {
$newminprice=0;
}
// Check parameters
if ($newvat == '') {