Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / DB / Manager / PartsPriceHistory.pm
diff --git a/SL/DB/Manager/PartsPriceHistory.pm b/SL/DB/Manager/PartsPriceHistory.pm
new file mode 100644 (file)
index 0000000..6cc14ca
--- /dev/null
@@ -0,0 +1,23 @@
+package SL::DB::Manager::PartsPriceHistory;
+
+use strict;
+
+use parent qw(SL::DB::Helper::Manager);
+
+use SL::DB::Helper::Sorted;
+use SL::DB::Helper::Paginated;
+
+sub object_class { 'SL::DB::PartsPriceHistory' }
+
+__PACKAGE__->make_manager_methods;
+
+sub _sort_spec {
+  (
+    default  => [ 'valid_from', 0 ],
+    columns  => {
+      SIMPLE => 'ALL',
+    },
+  );
+}
+
+1;