Revision b8125c17
Von Bernd Bleßmann vor fast 10 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
812 | 812 |
} |
813 | 813 |
# link previous items with invoice items |
814 | 814 |
foreach (qw(delivery_order_items orderitems invoice)) { |
815 |
if ($form->{"converted_from_${_}_id_$i"}) { |
|
815 |
if (!$form->{useasnew} && $form->{"converted_from_${_}_id_$i"}) {
|
|
816 | 816 |
RecordLinks->create_links('dbh' => $dbh, |
817 | 817 |
'mode' => 'ids', |
818 | 818 |
'from_table' => $_, |
... | ... | |
820 | 820 |
'to_table' => 'invoice', |
821 | 821 |
'to_id' => $form->{"invoice_id_$i"}, |
822 | 822 |
); |
823 |
delete $form->{"converted_from_${_}_id_$i"}; |
|
824 | 823 |
} |
824 |
delete $form->{"converted_from_${_}_id_$i"}; |
|
825 | 825 |
} |
826 | 826 |
} |
827 | 827 |
|
Auch abrufbar als: Unified diff
Nicht-editierbare CVars bei "als neu speichern/verwenden" richtig setzen.