PriceSource: credit_notes auch im Popup unterstützen
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 14 Oct 2014 13:40:21 +0000 (15:40 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Thu, 18 Dec 2014 15:18:22 +0000 (16:18 +0100)
SL/Controller/PriceSource.pm

index baed7d4..6e33285 100644 (file)
@@ -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' };