This commit is contained in:
parent
06c092acc0
commit
fadc50b152
@ -113,7 +113,7 @@ class PaymentExpenseReport extends CommonObject
|
|||||||
$now = dol_now();
|
$now = dol_now();
|
||||||
|
|
||||||
// Validate parameters
|
// Validate parameters
|
||||||
if (!$this->datepaid) {
|
if (!$this->datep) {
|
||||||
$this->error = 'ErrorBadValueForParameterCreatePaymentExpenseReport';
|
$this->error = 'ErrorBadValueForParameterCreatePaymentExpenseReport';
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -531,7 +531,7 @@ class PaymentExpenseReport 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->fk_typepayment, // Payment mode id or code ("CHQ or VIR for example")
|
$this->fk_typepayment, // Payment mode id or code ("CHQ or VIR for example")
|
||||||
$label,
|
$label,
|
||||||
-$amount,
|
-$amount,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user