Fixing style errors.

This commit is contained in:
stickler-ci 2021-04-22 14:56:15 +00:00
parent eb52f5daa0
commit d6954b2826
2 changed files with 1 additions and 5 deletions

View File

@ -1109,8 +1109,7 @@ class Don extends CommonObject
{
dol_syslog(__METHOD__, LOG_DEBUG);
if (empty($this->id))
{
if (empty($this->id)) {
$this->error = 'Missing object id';
$this->errors[] = $this->error;
dol_syslog(__METHOD__.' : '.$this->error, LOG_ERR);
@ -1126,6 +1125,5 @@ class Don extends CommonObject
$sum_amount = (float) $this->db->fetch_object($resql)->sum_amount;
return (float) $this->amount - $sum_amount;
}
}
}

View File

@ -777,7 +777,6 @@ if ($ispaymentok) {
$postactionmessages[] = 'Invoice paid '.$tmptag['INV'].' was not found';
$ispostactionok = -1;
}
} elseif (array_key_exists('DON', $tmptag) && $tmptag['DON'] > 0) {
include_once DOL_DOCUMENT_ROOT.'/don/class/don.class.php';
$don = new Don($db);
@ -815,7 +814,6 @@ if ($ispaymentok) {
if ($currencyCodeType == $conf->currency) {
$paiement->amounts = array($object->id => $FinalPaymentAmt); // Array with all payments dispatching with donation
} else {
// PaymentDonation does not support multi currency
$postactionmessages[] = 'Payment donation can\'t be payed with diffent currency than '.$conf->currency;