Revision c96ff612
Von Jan Büren vor mehr als 1 Jahr hinzugefügt
SL/DB/Manager/PriceRuleItem.pm | ||
---|---|---|
32 | 32 |
{ type => 'pricegroup', description => t8('Pricegroup'), customer => 1, vendor => 1, data_type => 'int', data => sub { $_[1]->pricegroup_id }, exclude_nulls => 1 }, |
33 | 33 |
{ type => 'partsgroup', description => t8('Partsgroup'), customer => 1, vendor => 1, data_type => 'int', data => sub { $_[1]->part->partsgroup_id }, exclude_nulls => 1 }, |
34 | 34 |
{ type => 'qty', description => t8('Qty'), customer => 1, vendor => 1, data_type => 'num', data => sub { $_[1]->qty }, ops => 'num' }, |
35 |
{ type => 'cvar', description => t8('Custom Variables'), customer => 1, vendor => 1, data_type => 'int', data => sub { $_[1]->part->cvar_by_name('articlegroup')->id }, exclude_nulls => 1 }, |
|
35 | 36 |
); |
36 | 37 |
|
38 |
# ITEM.part.cvar_by_name(var.config.name) |
|
39 |
|
|
37 | 40 |
sub not_matching_sql_and_values { |
38 | 41 |
my ($class, %params) = @_; |
39 | 42 |
|
Auch abrufbar als: Unified diff
Cvar für Preisregeln. Proof of Concept mit hartkodierter Bdv articlegroup
Voraussetzung: Eine optionale BDV (Auswahlliste) mit dem Namen articlegroup