Skip to content

GenericAbsolute und Kombinatorik

In einem Hotel gilt, dass für einen Service immer 30% des Grundpreises des Zimmers als Zuschlag erhoben werden soll.
Das wird mit einem GenericAbsolute ausgedrückt, dass als Basis die Priceitems der Klasse Basisprice definiert.



                <PriceItem Class="ServiceFee">
<GenericAbsolute>
<GenericValue>
<PercentModificationValue>
<PercentValue>30</PercentValue>
<ModificationBasis>
<ConsideredPriceItems>
<ConsideredPriceItemClasses>
Baseprice
</ConsideredPriceItemClasses>
</ConsideredPriceItems>
</ModificationBasis>
</PercentModificationValue>
</GenericValue>
<DayBase>1</DayBase>
<PersonBase>1</PersonBase>
</GenericAbsolute>
</PriceItem>


Ein Sonderpreis, definiert als Tagespreis pro Person, soll den Basispreis überschreiben,
was mit Hilfe der Kombinatorik ausgedrückt wird.



                <PriceItem Class="Baseprice">
<Absolute>
<Value>560</Value>
<DayBase>x</DayBase>
<PersonBase>1</PersonBase>
</Absolute>
<Combinatorics>
<CombinationLevel>2</CombinationLevel>
<CombinationCode>ABS</CombinationCode>
</Combinatorics>
</PriceItem>


<PriceItem Class="SuperPrice">
<Absolute>
<Value>60</Value>
<DayBase>1</DayBase>
<PersonBase>1</PersonBase>
</Absolute>
<Condition>
<DayImpact>
<Date Source="Product">
<Min>2024-10-01</Min>
<Max>2024-10-06</Max>
</Date>
</DayImpact>
</Condition>
<Combinatorics>
<CombinationLevel>1</CombinationLevel>
<CombinationCode>ABS</CombinationCode>
<CombinableWhen>
<Not>
<CombinationCode>ABS</CombinationCode>
</Not>
</CombinableWhen>
</Combinatorics>
</PriceItem>


Frage: Soll das GenericAbsolute nach Abarbeitung der Kombinatorik dennoch in die Preisberechnung einfließen?



Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options