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

989 commits

Author SHA1 Message Date
Michael Stenta
ffcd2a888a If a plan is made inactive, archive all assets linked to it, and vice versa. 2019-08-12 14:15:37 -04:00
Michael Stenta
0c8fdccef2 Fix lot number label in sale and purchase list columns. 2019-08-01 10:19:17 -04:00
Michael Stenta
cf66b789fb Add seed lot number field to seeding logs. 2019-08-01 10:19:17 -04:00
Skipper-is
ddbd920364 Added 3 commonly used audio formats for the allowed file upload types. #190 2019-07-31 09:04:15 -04:00
Mattias Sandström
39507038cd Fixed problems when BC math is missing #188 2019-07-18 12:37:52 -04:00
Michael Stenta
77476ea263 Remove debug statement. 2019-07-17 16:06:11 -04:00
Michael Stenta
d8ffffea8c Improve plan map rendering so that it matches maps on asset pages. 2019-07-17 15:33:59 -04:00
Michael Stenta
c5699e3df0 Enable Farm Fields Autocomplete module. 2019-07-17 13:42:29 -04:00
Michael Stenta
b768f07f87 Initial commit of farm fields autocomplete module. 2019-07-17 09:49:09 -04:00
Michael Stenta
8824cce727 Add system of measurement to /farm.json. 2019-07-11 21:05:31 -04:00
Michael Stenta
5126bbe98a Fix relative path in "entity is part of plan" message. 2019-07-11 16:07:35 -04:00
Michael Stenta
0f77fc7cd3 Summarize areas and assets associated with a plan. 2019-07-11 14:41:52 -04:00
Michael Stenta
316440f103 Update usage of $done in farm_movement_asset_location(). 2019-07-11 14:16:09 -04:00
Michael Stenta
4fe8b67d64 Farm Plan Map module: Adds a map of areas and assets in a plan. 2019-07-11 13:42:24 -04:00
Michael Stenta
3e4bbadf94 Fix "Area is in plan" message. Term entity is in $build['#term'] not $build['#entity']. 2019-07-11 13:36:12 -04:00
Michael Stenta
f37d7e7343 Fix implicit join between {taxonomy_term_data} and {farm_plan_area}. Table name is different than entity type machine name. 2019-07-11 13:35:22 -04:00
Michael Stenta
7028128655 Add a generic form for removing a record from a plan, and optionally deleting it. 2019-07-11 13:28:31 -04:00
Michael Stenta
9f9fd1d5a6 Refactor farm_plan_consideration_farm_constraint() to include information about considerations that reference entities. 2019-07-10 10:08:19 -04:00
Michael Stenta
90a3185431 Return farm_constraint_table_references() in farm_plan_farm_constraint(). 2019-07-10 10:08:19 -04:00
Michael Stenta
23227c0685 Split farm_constraint_table_references() out of farm_constraint_table_references_exist() and refactor to include information about matching records. 2019-07-10 10:08:19 -04:00
Michael Stenta
600e32519e Refactor farm_constraint_farm_constraint() to include information about field references and term children. 2019-07-10 10:08:19 -04:00
Michael Stenta
b76bd94821 Encourage implementations of hook_farm_constraint() to include more information. 2019-07-10 10:08:19 -04:00
Michael Stenta
d4fa850f25 Add @todo to provide better API constraint feedback. 2019-07-10 10:08:19 -04:00
Michael Stenta
64772671f2 Break farm_constraint_list() out of farm_constraint_exists(). 2019-07-10 10:08:19 -04:00
Michael Stenta
518e74aca3 Add missing $bundle parameter to farm_constraint_exists() docblock. 2019-07-10 10:08:19 -04:00
Michael Stenta
2d5b5eb28d Do not limit constraint field reference search. 2019-07-10 10:08:19 -04:00
Michael Stenta
766454b0b7 Split animal weight code to farm_livestock_weight. 2019-07-09 14:04:42 -04:00
Michael Stenta
71cc3c3508 Add a link to the farmOS forum on /farm/help. 2019-07-04 00:09:22 -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
bcc0a55039 Be more explicit with $type parameter docblock in log query functions. 2019-06-26 14:28:21 -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
6490848025 When deleting a plan, display a list of records that will be unlinked. 2019-06-19 15:50:39 -04:00
Michael Stenta
ecf2d56ab9 Clean up plan/record relationships when entities are deleted. 2019-06-19 15:50:39 -04:00
Michael Stenta
72d1f50f6d Use entity_id() instead of entity_extract_ids(). 2019-06-19 14:15:40 -04:00
Michael Stenta
67de799b8c Fix path to plan in linked entity message. 2019-06-19 14:15:40 -04:00
Michael Stenta
eeb1d84639 Display message on entities: "this is part of plan X" 2019-06-05 10:00:00 -04:00
Michael Stenta
55718d104a Add a helper function for updating a log quantity measurement value based on its label. 2019-05-30 11:17:22 -04:00
Michael Stenta
4911902fd0 Display a View of logs associated with the plan on the plan entity view page. 2019-05-30 11:15:01 -04:00
Michael Stenta
1ca5db54c6 Add a View of logs associated with a plan. 2019-05-30 11:15:01 -04:00
Michael Stenta
1f083bfcc0 Describe relationships between plans and other record types to Views. 2019-05-30 11:15:01 -04:00
Michael Stenta
94291e4b92 Fix current location field maxlength is too short #175 2019-05-28 12:39:14 -04:00
Michael Stenta
ae578b2a9c Fix PHP Warning: A non-numeric value encountered in farm_area_calculate_area_multiple(). 2019-05-27 16:49:32 -04:00
Skipper-is
ca1d2c5919 Specify $conversion array key
Specified the $conversion array's key.
2019-05-25 10:07:05 +01:00
Michael Stenta
fba4868434 Add help text to views of plantings, seedings, and transplantings describing their differences. 2019-05-08 15:42:32 -04:00
Michael Stenta
f4413324c7 Add a function for loading a list of record IDs associated with a plan. 2019-05-08 13:12:15 -04:00
Michael Stenta
6d4b22309e Update farm_plan_link_record() and farm_plan_unlink_record() docblocks to reference farm_plan_record_relationships(). 2019-05-08 13:12:15 -04:00
Michael Stenta
49e8a2eec2 Add "Quantity" translatable to sale and purchase Views. 2019-05-01 11:01:42 -04:00
Michael Stenta
ebb67f72f8 Allow linking Sale and Purchase logs to Areas. 2019-05-01 11:01:35 -04:00
Michael Stenta
5fca7fc32a Use farm_plan_record_relationships() in farm_plan_plan_constraint(). 2019-04-30 15:23:36 -04:00
Michael Stenta
0c9f869526 Add functions for linking/unlinking plans with other records. 2019-04-30 15:23:36 -04:00
Michael Stenta
c257e286a9 Implement hook_farm_constraint() to prevent deletion of records linked to plans. 2019-04-30 15:19:10 -04:00
Michael Stenta
660ad0c142 Add a helper function for checking to see if an entity reference exists in a database table. 2019-04-30 15:19:10 -04:00
Michael Stenta
37270ec25c Add new database schemas for maintaining links between plans and other farmOS records (areas, assets, logs, and people). 2019-04-30 11:01:49 -04:00
Michael Stenta
cd5d51541c Revert "Default to showing "any" logs in quantity report View (done and not done)."
This reverts commit f327a8997d.
2019-04-30 10:33:14 -04:00
Michael Stenta
f327a8997d Default to showing "any" logs in quantity report View (done and not done). 2019-04-30 10:17:09 -04:00
Michael Stenta
beb14d984c Issue #3043569: API field aliasing overrides existing fields 2019-04-24 17:13:53 -04:00
Michael Stenta
65b58591da Display all results in sensor data CSV export. 2019-04-23 17:48:33 -04:00
Michael Stenta
e4f9f5764b Add equipment use logs to equipment page. 2019-04-18 16:23:34 -04:00
Michael Stenta
a3b86164ed View of Equipment use logs, with an required contextual filter for the equipment asset. 2019-04-18 16:23:34 -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
dcc8ea8ffd Remove extraneous argument from farm_api_farm_info(). 2019-04-15 12:49:09 -04:00
Michael Stenta
42d284330d Minor comment fix. 2019-04-12 14:42:17 -04:00
Michael Stenta
294292511a Fix error submitting soil amendment quick form (inputs accept multiple materials). 2019-04-12 14:41:47 -04:00
Michael Stenta
7457cd8261 Show farm_asset_entityreference_view header with no results. 2019-04-11 00:00:39 -04:00
Michael Stenta
68b540cf61 Add a farm_equipment_entityreference_view. 2019-04-11 00:00:39 -04:00
Michael Stenta
5c89340268 Adjust field group weights for consistency. 2019-04-11 00:00:39 -04:00
Michael Stenta
5083faa63d Create an Equipment field group for the Equipment used field. 2019-04-11 00:00:39 -04:00
Michael Stenta
d1bd600d4b remove features 2019-04-11 00:00:39 -04:00
Michael Stenta
611de73ee0 Refactor farm_equipment_field to use farm_dynamic_fields. 2019-04-11 00:00:39 -04:00
Michael Stenta
d5324e9222 Move "Equipment used" field to its own module: farm_equipment_field. 2019-04-11 00:00:39 -04:00
Michael Stenta
e561c22497 Alter field_group info to add the "Equipment used" field to Assets/General group. 2019-04-11 00:00:39 -04:00
Michael Stenta
edb67fb77a Add "equipment used" field to logs on existing sites. 2019-04-11 00:00:39 -04:00
Michael Stenta
e33e152f7a Add "Equipment used" field instance to all log types. 2019-04-11 00:00:39 -04:00
Michael Stenta
04e65772a3 Add a field_farm_equipment field base definition. 2019-04-11 00:00:39 -04:00
Michael Stenta
b0cac436a4 Move implementations of hook_form_FORM_ID_alter() to farm_data_field.module. 2019-04-10 23:59:19 -04:00
Michael Stenta
d53d67d047 Use farm_fields_dynamic to create the data field (in a new module). 2019-04-10 15:16:39 -04:00
Michael Stenta
749ac0458f Add a new farm_fields_dynamic module to standardize the creation of dynamic fields. 2019-04-10 15:09:43 -04:00
Michael Stenta
c49cc37173 Remove "Quantity" label from Views definitions (Features were overridden with it). 2019-04-10 12:29:02 -04:00
Michael Stenta
32c9ad9290 Add data field to assets. 2019-04-09 14:38:56 -04:00
Michael Stenta
8a2ed36d3b Hide the data field in log forms. 2019-04-09 14:38:56 -04:00
Michael Stenta
ab871b8d2b Add data field instances via update.php. 2019-04-09 14:38:56 -04:00
Michael Stenta
5d60859e1b Add data field instance to all log types. 2019-04-09 14:38:56 -04:00
Michael Stenta
9961334fe7 Add a field_farm_data field base definition. 2019-04-09 14:38:56 -04:00
Michael Stenta
5fab821aa3 Add timestamp to log name patterns. 2019-04-09 14:38:55 -04:00
Michael Stenta
66c926f37b Fix sensor Views Features export. 2019-04-09 14:38:55 -04:00
Michael Stenta
97e5022ff7 Add label to location and assets properties to fix PHP notice. 2019-04-09 14:35:52 -04:00
Michael Stenta
ec94f32f7d Add "rate" to the list of quantity measures. 2019-04-08 15:49:27 -04:00
Michael Stenta
f469e6d607 Add vocabulary ID to taxonomy_term resource bundles in farm.json (instead of duplicating as taxonomy_vocabulary resource). 2019-04-08 14:00:43 -04:00
Michael Stenta
ec02c334e0 Describe missing taxonomies with hook_farm_ui_entities(): log categories, input materials, quantity units, season, and soil names. 2019-04-08 13:59:41 -04:00
Michael Stenta
bbd45fe0a1 Issue #3043560: Add a computed assets property to areas. 2019-04-01 15:56:53 -04:00
Michael Stenta
886de46530 Add functions for getting the list of assets in an area (cloned from group membership functions). 2019-04-01 15:56:53 -04:00
Michael Stenta
4af676cc8b farm_group depends on farm_log. 2019-04-01 15:56:53 -04:00
Michael Stenta
7b506bc536 Add query tags in query helper functions. 2019-04-01 15:56:53 -04:00
Michael Stenta
218a048709 Issue #3043560: Add location property to assets 2019-04-01 15:56:53 -04:00
Michael Stenta
01f2da224e Bump the FARM_API_VERSION to 1.1. 2019-04-01 15:56:53 -04:00
Michael Stenta
eb1cf2d826 Describe the available resources (entity types) in /farm.json. 2019-04-01 15:56:53 -04:00
Michael Stenta
686a5c96cf Invoke hook_farm_info() to collect info for /farm.json. 2019-04-01 15:56:53 -04:00
Michael Stenta
bd0d8006c7 hook_farm_map_entity_geometries docblock. 2019-04-01 15:56:53 -04:00
Michael Stenta
29b7ad3fd3 Add a @todo to move farm_ui_entities() to farm_entity_info(). 2019-04-01 15:56:17 -04:00
Michael Stenta
130b9301a5 Add metrics for total number of areas, and total area of certain area types. 2019-04-01 15:56:17 -04:00