Fixing style errors.

This commit is contained in:
stickler-ci 2022-04-11 13:58:59 +00:00
parent 67e7c91c3e
commit ddb50264ae

View File

@ -194,15 +194,15 @@ if (empty($reshook)) {
setEventMessages($db->lasterror(), null, 'errors'); setEventMessages($db->lasterror(), null, 'errors');
break; break;
} }
if(!empty($conf->global->MAIN_PRODUCT_PERENTITY_SHARED)) { if (!empty($conf->global->MAIN_PRODUCT_PERENTITY_SHARED)) {
$sqlpmp = 'UPDATE '.MAIN_DB_PREFIX.'product_perentity SET pmp = '.((float) $line->pmp_real).' WHERE fk_product = '.((int) $line->fk_product).' AND entity='.$conf->entity; $sqlpmp = 'UPDATE '.MAIN_DB_PREFIX.'product_perentity SET pmp = '.((float) $line->pmp_real).' WHERE fk_product = '.((int) $line->fk_product).' AND entity='.$conf->entity;
$resqlpmp = $db->query($sqlpmp); $resqlpmp = $db->query($sqlpmp);
if (! $resqlpmp) { if (! $resqlpmp) {
$error++; $error++;
setEventMessages($db->lasterror(), null, 'errors'); setEventMessages($db->lasterror(), null, 'errors');
break; break;
} }
} }
} }
// Update line with id of stock movement (and the start quantity if it has changed this last recording) // Update line with id of stock movement (and the start quantity if it has changed this last recording)