projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Einkaufsrechnungen: Abteilungs- & Projektauswahl nicht über Multibox
[kivitendo-erp.git]
/
SL
/
DB
/
Manager
/
PriceRule.pm
diff --git
a/SL/DB/Manager/PriceRule.pm
b/SL/DB/Manager/PriceRule.pm
index
99065db
..
d5b5489
100644
(file)
--- a/
SL/DB/Manager/PriceRule.pm
+++ b/
SL/DB/Manager/PriceRule.pm
@@
-7,6
+7,10
@@
use strict;
use parent qw(SL::DB::Helper::Manager);
use parent qw(SL::DB::Helper::Manager);
+use constant PRICE_NEW => 0;
+use constant PRICE_REDUCED_MASTER_DATA => 1;
+use constant PRICE_DISCOUNT => 2;
+
use SL::DB::Helper::Filtered;
use SL::DB::Helper::Paginated;
use SL::DB::Helper::Sorted;
use SL::DB::Helper::Filtered;
use SL::DB::Helper::Paginated;
use SL::DB::Helper::Sorted;
@@
-76,6
+80,12
@@
sub get_all_matching {
$self->get_all(query => [ id => \@ids ]);
}
$self->get_all(query => [ id => \@ids ]);
}
+sub all_price_types {
+ [ PRICE_NEW, t8('Price') ],
+ [ PRICE_REDUCED_MASTER_DATA, t8('Reduced Master Data') ],
+ [ PRICE_DISCOUNT, t8('Discount') ],
+}
+
sub _sort_spec {
return ( columns => { SIMPLE => 'ALL', },
default => [ 'name', 1 ],
sub _sort_spec {
return ( columns => { SIMPLE => 'ALL', },
default => [ 'name', 1 ],