Fixing style errors.
This commit is contained in:
parent
eb52f5daa0
commit
d6954b2826
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user