-
Notifications
You must be signed in to change notification settings - Fork 146
Ordering and quantities
wvengen edited this page Sep 25, 2013
·
13 revisions
An important feature of foodsoft is keeping track of article quantities. This page describes the different kinds of article quantities used throughout foodsoft.
For an extensive example of how articles are distributed in an order cycle, please see doc/README_FOR_APP.
-
Article
db, model-
#quantity
- number of articles in stock
-
-
OrderArticle
db, model-
#quantity
+#tolerance
- sum of all relatedGroupOrderArticle
quantities and tolerances -
#units_to_order
- when the order is open, number of units that will be ordered based on the total quantity and tolerance; else, the number of units that have been ordered - TO ADD:
#units_ordered
- actual amount to order - TO ADD:
#units_received
- actual amount received
-
-
GroupOrderArticle
db, model-
#quantity
+#tolerance
- total quantity and tolerance requested by member -
#result
- total received quantity for member, ornil
when order is still open
-
-
GroupOrderArticleQuantity
db, model-
#quantity
+#tolerance
- quantity and tolerance ordered at that time (see README_FOR_APP for more details)
-
The fields marked "TO ADD" are not present at the moment, but may be added for foodcoop-adam/foodsoft#2 and foodcoop-adam/foodsoft#17.