Fix: Anzahlungs-Rg.: neuen Typ beim Erzeugen der record items berücksichtigen
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Mon, 6 Dec 2021 14:59:10 +0000 (15:59 +0100)
committerJan Büren <jan@kivitendo.de>
Mon, 14 Feb 2022 12:47:45 +0000 (13:47 +0100)
SL/Controller/PriceSource.pm
bin/mozilla/io.pl

index da03021..ba2d74e 100644 (file)
@@ -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' };
index 46bad90..ce75809 100644 (file)
@@ -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' };