Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 6a973df2

Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt

  • ID 6a973df2362439a61425f767511cb02395b56737
  • Vorgänger 4edb3a6f
  • Nachfolger 1413b1a8

Typos in Doku

Unterschiede anzeigen:

SL/PriceSource/Base.pm
123 123

  
124 124
=item C<description>
125 125

  
126
Must return a translated name to be used in frontend. Will be used, to
126
Must return a translated name to be used in the frontend. Will be used to
127 127
distinguish the origin of different prices.
128 128

  
129 129
=item C<available_prices>
130 130

  
131
Must return a list of all prices that you algorithm can recommend the user
131
Must return a list of all prices that your algorithm can recommend to the user
132 132
for the current situation. Each price must have a unique spec that can be used
133 133
to recreate it later. Try to be brief, no one needs 20 different price
134 134
suggestions.
135 135

  
136 136
=item C<available_discounts>
137 137

  
138
Must return a list of all prices that you algorithm can recommend the user
138
Must return a list of all prices that your algorithm can recommend to the user
139 139
for the current situation. Each discount must have a unique spec that can be
140 140
used to recreate it later. Try to be brief, no one needs 20 different discount
141 141
suggestions.
......
178 178
=item *
179 179

  
180 180
Be aware that all 8 types of record will be passed to your algorithm. If you
181
don't serve some of them, just return emptry lists on C<available_prices> and
181
don't serve some of them, just return empty lists on C<available_prices> and
182 182
C<best_price>
183 183

  
184 184
=item *
......
189 189
=item *
190 190

  
191 191
Records will not be calculated. If you need tax data or position totals, you
192
need to invoke that for yourself.
192
need to invoke that yourself.
193 193

  
194 194
=item *
195 195

  
......
198 198
=item *
199 199

  
200 200
You do not need to do price factor and row discount calculation. These will be
201
done automatically afterwards. You do have to include customer/vendor discount
201
done automatically afterwards. You do have to include customer/vendor discounts
202 202
if your price interacts with those.
203 203

  
204 204
=item *
SL/PriceSource/Price.pm
51 51

  
52 52
=head1 NAME
53 53

  
54
SL::PriceSource::Price - contrainer to pass calculated prices around
54
SL::PriceSource::Price - container to pass calculated prices around
55 55

  
56 56
=head1 SYNOPSIS
57 57

  
......
116 116

  
117 117
=item C<priority>
118 118

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

  
122 122
=item C<missing>

Auch abrufbar als: Unified diff