I make food sales program. in which there is a reduction in food stocks. such a sale spaghetti require:
250 gr Spaghetti
200 gr chicken meat
100 g carrots
100 g baby kailan
6 pieces of red chilli
3 tablespoons soy sauce
5 cloves of garlic minced
1 tablespoon instant chicken broth
1 tablespoon fried shallots
1 tsp fine salt
3 tablespoons cooking oil
1 tablespoon cornstarch
then when selling a spaghetti reduce stock as above.
so I created two databases. The first database is the data is the key ingredient of spaghetti and a negative value. The second data is a database of food stocks. so when selling spaghet the first data with the key into the spaghetti will continue my second database based on the total food ingredients will automatically be reduced. is there a shorter way than the way I mentioned please help with sample programs. thank you
250 gr Spaghetti
200 gr chicken meat
100 g carrots
100 g baby kailan
6 pieces of red chilli
3 tablespoons soy sauce
5 cloves of garlic minced
1 tablespoon instant chicken broth
1 tablespoon fried shallots
1 tsp fine salt
3 tablespoons cooking oil
1 tablespoon cornstarch
then when selling a spaghetti reduce stock as above.
so I created two databases. The first database is the data is the key ingredient of spaghetti and a negative value. The second data is a database of food stocks. so when selling spaghet the first data with the key into the spaghetti will continue my second database based on the total food ingredients will automatically be reduced. is there a shorter way than the way I mentioned please help with sample programs. thank you