This commit is contained in:
parent
06c092acc0
commit
0e083bab20
@ -130,7 +130,7 @@ class PaymentDonation extends CommonObject
|
|||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|
||||||
// Validate parameters
|
// Validate parameters
|
||||||
if (!$this->datepaid) {
|
if (!$this->datep) {
|
||||||
$this->error = 'ErrorBadValueForParameterCreatePaymentDonation';
|
$this->error = 'ErrorBadValueForParameterCreatePaymentDonation';
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -587,7 +587,7 @@ class PaymentDonation extends CommonObject
|
|||||||
|
|
||||||
// Insert payment into llx_bank
|
// Insert payment into llx_bank
|
||||||
$bank_line_id = $acc->addline(
|
$bank_line_id = $acc->addline(
|
||||||
$this->datepaid,
|
$this->datep,
|
||||||
$this->paymenttype, // Payment mode id or code ("CHQ or VIR for example")
|
$this->paymenttype, // Payment mode id or code ("CHQ or VIR for example")
|
||||||
$label,
|
$label,
|
||||||
$amount,
|
$amount,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user