NEW pre-filled extra fields with slected credit note

This commit is contained in:
lvessiller 2022-01-12 12:22:43 +01:00
parent 08e313942d
commit 2d9c46ed3a

View File

@ -3415,6 +3415,10 @@ if ($action == 'create') {
$optionsav .= '<option value="'.$key.'"';
if ($key == GETPOST('fac_avoir')) {
$optionsav .= ' selected';
// pre-filled extra fields with selected credit note
$newinvoice_static->fetch_optionals($key);
$object->array_options = $newinvoice_static->array_options;
}
$optionsav .= '>';
$optionsav .= $newinvoice_static->ref;