I have a question.
I'm trying to build a simple POS(Point of Sales) system for a Pizza store, and
in this system, an "Item"(Pizza) consists of numerous "Toppings"(Dough, Salami, Cheese).
My Topping structure is something like this:
Code: Select all
Structure Structure_Topping
Name$
AbrrName$
WeightUnit$
CostPerWeightUnit.w
EndStructurewhat makes sense to me is to have an a "ToppingsInItem" structure linked list, inside a Item structure linked list.
Maybe something like this:
Code: Select all
Structure_Item
Name$
Description$
ChargeForItem.w
NumOfToppings.w
ItemDisabled.b
IncludeToppings.w ; Number of Toppings to include for free
Structure_ToppingsInItem
Number.w
Type.w
AllowHalf.b
AllowDouble.b
WtWhole.w
ChargeWhole.w
WtHalf.w
ChargeHalf.w
WtDouble.w
ChargleDouble.w
EndStructure
EndStructureIs having a linked list inside a linked list possible?
Or, is this method of handling toppings and items even good?
I'm asking, because the examples I found in the Code Archive,
to have linked lists inside linked lists seemed pretty complex,
and maybe there is a simpler way.
Any comments or advice will be appreciated, thanks:)
-Shopro


