1, in food management, you can set a discount attribute for each food, and you can use a switch or set a discount ratio to indicate whether you can discount. By default, the discount attribute of all dishes can be set to Yes.
2. In the cashier system, when the user orders food, the system will judge whether a discount is needed according to the discount attribute of the food. If the discount attribute of food is Yes, the discount price is calculated according to the set discount ratio. If the discount attribute of food is No, no discount will be given.