projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Nicht-editierbare CVars bei "als neu speichern/verwenden" richtig setzen.
[kivitendo-erp.git]
/
SL
/
IS.pm
diff --git
a/SL/IS.pm
b/SL/IS.pm
index
7522bd2
..
43303e8
100644
(file)
--- a/
SL/IS.pm
+++ b/
SL/IS.pm
@@
-812,7
+812,7
@@
SQL
}
# link previous items with invoice items
foreach (qw(delivery_order_items orderitems invoice)) {
}
# link previous items with invoice items
foreach (qw(delivery_order_items orderitems invoice)) {
- if ($form->{"converted_from_${_}_id_$i"}) {
+ if (
!$form->{useasnew} &&
$form->{"converted_from_${_}_id_$i"}) {
RecordLinks->create_links('dbh' => $dbh,
'mode' => 'ids',
'from_table' => $_,
RecordLinks->create_links('dbh' => $dbh,
'mode' => 'ids',
'from_table' => $_,
@@
-820,8
+820,8
@@
SQL
'to_table' => 'invoice',
'to_id' => $form->{"invoice_id_$i"},
);
'to_table' => 'invoice',
'to_id' => $form->{"invoice_id_$i"},
);
- delete $form->{"converted_from_${_}_id_$i"};
}
}
+ delete $form->{"converted_from_${_}_id_$i"};
}
}
}
}