Correct lint errors
This commit is contained in:
parent
966fedc501
commit
fb2759eaf6
@ -2974,13 +2974,13 @@ abstract class CommonObject
|
|||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
global $conf, $hookmanager, $action;
|
global $conf, $hookmanager, $action;
|
||||||
|
|
||||||
$parameters = array('exclspec' => $exclspec, 'roundingadjust' => $roundingadjust, 'nodatabaseupdate' => $nodatabaseupdate, 'seller' => $seller);
|
$parameters = array('exclspec' => $exclspec, 'roundingadjust' => $roundingadjust, 'nodatabaseupdate' => $nodatabaseupdate, 'seller' => $seller);
|
||||||
$reshook = $hookmanager->executeHooks('updateTotalPrice', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
$reshook = $hookmanager->executeHooks('updateTotalPrice', $parameters, $this, $action); // Note that $action and $object may have been modified by some hooks
|
||||||
if ($reshook > 0) {
|
if ($reshook > 0) {
|
||||||
return 1; // replacement code
|
return 1; // replacement code
|
||||||
} elseif ($reshook < 0) {
|
} elseif ($reshook < 0) {
|
||||||
return -1; // failure
|
return -1; // failure
|
||||||
} // reshook = 0 => execute normal code
|
} // reshook = 0 => execute normal code
|
||||||
|
|
||||||
// Some external module want no update price after a trigger because they have another method to calculate the total (ex: with an extrafield)
|
// Some external module want no update price after a trigger because they have another method to calculate the total (ex: with an extrafield)
|
||||||
$MODULE = "";
|
$MODULE = "";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user