From 17384c044b465c262772eb9737ea298069c4d826 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Tue, 14 Oct 2014 15:40:21 +0200 Subject: [PATCH] =?utf8?q?PriceSource:=20credit=5Fnotes=20auch=20im=20Popu?= =?utf8?q?p=20unterst=C3=BCtzen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/PriceSource.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/Controller/PriceSource.pm b/SL/Controller/PriceSource.pm index baed7d40b..6e33285de 100644 --- a/SL/Controller/PriceSource.pm +++ b/SL/Controller/PriceSource.pm @@ -121,7 +121,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' }; -- 2.20.1