Revision 9f666261
Von Sven Schöling vor mehr als 9 Jahren hinzugefügt
SL/PriceSource/Discount.pm | ||
---|---|---|
5 | 5 |
use parent 'SL::DB::Object'; |
6 | 6 |
use Rose::Object::MakeMethods::Generic ( |
7 | 7 |
scalar => [ qw(discount description spec price_source invalid missing) ], |
8 |
'scalar --get_set_init' => [ qw(priority) ], |
|
8 | 9 |
); |
9 | 10 |
|
10 | 11 |
require SL::DB::Helper::Attr; |
... | ... | |
38 | 39 |
"source: @{[ $_[0]->source ]}, discount: @{[ $_[0]->discount ]}, description: @{[ $_[0]->description ]}" |
39 | 40 |
} |
40 | 41 |
|
42 |
sub init_priority { |
|
43 |
3 |
|
44 |
} |
|
45 |
|
|
41 | 46 |
1; |
42 | 47 |
|
43 | 48 |
__END__ |
... | ... | |
109 | 114 |
|
110 | 115 |
A ref to the creating algorithm. |
111 | 116 |
|
117 |
=item C<priority> |
|
118 |
|
|
119 |
OPTIONAL. Discounts may supply a numerical priority. Higher will trump over lower, even when |
|
120 |
supplying lower discounts. Defaults to 3 (as in middle of 1-5). |
|
121 |
|
|
112 | 122 |
=item C<missing> |
113 | 123 |
|
114 | 124 |
OPTIONAL. Both indicator and localized message that the discount with this spec |
Auch abrufbar als: Unified diff
PriceSource: Priorität auf Preisquellenebene verstehen und umsetzen.
Priorität kann jetzt von den einzelnen Preisquellen durchgereicht werden