Revision 78df36d1
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
SL/DB/Manager/PriceRuleItem.pm | ||
---|---|---|
15 | 15 |
use SL::Locale::String qw(t8); |
16 | 16 |
|
17 | 17 |
my @types = qw( |
18 |
customer vendor business partsgroup qty reqdate pricegroup |
|
18 |
part customer vendor business partsgroup qty reqdate pricegroup
|
|
19 | 19 |
); |
20 | 20 |
|
21 | 21 |
my %ops = ( |
... | ... | |
28 | 28 |
'vendor' => { description => t8('Vendor'), customer => 0, vendor => 1, data_type => 'int', data => sub { $_[0]->vendor->id }, }, |
29 | 29 |
'business' => { description => t8('Type of Business'), customer => 1, vendor => 1, data_type => 'int', data => sub { $_[0]->customervendor->business_id }, exclude_nulls => 1 }, |
30 | 30 |
'reqdate' => { description => t8('Reqdate'), customer => 1, vendor => 1, data_type => 'date', data => sub { $_[0]->reqdate }, ops => 'date' }, |
31 |
'part' => { description => t8('Part'), customer => 1, vendor => 0, data_type => 'int', data => sub { $_[1]->part->id }, }, |
|
31 | 32 |
'pricegroup' => { description => t8('Pricegroup'), customer => 1, vendor => 1, data_type => 'int', data => sub { $_[1]->pricegroup_id }, exclude_nulls => 1 }, |
32 | 33 |
'partsgroup' => { description => t8('Group'), customer => 1, vendor => 1, data_type => 'int', data => sub { $_[1]->part->partsgroup_id }, exclude_nulls => 1 }, |
33 | 34 |
'qty' => { description => t8('Qty'), customer => 1, vendor => 1, data_type => 'num', data => sub { $_[1]->qty }, ops => 'num' }, |
Auch abrufbar als: Unified diff
PriceRule: Filter nach Ware implementiert