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

3011 commits

Author SHA1 Message Date
Michael Stenta 0b7fdc78ad Add a function for creating a weight measurement log associated with an animal. 2017-11-24 20:59:34 -05:00
Michael Stenta 27b07719cb Display an animal's current weight when viewing the animal record. 2017-11-24 20:59:34 -05:00
Michael Stenta 2b38b944d8 Add a function for getting an animal's current weight. 2017-11-24 20:59:34 -05:00
Michael Stenta ef6a04614d Use is_numeric() instead of is_int() when checking log timestamps and entity IDs. 2017-11-24 20:59:17 -05:00
Michael Stenta 846c82c3cc Issue #2915217: Group asset type with membership tracking 2017-11-24 20:58:58 -05:00
Michael Stenta cdf5f7672e Convert group reference to a Field Collection in Activity and Observation logs. 2017-11-24 20:58:33 -05:00
Michael Stenta 11875dd3d4 Add a validation handler for the "Group" VBO action that checks for circular membership. 2017-11-24 20:58:33 -05:00
Michael Stenta 5a2574dabb Create a form helper function for validating against circular memberships. 2017-11-24 20:58:33 -05:00
Michael Stenta 638589a3c1 Add "Group" VBO action button to all asset Views. 2017-11-24 20:58:33 -05:00
Michael Stenta bde7bd2cfd Style the "Move" VBO action button with a globe icon and green background. 2017-11-24 20:58:33 -05:00
Michael Stenta 900fc3facc Style the "Group" VBO action button. 2017-11-24 20:58:33 -05:00
Michael Stenta 1aa05c49a6 Add an action for assigning assets to groups in bulk. 2017-11-24 20:58:33 -05:00
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