Merge pull request #7460 from dvasseur/develop
FIX: REST API, date field not used for invoices creation
This commit is contained in:
commit
ddefdd12fb
@ -192,7 +192,7 @@ class Invoices extends DolibarrApi
|
|||||||
foreach($request_data as $field => $value) {
|
foreach($request_data as $field => $value) {
|
||||||
$this->invoice->$field = $value;
|
$this->invoice->$field = $value;
|
||||||
}
|
}
|
||||||
if(! array_keys($request_data,'date')) {
|
if(! array_key_exists('date', $request_data)) {
|
||||||
$this->invoice->date = dol_now();
|
$this->invoice->date = dol_now();
|
||||||
}
|
}
|
||||||
/* We keep lines as an array
|
/* We keep lines as an array
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user