Fix warnings
This commit is contained in:
parent
d523cb24e6
commit
4438446c0a
2 changed files with 5 additions and 4 deletions
|
|
@ -661,6 +661,7 @@ class FormTicket
|
|||
// If no socid, set to -1 to avoid full contacts list
|
||||
$selectedCompany = ($this->withfromsocid > 0) ? $this->withfromsocid : -1;
|
||||
print img_picto('', 'contact', 'class="paddingright"');
|
||||
// @phan-suppress-next-line PhanPluginSuspiciousParamOrder
|
||||
print $form->select_contact($selectedCompany, $this->withfromcontactid, 'contactid', 3, '', '', 1, 'maxwidth300 widthcentpercentminusx', true);
|
||||
|
||||
print ' ';
|
||||
|
|
|
|||
|
|
@ -400,7 +400,7 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $uselocalt
|
|||
$keyforforeignMAIN_MAX_DECIMALS_UNIT = 'MAIN_MAX_DECIMALS_UNIT_'.$multicurrency_code;
|
||||
$keyforforeignMAIN_MAX_DECIMALS_TOT = 'MAIN_MAX_DECIMALS_TOT_'.$multicurrency_code;
|
||||
$keyforforeignMAIN_ROUNDING_RULE_TOT = 'MAIN_ROUNDING_RULE_TOT_'.$multicurrency_code;
|
||||
if (!empty($conf->global->$keyforforeignMAIN_ROUNDING_RULE_TOT)) {
|
||||
if (getDolGlobalString($keyforforeignMAIN_ROUNDING_RULE_TOT)) {
|
||||
$conf->global->MAIN_MAX_DECIMALS_UNIT = getDolGlobalString($keyforforeignMAIN_MAX_DECIMALS_UNIT);
|
||||
$conf->global->MAIN_MAX_DECIMALS_TOT = getDolGlobalString($keyforforeignMAIN_MAX_DECIMALS_TOT);
|
||||
$conf->global->MAIN_ROUNDING_RULE_TOT = getDolGlobalString($keyforforeignMAIN_ROUNDING_RULE_TOT);
|
||||
|
|
@ -412,9 +412,9 @@ function calcul_price_total($qty, $pu, $remise_percent_ligne, $txtva, $uselocalt
|
|||
|
||||
if ($multicurrency_code) {
|
||||
// Restore setup of currency accurency
|
||||
$conf->global->MAIN_MAX_DECIMALS_UNIT = $savMAIN_MAX_DECIMALS_UNIT; // @phan-ignore-current-line PhanPossiblyUndeclaredVariable
|
||||
$conf->global->MAIN_MAX_DECIMALS_TOT = $savMAIN_MAX_DECIMALS_TOT; // @phan-ignore-current-line PhanPossiblyUndeclaredVariable
|
||||
$conf->global->MAIN_ROUNDING_RULE_TOT = $savMAIN_ROUNDING_RULE_TOT; // @phan-ignore-current-line PhanPossiblyUndeclaredVariable
|
||||
$conf->global->MAIN_MAX_DECIMALS_UNIT = $savMAIN_MAX_DECIMALS_UNIT; // @phan-suppress-current-line PhanPossiblyUndeclaredVariable
|
||||
$conf->global->MAIN_MAX_DECIMALS_TOT = $savMAIN_MAX_DECIMALS_TOT; // @phan-suppress-current-line PhanPossiblyUndeclaredVariable
|
||||
$conf->global->MAIN_ROUNDING_RULE_TOT = $savMAIN_ROUNDING_RULE_TOT; // @phan-suppress-current-line PhanPossiblyUndeclaredVariable
|
||||
}
|
||||
|
||||
$result[16] = $newresult[0];
|
||||
|
|
|
|||
Loading…
Reference in a new issue