Commit Graph

58 Commits

Author SHA1 Message Date
Michael Stenta 2e12d76553 Issue #3129409: Use click sorting instead of exposed sort in Views 2020-04-23 14:59:43 -04:00
Michael Stenta 6bd7c0aa84 Don't escape more variables that are being saved to log names. 2020-04-23 11:29:45 -04:00
Michael Stenta aae298097e Issue #3049153: Duplicate assets when filtering by multiple groups or location 2020-04-20 15:17:40 -04:00
Michael Stenta dbbfd895ff Fix #180 Grouping error: 7 ERROR: column "ss_log.timestamp" must appear in the GROUP BY clause or be used in an aggregate function 2019-07-03 22:27:27 -04:00
Michael Stenta 97119dbd5a Allow filtering to find logs that are not done with farm_log_query(). 2019-06-26 14:27:47 -04:00
Michael Stenta 49eb8f1938 Reformat group/inventory/movement log view titles: "[type] logs" (instead of "Logs of [type]"). 2019-04-18 16:23:03 -04:00
Michael Stenta 7b506bc536 Add query tags in query helper functions. 2019-04-01 15:56:53 -04:00
Michael Stenta 3f17afcf63 Implement hook_restws_field_collection_info() for field collections: Group Memberships, Inventory Adjustments, Animal Tag IDs, Movements, and Quantity Measurements. 2019-03-06 17:35:11 -05:00
Michael Stenta c1fb41daea Add KML button to all Views that need it. 2018-05-30 16:36:14 -04:00
Michael Stenta 6b94592e87 Improve auto-generated log names for group membership, inventory, weight, and location. 2018-04-23 16:34:31 -04:00
Michael Stenta b9fe906312 Use new helper function in farm_inventory_set(). 2018-04-17 14:16:48 -04:00
Michael Stenta f9b85b8137 Add "Flag" bulk action button to area, asset, and log Views. 2018-04-17 09:30:56 -04:00
Michael Stenta e1adae3dda Issue #2907879: Add row counter to asset/log lists 2018-04-16 13:48:41 -04:00
Michael Stenta 1a3ca112f6 Add exposed "Items per page" option to all Views. 2018-04-16 13:46:53 -04:00
Michael Stenta e7e808de70 Add exposed Group filter to all asset views. 2018-04-05 10:15:38 -04:00
Michael Stenta 96539b8804 Issue #2954290 by m.stenta, Permakai: Duplicate asset rows when an asset is in multiple groups 2018-03-22 18:39:58 -04:00
Michael Stenta 8ee64a55c3 Add exposed sort for asset ID and log ID on all asset and log Views. 2018-03-19 17:02:19 -04:00
Michael Stenta 0bfc8ff143 Add Flags field and filter to all asset and log Views. 2018-03-19 17:02:19 -04:00
Michael Stenta 0760e8d2b0 Comment fix. 2018-03-02 14:41:33 -05:00
Michael Stenta ca0ad53caf Update all Views to use new 'archived' field/filter/sort. 2018-01-31 09:36:51 -05:00
Michael Stenta 52af43b8a7 Add Group filter to all asset Views. 2017-12-30 13:13:51 -05:00
Michael Stenta e385792096 Remove secondary log ID sorts (this is done automatically in Log module now). 2017-12-28 11:10:11 -05:00
Michael Stenta 5d2dd3c17e Misc Views export updates. 2017-12-27 17:37:38 -05:00
Michael Stenta c3a6c9c556 Change "Name/Search" column to "Log name" and add exposed "Log name" and "Log type" filters and sorts to log Views. 2017-12-27 17:34:43 -05:00
Michael Stenta 1af21d48b9 Use innerJoin()s where possible. 2017-12-07 17:38:52 -05:00
Michael Stenta dc8e0dd7c9 Return the logs created by helper functions (movements, group, inventory, weight). 2017-11-24 21:00:10 -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 6eb6884345 Put inventory and group membership in the right column with location. 2017-11-24 20:58:33 -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 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 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 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 d37c84c78e Use farm_log_asset_query() to build inventory query. 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
Michael Stenta 8a3c836965 Create an Entity Reference View for selecting assets that have inventory enabled. 2017-11-14 13:43:11 -05:00
Michael Stenta 0a2b5aca2f Add custom Views asset type filter handler that only includes types with inventory enabled. 2017-11-14 13:43:11 -05:00
Michael Stenta 6055054b19 Add a function that returns a list of asset types with inventory enabled. 2017-11-14 13:43:11 -05:00
Michael Stenta 7c5751c851 Add Views integration for {farm_inventory_asset_type} table. 2017-11-14 13:43:11 -05:00
Michael Stenta 4450218403 Show "logs with inventory adjustments" on asset pages. 2017-11-14 13:43:11 -05:00
Michael Stenta 8ff76032c5 Add a View of "logs with inventory adjustments". 2017-11-14 13:43:11 -05:00
Michael Stenta 41c9c9e516 Default the inventory of "individual" assets to 1. 2017-11-14 13:43:11 -05:00
Michael Stenta 9360563ed8 Only display inventory if it is enabled for assets. 2017-11-14 13:43:11 -05:00
Michael Stenta 7f7c9b399c Add functions that check if inventory management is enabled on an asset, and whether or not to treat an asset as an individual by default. 2017-11-14 13:43:11 -05:00