Revision 8ddfcdc4
Von Jan Büren vor etwa 3 Jahren hinzugefügt
- ID 8ddfcdc45791bc4a5a74eeaea3e50eeb964256d2
- Vorgänger c2bd717d
| SL/Controller/PriceRule.pm | ||
|---|---|---|
|
|
||
|
use Rose::Object::MakeMethods::Generic
|
||
|
(
|
||
|
'scalar --get_set_init' => [ qw(models price_rule vc pricegroups partsgroups businesses) ],
|
||
|
'scalar --get_set_init' => [ qw(models price_rule vc pricegroups partsgroups businesses cvar) ],
|
||
|
);
|
||
|
|
||
|
# __PACKAGE__->run_before('check_auth');
|
||
| ... | ... | |
|
SL::DB::Manager::PartsGroup->get_all;
|
||
|
}
|
||
|
|
||
|
sub init_cvar {
|
||
|
# SL::DB::Manager::CustomVariableConfig->get_all_sorted(where => [ module => 'IC' ]);
|
||
|
# proof of concept: hard coded for articlegroup
|
||
|
SL::DB::Manager::CustomVariableConfig->get_first(where => [ module => 'IC', name => 'articlegroup' ]) ;
|
||
|
}
|
||
|
|
||
|
|
||
|
sub all_price_types {
|
||
|
SL::DB::Manager::PriceRule->all_price_types;
|
||
|
}
|
||
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