Anzahlungs-Rg.: neuen Typ beim Erzeugen der record items berücksichtigen
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 10 Nov 2021 14:14:08 +0000 (15:14 +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 85e3765..da03021 100644 (file)
@@ -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' };
index 9628ddf..46bad90 100644 (file)
@@ -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' };