Revision 30aa6174
Von Bernd Bleßmann vor fast 10 Jahren hinzugefügt
SL/OE.pm | ||
---|---|---|
381 | 381 |
$form->{$number_field} ||= $trans_number->create_unique; |
382 | 382 |
|
383 | 383 |
if ($form->{id}) { |
384 |
$query = qq|DELETE FROM custom_variables |
|
385 |
WHERE (config_id IN (SELECT id FROM custom_variable_configs WHERE module = 'IC')) |
|
386 |
AND (sub_module = 'orderitems') |
|
387 |
AND (trans_id IN (SELECT id FROM orderitems WHERE trans_id = ?))|; |
|
388 |
do_query($form, $dbh, $query, $form->{id}); |
|
389 |
|
|
390 | 384 |
$query = qq|DELETE FROM shipto | . |
391 | 385 |
qq|WHERE trans_id = ? AND module = 'OE'|; |
392 | 386 |
do_query($form, $dbh, $query, $form->{id}); |
Auch abrufbar als: Unified diff
Angebot/Auftrag: Unnötiges Löschen der CVars entfernt. Wird per DB-Trigger erledigt.