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:
commit
0a996f44be
@ -3418,6 +3418,10 @@ if ($action == 'create') {
|
|||||||
$optionsav .= '<option value="'.$key.'"';
|
$optionsav .= '<option value="'.$key.'"';
|
||||||
if ($key == GETPOST('fac_avoir')) {
|
if ($key == GETPOST('fac_avoir')) {
|
||||||
$optionsav .= ' selected';
|
$optionsav .= ' selected';
|
||||||
|
|
||||||
|
// pre-filled extra fields with selected credit note
|
||||||
|
$newinvoice_static->fetch_optionals($key);
|
||||||
|
$object->array_options = $newinvoice_static->array_options;
|
||||||
}
|
}
|
||||||
$optionsav .= '>';
|
$optionsav .= '>';
|
||||||
$optionsav .= $newinvoice_static->ref;
|
$optionsav .= $newinvoice_static->ref;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user