PriceSource: Gutschriften berücksichtigen
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 5 Aug 2014 11:21:08 +0000 (13:21 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 18 Dec 2014 15:18:22 +0000 (16:18 +0100)
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' };