Merge pull request #19819 from OPEN-DSI/new-invoice-propagate-extrafields-on-credit-note

NEW pre-filled extra fields with slected credit note
This commit is contained in:
Laurent Destailleur 2022-01-23 20:58:45 +01:00 committed by GitHub
commit 0a996f44be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3418,6 +3418,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;