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:
Jon Bendtsen
2024-04-01 10:17:58 +02:00
parent 027cf37940
commit 04b3b4d4d2

View File

@@ -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