PriceSource: Gutschriften berücksichtigen
[kivitendo-erp.git] / bin / mozilla / io.pl
index ecf7723..80fda86 100644 (file)
@@ -1961,7 +1961,7 @@ sub _make_record {
     sales_delivery_order    => 'DeliveryOrder',
   }->{$::form->{type}};
 
-  if ($::form->{type} eq 'invoice') {
+  if ($::form->{type} =~ /invoice|credit_note/) {
     $class = $::form->{vc} eq 'customer' ? 'Invoice'
            : $::form->{vc} eq 'vendor'   ? 'PurchaseInvoice'
            : do { die 'unknown invoice type' };