X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/a198dfae6de24a4932609b2fb72c23879b7df1bf..19132371fe1237caafc1a2ef589a881de2780d99:/bin/mozilla/oe.pl diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index a3425ecde..b9edf4c96 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -1699,7 +1699,9 @@ sub invoice { if ( $form->{type} eq 'sales_order' || $form->{type} eq 'sales_quotation') { - $form->{title} = $locale->text('Add Sales Invoice'); + $form->{title} = ($form->{new_invoice_type} eq 'invoice_for_advance_payment') + ? $locale->text('Add Invoice for Advance Payment') + : $locale->text('Add Sales Invoice'); $form->{script} = 'is.pl'; $script = "is"; $buysell = 'buy'; @@ -1708,7 +1710,7 @@ sub invoice { # bo creates the id, reset it map { delete $form->{$_} } qw(id subject message cc bcc printed emailed queued); $form->{ $form->{vc} } =~ s/--.*//g; - $form->{type} = "invoice"; + $form->{type} = $form->{new_invoice_type} || "invoice"; # locale messages $main::locale = Locale->new("$myconfig{countrycode}", "$script");