X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/aa36021ace7b4075af6d2d815e0e208b7227d9c4..048a4ee5e01aaa8cfb416abe919923ffe389ee00:/bin/mozilla/oe.pl diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index f7cf9331f..91c5a9838 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1934,6 +1934,19 @@ sub delivery_order { $main::lxdebug->leave_sub(); } +sub oe_delivery_order_from_order { + + return if !$::form->{id}; + + my $order = SL::DB::Order->new(id => $::form->{id})->load; + $order->flatten_to_form($::form, format_amounts => 1); + + # fake last empty row + $::form->{rowcount}++; + + delivery_order(); +} + sub e_mail { $main::lxdebug->enter_sub();