From cae81a9301ce3bc3cfd5ac47b0c6f0537ca23ff0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 10 Nov 2021 15:14:08 +0100 Subject: [PATCH] =?utf8?q?Anzahlungs-Rg.:=20neuen=20Typ=20beim=20Erzeugen?= =?utf8?q?=20der=20record=20items=20ber=C3=BCcksichtigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/PriceSource.pm | 3 ++- bin/mozilla/io.pl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SL/Controller/PriceSource.pm b/SL/Controller/PriceSource.pm index 85e3765be..da0302138 100644 --- a/SL/Controller/PriceSource.pm +++ b/SL/Controller/PriceSource.pm @@ -83,6 +83,7 @@ sub _make_record_item { sales_quotation => 'OrderItem', request_quotation => 'OrderItem', invoice => 'InvoiceItem', + invoice_for_advance_payment => 'InvoiceItem', purchase_invoice => 'InvoiceItem', credit_note => 'InvoiceItem', purchase_delivery_order => 'DeliveryOrderItem', @@ -154,7 +155,7 @@ sub _make_record { sales_delivery_order => 'DeliveryOrder', }->{$::form->{type}}; - if ($::form->{type} =~ /invoice|credit_note/) { + if ($::form->{type} =~ /invoice|invoice_for_advance_payment|credit_note/) { $class = $::form->{vc} eq 'customer' ? 'Invoice' : $::form->{vc} eq 'vendor' ? 'PurchaseInvoice' : do { die 'unknown invoice type' }; diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index 9628ddffd..46bad906b 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1885,6 +1885,7 @@ sub _make_record_item { sales_quotation => 'OrderItem', request_quotation => 'OrderItem', invoice => 'InvoiceItem', + invoice_for_advance_payment => 'InvoiceItem', credit_note => 'InvoiceItem', purchase_invoice => 'InvoiceItem', purchase_delivery_order => 'DeliveryOrderItem', @@ -1965,7 +1966,7 @@ sub _make_record { sales_delivery_order => 'DeliveryOrder', }->{$::form->{type}}; - if ($::form->{type} =~ /invoice|credit_note/) { + if ($::form->{type} =~ /invoice|invoice_for_advance_payment|credit_note/) { $class = $::form->{vc} eq 'customer' ? 'Invoice' : $::form->{vc} eq 'vendor' ? 'PurchaseInvoice' : do { die 'unknown invoice type' }; -- 2.20.1