Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2dfa3a4c

Von Sven Schöling vor mehr als 7 Jahren hinzugefügt

  • ID 2dfa3a4c75b6f68ab75df739a3e82ceb1b61dcff
  • Vorgänger 87b283bd
  • Nachfolger 49f71dba

Preisquellen: Support für editierbare Preisquellen

Unterschiede anzeigen:

SL/PriceSource/Price.pm
5 5
use parent 'SL::DB::Object';
6 6
use Rose::Object::MakeMethods::Generic (
7 7
  scalar => [ qw(price description spec price_source invalid missing) ],
8
  'scalar --get_set_init' => [ qw(priority) ],
8
  'scalar --get_set_init' => [ qw(priority editable) ],
9 9
);
10 10

  
11 11
require SL::DB::Helper::Attr;
......
43 43
  3
44 44
}
45 45

  
46
sub init_editable {
47
  0
48
}
49

  
46 50
1;
47 51

  
48 52
__END__
......
119 123
OPTIONAL. Prices may supply a numerical priority. Higher will trump lower, even when
120 124
supplying higher prices. Defaults to 3 (as in middle of 1-5).
121 125

  
126
=item C<editable>
127

  
128
OPTIONAL. Prices may flag themselves as editable. An editable price will still
129
be subject to checks for higher or lower prices, but will be rendered in a
130
fashion that allows the user to overwrite it.
131

  
132
This is potentially very distracting if the price is usually a default price
133
and will be changed in a lot of instances so use with caution.
134

  
135
On the other hand it can provide the capability that users unfamiliar with the
136
system will intuitively expect so it can be a good way to introduce the system.
137

  
122 138
=item C<missing>
123 139

  
124 140
OPTIONAL. Both indicator and localized message that the price with this spec

Auch abrufbar als: Unified diff