From: Bernd Bleßmann Date: Mon, 6 Dec 2021 14:59:10 +0000 (+0100) Subject: Fix: 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~47 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=fe7ad402666bbe38d97710852bda2bebb28322ee;p=kivitendo-erp.git Fix: Anzahlungs-Rg.: neuen Typ beim Erzeugen der record items berücksichtigen --- diff --git a/SL/Controller/PriceSource.pm b/SL/Controller/PriceSource.pm index da0302138..ba2d74e47 100644 --- a/SL/Controller/PriceSource.pm +++ b/SL/Controller/PriceSource.pm @@ -155,7 +155,7 @@ sub _make_record { sales_delivery_order => 'DeliveryOrder', }->{$::form->{type}}; - if ($::form->{type} =~ /invoice|invoice_for_advance_payment|credit_note/) { + if ($::form->{type} =~ /invoice|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 46bad906b..ce7580987 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1966,7 +1966,7 @@ sub _make_record { sales_delivery_order => 'DeliveryOrder', }->{$::form->{type}}; - if ($::form->{type} =~ /invoice|invoice_for_advance_payment|credit_note/) { + if ($::form->{type} =~ /invoice|credit_note/) { $class = $::form->{vc} eq 'customer' ? 'Invoice' : $::form->{vc} eq 'vendor' ? 'PurchaseInvoice' : do { die 'unknown invoice type' };