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