- mehrfach speichern (converted* wird nicht gelöscht) i.O.
name_prefix => 'ic_',
name_postfix => "_$i",
dbh => $dbh);
- # link quotation items with order items
+ # link quotation items with order items and delete entry (just one link)
if ($form->{"converted_from_quotation_orderitems_id_$i"}) {
RecordLinks->create_links('dbh' => $dbh,
'mode' => 'ids',
'to_table' => 'orderitems',
'to_id' => $orderitems_id,
);
+ delete $form->{"converted_from_quotation_orderitems_id_$i"};
}
}
}