Fixing style errors.

This commit is contained in:
stickler-ci 2023-03-03 15:46:13 +00:00
parent f497f4d6e9
commit 21aa69b11a

View File

@ -276,7 +276,7 @@ class Paiement extends CommonObject
}
if (empty($currencyofpayment)) {
$currencyofpayment = isset($this->multicurrency_code[$key]) ? $this->multicurrency_code[$key] : "";
} else if ($currencyofpayment != $this->multicurrency_code[$key]) {
} elseif ($currencyofpayment != $this->multicurrency_code[$key]) {
// If we have invoices with different currencies in the payment, we stop here
$this->error = 'ErrorYouTryToPayInvoicesWithDifferentCurrenciesInSamePayment';
return -1;