Revision 2f9a5220
Von Jan Büren vor fast 10 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
579 | 579 |
name_postfix => "_$i", |
580 | 580 |
dbh => $dbh); |
581 | 581 |
# link previous items with orderitems |
582 |
foreach (qw(quotation_orderitems orderitems invoice)) {
|
|
582 |
foreach (qw(orderitems invoice)) { |
|
583 | 583 |
if ($form->{"converted_from_${_}_id_$i"}) { |
584 |
my $table = $_; |
|
585 |
$table = 'orderitems' if $table eq 'quotation_orderitems'; |
|
586 | 584 |
RecordLinks->create_links('dbh' => $dbh, |
587 | 585 |
'mode' => 'ids', |
588 |
'from_table' => $table,
|
|
586 |
'from_table' => $_,
|
|
589 | 587 |
'from_ids' => $form->{"converted_from_${_}_id_$i"}, |
590 | 588 |
'to_table' => 'orderitems', |
591 | 589 |
'to_id' => $orderitems_id, |
Auch abrufbar als: Unified diff
Aufräumarbeiten verknüpfte Positionen