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 *
|
Typos in Doku