From 726a9fae9fe3bd0f3d66c351f6c91146a685bcd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 10 Nov 2021 16:47:00 +0100 Subject: [PATCH] =?utf8?q?Anzahlungs-Rg.:=20Drucken=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 6 ++++-- SL/Helper/PrintOptions.pm | 3 +++ bin/mozilla/io.pl | 7 ++++++- bin/mozilla/is.pl | 1 + locale/de/all | 2 ++ locale/en/all | 2 ++ 6 files changed, 18 insertions(+), 3 deletions(-) diff --git a/SL/Form.pm b/SL/Form.pm index 9c05c3353..6a7f285f9 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1089,6 +1089,7 @@ sub get_formname_translation { credit_note => $main::locale->text('Credit Note'), invoice => $main::locale->text('Invoice'), invoice_copy => $main::locale->text('Invoice Copy'), + invoice_for_advance_payment => $main::locale->text('Invoice for Advance Payment'), pick_list => $main::locale->text('Pick List'), proforma => $main::locale->text('Proforma Invoice'), purchase_order => $main::locale->text('Purchase Order'), @@ -1131,7 +1132,7 @@ sub get_number_prefix_for_type { my ($self) = @_; my $prefix = - (first { $self->{type} eq $_ } qw(invoice credit_note)) ? 'inv' + (first { $self->{type} eq $_ } qw(invoice invoice_for_advance_payment credit_note)) ? 'inv' : ($self->{type} =~ /_quotation$/) ? 'quo' : ($self->{type} =~ /_delivery_order$/) ? 'do' : ($self->{type} =~ /letter/) ? 'letter' @@ -1170,7 +1171,7 @@ sub generate_attachment_filename { my $attachment_filename = $main::locale->unquote_special_chars('HTML', $self->get_formname_translation()); my $prefix = $self->get_number_prefix_for_type(); - if ($self->{preview} && (first { $self->{type} eq $_ } qw(invoice credit_note))) { + if ($self->{preview} && (first { $self->{type} eq $_ } qw(invoice invoice_for_advance_payment credit_note))) { $attachment_filename .= ' (' . $recipient_locale->text('Preview') . ')' . $self->get_extension_for_format(); } elsif ($attachment_filename && $self->{"${prefix}number"}) { @@ -2944,6 +2945,7 @@ sub save_status { # $main::locale->text('UNDO TRANSFER') # $main::locale->text('UNIMPORT') # $main::locale->text('invoice') +# $main::locale->text('invoice_for_advance_payment') # $main::locale->text('proforma') # $main::locale->text('sales_order') # $main::locale->text('pick_list') diff --git a/SL/Helper/PrintOptions.pm b/SL/Helper/PrintOptions.pm index cf4616f62..614760c6f 100644 --- a/SL/Helper/PrintOptions.pm +++ b/SL/Helper/PrintOptions.pm @@ -69,6 +69,9 @@ sub get_print_options { ($form->{type} eq 'invoice' && $form->{storno}) ? ( opthash("storno_invoice", $form->{PD}{storno_invoice}, $locale->text('Storno Invoice')), ) : undef, + ($form->{type} eq 'invoice_for_advance_payment') ? ( + opthash("invoice_for_advance_payment", $form->{PD}{invoice_for_advance_payment}, $locale->text('Invoice for Advance Payment')), + ) : undef, ($form->{type} =~ /_delivery_order$/) ? ( opthash($form->{type}, $form->{PD}{$form->{type}}, $locale->text('Delivery Order')), opthash('pick_list', $form->{PD}{pick_list}, $locale->text('Pick List')), diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index ce7580987..ca43b4939 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1205,6 +1205,11 @@ sub print_form { if ($form->{formname} eq "invoice") { $form->{label} = $locale->text('Invoice'); } + + if ($form->{formname} eq "invoice_for_advance_payment") { + $form->{label} = $locale->text('Invoice for Advance Payment'); + } + if ($form->{formname} eq 'sales_order') { $inv = "ord"; $due = "req"; @@ -1302,7 +1307,7 @@ sub print_form { } $form->{TEMPLATE_DRIVER_OPTIONS} = { }; - if (any { $form->{type} eq $_ } qw(sales_quotation sales_order sales_delivery_order invoice request_quotation purchase_order purchase_delivery_order credit_note)) { + if (any { $form->{type} eq $_ } qw(sales_quotation sales_order sales_delivery_order invoice invoice_for_advance_payment request_quotation purchase_order purchase_delivery_order credit_note)) { $form->{TEMPLATE_DRIVER_OPTIONS}->{variable_content_types} = $form->get_variable_content_types(); } diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index b6d6d3404..a8b62a4a3 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -249,6 +249,7 @@ sub prepare_invoice { } elsif ($form->{type} eq "invoice_for_advance_payment") { $form->{type} = "invoice_for_advance_payment"; + $form->{formname} = "invoice_for_advance_payment"; } elsif ($form->{formname} eq "proforma" ) { $form->{type} = "invoice"; diff --git a/locale/de/all b/locale/de/all index fcab59713..1ffd12f6f 100755 --- a/locale/de/all +++ b/locale/de/all @@ -1876,6 +1876,7 @@ $self->{texts} = { 'Invoice email and Contact Person' => 'E-Mail des Rechnungsempfängers und CC an Ansprechpartner', 'Invoice email settings' => 'E-Mail Rechnungsversand', 'Invoice filter' => 'Rechnungsfilter', + 'Invoice for Advance Payment' => 'Anzahlungsrechnung', 'Invoice for Advance Payment (one letter abbreviation)' => 'A', 'Invoice for Advance Payment with Storno (abbreviation)' => 'A(S)', 'Invoice for fees' => 'Rechnung über Gebühren', @@ -4440,6 +4441,7 @@ $self->{texts} = { 'internal error (see details)' => 'Interner Fehler (siehe Details)!', 'invoice' => 'Rechnung', 'invoice mode or item mode' => 'Rechnungsmodus oder Artikelmodus', + 'invoice_for_advance_payment' => 'Anzahlungsrechnung', 'invoice_list' => 'debitorenbuchungsliste', 'is' => 'ist', 'is after' => 'ist nach dem', diff --git a/locale/en/all b/locale/en/all index 5ee8737d6..7682db7ac 100644 --- a/locale/en/all +++ b/locale/en/all @@ -1876,6 +1876,7 @@ $self->{texts} = { 'Invoice email and Contact Person' => '', 'Invoice email settings' => '', 'Invoice filter' => '', + 'Invoice for Advance Payment' => '', 'Invoice for Advance Payment (one letter abbreviation)' => '', 'Invoice for Advance Payment with Storno (abbreviation)' => '', 'Invoice for fees' => '', @@ -4436,6 +4437,7 @@ $self->{texts} = { 'internal error (see details)' => '', 'invoice' => '', 'invoice mode or item mode' => '', + 'invoice_for_advance_payment' => '', 'invoice_list' => '', 'is' => '', 'is after' => '', -- 2.20.1