3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
Commit graph

2749 commits

Author SHA1 Message Date
Michael Stenta dab82ea3f1 Migrate group terms to assets and egg logs to harvest logs. 2017-11-24 20:58:33 -05:00
Michael Stenta 1fa1b5f720 Enable Farm Group module on existing sites. 2017-11-24 20:58:33 -05:00
Michael Stenta 6eb6884345 Put inventory and group membership in the right column with location. 2017-11-24 20:58:33 -05:00
Michael Stenta 8ecda9d08f Remove old animal group column. 2017-11-24 20:58:33 -05:00
Michael Stenta 35b7a77915 Add Group column to all asset Views. 2017-11-24 20:58:33 -05:00
Michael Stenta 627c054105 Add ability to create a new group when adding/editing an asset. 2017-11-24 20:58:33 -05:00
Michael Stenta 5d22d2f0c8 Add a field to asset edit forms for automatically creating a group assignment log. 2017-11-24 20:58:33 -05:00
Michael Stenta a49812f8bc Add a function for generating a group membership assignment log. 2017-11-24 20:58:33 -05:00
Michael Stenta 98f4dc350c Show View of logs with group membership on assets. 2017-11-24 20:58:33 -05:00
Michael Stenta e8ee8ec8e8 Add a View of logs with group membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 96c7445aa1 Show an assets current group membership on asset view page. 2017-11-24 20:58:33 -05:00
Michael Stenta 6a684a9a2b Create a function that allows you to get a list of a group's members. 2017-11-24 20:58:33 -05:00
Michael Stenta 1f4e49c504 Show members of a group when viewing a group's page. 2017-11-24 20:58:33 -05:00
Michael Stenta 4b4542c097 Add a View for displaying members of a group. 2017-11-24 20:58:33 -05:00
Michael Stenta 58138651cd Add a Views relationship handler for linking assets to their latest group membership log. 2017-11-24 20:58:33 -05:00
Michael Stenta cc717f2854 Abstract the Views relationship handler for linking assets to their movement logs so that it can be used for other purposes (like group membership). 2017-11-24 20:58:33 -05:00
Michael Stenta 4e48221726 When a log form with a group reference field is submitted validate that assets are referenced and they don't create a circular membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 0731214b3d Add a function to check for circular group membership. 2017-11-24 20:58:33 -05:00
Michael Stenta e1a47a0691 Add functions for querying the membership of an asset (similar to farm_movement's location code). 2017-11-24 20:58:33 -05:00
Michael Stenta b0f8ceb439 Move areas, movement, and inventory field displays relative to assets, and other field display consistency fixes. 2017-11-24 20:58:33 -05:00
Michael Stenta 59f706dd27 Add "Group Membership" fieldset and "Group" reference field to activity and observation logs. 2017-11-24 20:58:33 -05:00
Michael Stenta 21bbcb171a Add a group reference field base. 2017-11-24 20:58:33 -05:00
Michael Stenta 5c212fc63a Add a View for selecting Group assets (via entityreference_view_widget). 2017-11-24 20:58:33 -05:00
Michael Stenta 8f6eba3940 Reorganize group asset fields into Easy Responsive Tabs. 2017-11-24 20:58:33 -05:00
Michael Stenta 71a2662eb7 Implement hook_farm_ui_entities() to describe the Group asset type to the Farm UI module. 2017-11-24 20:58:33 -05:00
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 ec90da13fa Merge branch 'farm_area_history' into 7.x-1.x 2017-11-24 20:57:54 -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 d22891849f Issue #2912520: Enable multiple quantity measurements per log 2017-11-24 20:56:45 -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 782a190af8 Merge branch 'farm_asset_property' into 7.x-1.x 2017-11-24 20:56:08 -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