-
Notifications
You must be signed in to change notification settings - Fork 147
Ordering and quantities
wvengen edited this page Dec 30, 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/BESTELLEN.
-
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 UPDATE: number of units to be ordered based on member orders) - TO ADD:
#units_ordered
- actual amount ordered (may be different e.g. to fill unit quantity) - TO ADD:
#units_billed
- actual amount billed (as appearing on invoice; may be different e.g. because of availability) - TO ADD:
#units_received
- actual amount received (may be different e.g. because of misunderstanding)
-
-
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.