will allow updating 1 invoices single Complementary Attribute without specifying complementary attributes that we don't want to change. Similar to # 29115 but just for invoices
This commit is contained in:
parent
027cf37940
commit
04b3b4d4d2
1 changed files with 6 additions and 1 deletions
|
|
@ -671,7 +671,12 @@ class Invoices extends DolibarrApi
|
|||
$this->invoice->context['caller'] = $request_data['caller'];
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($field == 'array_options' && is_array($value)) {
|
||||
foreach ($value as $index => $val) {
|
||||
$this->invoice->array_options[$index] = $val;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
$this->invoice->$field = $value;
|
||||
|
||||
// If cond reglement => update date lim reglement
|
||||
|
|
|
|||
Loading…
Reference in a new issue