Michael Stenta
|
4369e7cbc8
|
Add a View of Groups at /farm/assets/groups.
|
2017-11-24 20:58:33 -05:00 |
|
Michael Stenta
|
86768afbc3
|
Initial commit of Farm Group module: provide a basic Group asset type.
|
2017-11-24 20:58:33 -05:00 |
|
Michael Stenta
|
a9743fa150
|
Query to retrieve movement logs to an area should never use the $single parameter.
|
2017-11-24 20:57:47 -05:00 |
|
Michael Stenta
|
c00305f71c
|
Add a function for retrieving an area's movement history.
|
2017-11-24 20:57:47 -05:00 |
|
Michael Stenta
|
ba58dc436a
|
Add a function for getting an asset's next movement log.
|
2017-11-24 20:57:47 -05:00 |
|
Michael Stenta
|
d27a9114c8
|
Make farm_log_query() range limit optional with a new $single parameter.
|
2017-11-24 20:57:47 -05:00 |
|
Michael Stenta
|
6d39abe4d9
|
Remove $log_id_field parameter from farm_log_query() to simplify. Add the field where needed.
|
2017-11-24 20:57:47 -05:00 |
|
Michael Stenta
|
9cc6d12162
|
Add farm_movement_area_movement_query() for building a query that finds movement logs to a specific area.
|
2017-11-24 20:57:47 -05:00 |
|
Michael Stenta
|
e96a19173b
|
Add a measure for area.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
d61fd7500b
|
Create a function for defining information about available quantity measures.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
68f5eba9d0
|
Replace Sale log Quantity field collection with individual Quantity and Units fields.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
4d1fde71c6
|
Make Units field not required.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
191aa90f0b
|
Arrange quantity field display.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
ae939e345a
|
Use farm_log_asset_query() to build quantity query.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
efb3c20073
|
Add functions for loading quantity data for a specific asset, optionally given a measure and/or label.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
6a1f70fd73
|
Allow multiple quantities to be entered on each log. Hide initial form and require user to add first item.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
e92d6f4fec
|
Add a Label field to Quantities.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
ee6e0d264a
|
Update Quantity field instance descriptions to include Measure.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
1c29669b37
|
Add a function that defines the available options for the Measure field.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
d309c509a7
|
Add a Measure field to Quantities.
|
2017-11-24 20:56:32 -05:00 |
|
Michael Stenta
|
91160a7b3d
|
Add an index on 'name' and 'value' columns in {farm_asset_property}.
|
2017-11-24 20:55:50 -05:00 |
|
Michael Stenta
|
539a52f0aa
|
Change asset property database value column to a varchar.
|
2017-11-24 20:55:50 -05:00 |
|
Michael Stenta
|
ce4b3c1485
|
Allow a default value to be set when getting an asset property (similar to variable_get()).
|
2017-11-24 20:55:50 -05:00 |
|
Michael Stenta
|
32d4a01d0e
|
Implement hook_entity_delete() to clean up asset properties if an asset is deleted.
|
2017-11-24 20:55:50 -05:00 |
|
Michael Stenta
|
773605951c
|
Add functions for getting, setting, deleting, and checking whether or not a property is set.
|
2017-11-24 20:55:50 -05:00 |
|
Michael Stenta
|
f1e75d5ba4
|
Initial commit: provide a {farm_asset_property} key/value database table.
|
2017-11-14 13:52:30 -05:00 |
|
Michael Stenta
|
b327a64eae
|
Minor doc fix in hook_farm_ui_entity_view_groups().
|
2017-11-14 13:45:37 -05:00 |
|
Michael Stenta
|
3a61454104
|
Do not allow collapsing farm_ui groups.
|
2017-11-14 13:45:37 -05:00 |
|
Michael Stenta
|
cf84a3af07
|
Put all log Views in the "logs" farm_ui group and change the group name to "Logs by type".
|
2017-11-14 13:45:37 -05:00 |
|
Michael Stenta
|
0116ee4d41
|
Put asset children View in the "assets" farm_ui group.
|
2017-11-14 13:45:37 -05:00 |
|
Michael Stenta
|
a6da002c62
|
Add a group for "Logs with special purpose" and put movement and inventory logs in there via farm_ui.
|
2017-11-14 13:45:37 -05:00 |
|
Michael Stenta
|
67034ecba3
|
Change "Logs with [movements/inventory]" to "Logs of [movements/inventory]".
|
2017-11-14 13:45:20 -05:00 |
|
Michael Stenta
|
181e157b78
|
Remove feeds tamper that makes animal sex field required.
|
2017-11-14 13:44:22 -05:00 |
|
Michael Stenta
|
515f2cb27e
|
Improvements to asset form help text to support non-individual animals.
|
2017-11-14 13:44:22 -05:00 |
|
Michael Stenta
|
c79cc63c59
|
Move Animal birthdate, sex, castrated, and nickname fields to new Individual fieldset. Make sex field optional.
|
2017-11-14 13:44:22 -05:00 |
|
Michael Stenta
|
cc534563ad
|
Add inventory column to Animals list.
|
2017-11-14 13:44:22 -05:00 |
|
Michael Stenta
|
e340995f64
|
Enable inventory tracking for animal assets, and treat them as individuals by default.
|
2017-11-14 13:44:22 -05:00 |
|
Michael Stenta
|
a429d6b79d
|
Use fraction::subtract() method in farm_inventory_set().
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
465172c888
|
Fix comment.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
c0cd29b5de
|
Minor comment fixes.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
529c882f18
|
Remove $asset_filter parameter from farm_log_asset_query() because it is no longer necessary.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
7563441108
|
Use farm_log_query() directly in farm_inventory_query(), since it performs its own asset join.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
2002a3bc0e
|
Further abstract farm_log_asset_query() by creating an even more general farm_log_query().
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
d37c84c78e
|
Use farm_log_asset_query() to build inventory query.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
89435b551f
|
Generalize the query function for selecting logs that reference an asset, so farm_inventory can use it.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
11799bdf7e
|
Add Views field handler for asset inventory value.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
87f053cb4f
|
Create function for formatting inventory values.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
8f8e420766
|
Add an Inventory field to asset edit form that allows setting the current inventory (via programatic log creation).
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
3312a1862e
|
Add a function for programatically creating a log that sets the current inventory level.
|
2017-11-14 13:43:11 -05:00 |
|
Michael Stenta
|
0fca8f5e80
|
Use farm_inventory_entityreference_view for selecting assets in inventory adjustment.
|
2017-11-14 13:43:11 -05:00 |
|