Calculate Hospitality Basket

Before you can create a Hospitality Order, the basket should be calculated to update all prices and discounts according to the LS Central calculation engine.

A Hospitality Basket has extra SubLines that hold modifiers and recipe changes to an item or deal in the basket.

OneListHospCalculate returns an OrderHosp object with order lines and sub lines with prices and calculated amount and discount information, if any. You can then use this OrderHosp object to finalize the order. Add contact information and payment information and then the order is ready to be sent in “as is” with OrderHospCreate.

Example 1

Basket with Chicken Meal Item [R0001]. Remove Brown sauce [R0002] (Recipe item). Add SubCode Item Line [01] from Item Modifier [POT+RICE]:

Copy

Hospitality Basket

<ser:oneList>
    <ns1:CardId>10021</ns1:CardId>
    <ns1:IsHospitality>true</ns1:IsHospitality>
    <ns1:Items>
        <ns1:OneListItem>
            <!-- Chicken -->
            <ns1:IsADeal>false</ns1:IsADeal>
            <ns1:ItemId>R0001</ns1:ItemId>
            <ns1:OnelistSubLines>
                <ns1:OneListItemSubLine>
                    <!-- Remove Recipe Item -->
                    <ns1:ItemId>R0002</ns1:ItemId>
                    <ns1:Quantity>0</ns1:Quantity>
                    <ns1:Type>Modifier</ns1:Type>
                </ns1:OneListItemSubLine>
                <ns1:OneListItemSubLine>
                    <!-- Add Modifier -->
                    <ns1:ModifierGroupCode>POT+RICE</ns1:ModifierGroupCode>
                    <ns1:ModifierSubCode>01</ns1:ModifierSubCode>
                    <ns1:Quantity>1</ns1:Quantity>
                    <ns1:Type>Modifier</ns1:Type>
                </ns1:OneListItemSubLine>
            </ns1:OnelistSubLines>
            <ns1:Quantity>1</ns1:Quantity>
            <ns1:UnitOfMeasureId/>
        </ns1:OneListItem>
    </ns1:Items>
    <ns1:ListType>Basket</ns1:ListType>
    <ns1:StoreId>S0005</ns1:StoreId>
</ser:oneList>

Example 2

Basket with Deal [S10024]. Select Deal Item Line 1 (Bacon Burger). Remove Bacon [34420] from Deal Item Line 1 that is in OneList SubLine list as line 1. Select Modifier Item Line 2 from Deal Modifier Line 2 (Garlic Bread Sticks). Select Modifier Item Line 2 from Deal Modifier Line 3 (Cherry Soda):

Copy

Code Sample

<ser:oneList>
    <ns1:CardId>10021</ns1:CardId>
    <ns1:IsHospitality>true</ns1:IsHospitality>
    <ns1:Items>
        <ns1:OneListItem>
            <!-- Burger Deal SetMenu -->
            <ns1:IsADeal>true</ns1:IsADeal>
            <ns1:ItemId>S10024</ns1:ItemId>
            <ns1:LineNumber>1</ns1:LineNumber>
            <ns1:OnelistSubLines>
                <ns1:OneListItemSubLine>
                    <!-- Burger -->
                    <ns1:DealLineId>1</ns1:DealLineId>
                    <ns1:LineNumber>1</ns1:LineNumber>
                    <ns1:Quantity>1</ns1:Quantity>
                    <ns1:Type>Deal</ns1:Type>
                </ns1:OneListItemSubLine>
                <ns1:OneListItemSubLine>
                    <!-- Remove Bacon -->
                    <ns1:DealLineId>1</ns1:DealLineId>
                    <ns1:ItemId>34420</ns1:ItemId>
                    <ns1:LineNumber>2</ns1:LineNumber>
                    <ns1:ParentSubLineId>1</ns1:ParentSubLineId>
                    <ns1:Quantity>0</ns1:Quantity>
                    <ns1:Type>Modifier</ns1:Type>
                </ns1:OneListItemSubLine>
                <ns1:OneListItemSubLine>
                    <!-- Garlic Bread Sticks -->
                    <ns1:DealLineId>2</ns1:DealLineId>
                    <ns1:DealModLineId>2</ns1:DealModLineId>
                    <ns1:Quantity>1</ns1:Quantity>
                    <ns1:Type>Deal</ns1:Type>
                    <ns1:Uom>LAR</ns1:Uom>
                </ns1:OneListItemSubLine>
                <ns1:OneListItemSubLine>
                    <!-- Cherry Soda -->
                    <ns1:DealLineId>3</ns1:DealLineId>
                    <ns1:DealModLineId>2</ns1:DealModLineId>
                    <ns1:Quantity>1</ns1:Quantity>
                    <ns1:Type>Deal</ns1:Type>
                    <ns1:Uom>LAR</ns1:Uom>
                </ns1:OneListItemSubLine>
            </ns1:OnelistSubLines>
            <ns1:Quantity>1</ns1:Quantity>
            <ns1:UnitOfMeasureId/>
        </ns1:OneListItem>
    </ns1:Items>
    <ns1:ListType>Basket</ns1:ListType>
    <ns1:StoreId>S0005</ns1:StoreId>
</ser:oneList>