X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/6d3c1977881e0de8857f57e64e66e80482e21f42..ba4744ac51983efe3bba9ccc69d1ff4e8bbe301d:/bin/mozilla/io.pl diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index ecf7723e6..80fda8657 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -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' };