PriceSource: Konfiguration
[kivitendo-erp.git] / SL / PriceSource / ALL.pm
index 33a7e44..3d9813e 100644 (file)
@@ -17,6 +17,12 @@ my @price_sources_order = qw(
   makemodel
 );
 
+sub all_enabled_price_sources {
+  my %disabled = map { $_ => 1 } @{ $::instance_conf->get_disabled_price_sources };
+
+  map { $price_sources_by_name{$_} } grep { !$disabled{$_} } @price_sources_order;
+}
+
 sub all_price_sources {
   map { $price_sources_by_name{$_} } @price_sources_order;
 }