Merge pull request #29169 from JonBendtsen/invoice_update_single_array_option_element

allow updating invoice single Complementary Attribute
This commit is contained in:
Laurent Destailleur 2024-04-02 11:53:16 +02:00 committed by GitHub
commit 8eaf0e86ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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