From: Bernd Bleßmann Date: Wed, 10 Nov 2021 14:14:08 +0000 (+0100) Subject: Anzahlungs-Rg.: neuen Typ beim Erzeugen der record items berücksichtigen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~217^2~48 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=cae81a9301ce3bc3cfd5ac47b0c6f0537ca23ff0;p=kivitendo-erp.git Anzahlungs-Rg.: neuen Typ beim Erzeugen der record items berücksichtigen --- 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' };