X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Foe.pl;h=96764ebdff433d8f8af574fdcdb23225cf605447;hb=6f28dbb7499775d7f33834c08846a7909c665c22;hp=b9edf4c96f84e4a50e1bce086939e1305208b33d;hpb=19132371fe1237caafc1a2ef589a881de2780d99;p=kivitendo-erp.git diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index b9edf4c96..96764ebdf 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1654,7 +1654,7 @@ sub invoice { $::dispatcher->end_request; } - _oe_remove_delivered_or_billed_rows(id => $form->{id}, type => 'billed'); + _oe_remove_delivered_or_billed_rows(id => $form->{id}, type => 'billed') if $form->{new_invoice_type} ne 'final_invoice'; $form->{cp_id} *= 1; @@ -1699,8 +1699,8 @@ sub invoice { if ( $form->{type} eq 'sales_order' || $form->{type} eq 'sales_quotation') { - $form->{title} = ($form->{new_invoice_type} eq 'invoice_for_advance_payment') - ? $locale->text('Add Invoice for Advance Payment') + $form->{title} = ($form->{new_invoice_type} eq 'invoice_for_advance_payment') ? $locale->text('Add Invoice for Advance Payment') + : ($form->{new_invoice_type} eq 'final_invoice') ? $locale->text('Add Final Invoice') : $locale->text('Add Sales Invoice'); $form->{script} = 'is.pl'; $script = "is";