X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FOE.pm;h=28e3975c3c1163991f8e79a2918815ea4d7ec81f;hb=89c9ff022d3f13e27ba6bda085df15707fcfb0eb;hp=8adaf6af24677961895503d60bcd5500d4b86c81;hpb=1072cd08c6f5b1905a34dcb3eeab3ddec98d6905;p=kivitendo-erp.git diff --git a/SL/OE.pm b/SL/OE.pm index 8adaf6af2..28e3975c3 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -559,11 +559,6 @@ sub save { } } - $self->save_periodic_invoices_config(dbh => $dbh, - oe_id => $form->{id}, - config_yaml => $form->{periodic_invoices_config}) - if ($form->{type} eq 'sales_order'); - $form->{saved_xyznumber} = $form->{$form->{type} =~ /_quotation$/ ? "quonumber" : "ordnumber"}; @@ -571,6 +566,11 @@ sub save { my $rc = $dbh->commit; + $self->save_periodic_invoices_config(dbh => $dbh, + oe_id => $form->{id}, + config_yaml => $form->{periodic_invoices_config}) + if ($form->{type} eq 'sales_order'); + $main::lxdebug->leave_sub(); return $rc;