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

926 commits

Author SHA1 Message Date
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