Commit Graph

67 Commits

Author SHA1 Message Date
Michael Stenta bd429d45dd Whitespace, coding standards/conventions, etc. 2020-11-26 06:23:54 -05:00
Michael Stenta 5a0833aca7 Do not include markup or whitespace in translatable strings. 2020-11-26 06:23:54 -05:00
Michael Stenta e007fecc61 If only a single log was returned, wrap it in an array. 2020-11-26 06:23:54 -05:00
Michael Stenta 6631de0530 Remove $single= parameter name from function call. 2020-11-26 06:23:54 -05:00
Michael Stenta 06735fc3ce Improve "Daily liveweight gain" translation. Separate markup from string. Close P tag. 2020-11-26 06:23:54 -05:00
Michael Stenta 00695591d8 Do not sanitize log paths generated by url(). 2020-11-26 06:23:54 -05:00
paul121 2b8bdb8bd0 Whitespace and comments. 2020-11-26 06:23:54 -05:00
paul121 649d3bd847 Format animal name with htmlspecialchars(entity_label()). 2020-11-26 06:23:54 -05:00
paul121 fa371df938 Include average text where originally intended. 2020-11-26 06:23:54 -05:00
paul121 c2169a9678 Initialize log_weights array before checking logs. 2020-11-26 06:23:54 -05:00
paul121 c1e38ab4c8 Return dlwg markup text with farm_livestock_weight_dlwg. 2020-11-26 06:23:54 -05:00
paul121 4015d6c4ee Return logs with farm_livestock_weight_all and farm_livestock_weight_dlwg. 2020-11-26 06:23:54 -05:00
Skipper 47cbbde867 Added daily liveweight gain
Added function to calculate daily liveweight gain, and to get all weight records.
Added translation
Added farm_livestock_weight_all() function
2020-11-26 06:23:54 -05:00
Michael Stenta 8d6ece7fa4 Add explicit dependencies on modules that we are using functions from. 2020-07-30 14:57:01 -04:00
Michael Stenta 2f333eca67 Use htmlspecialchars(entity_label()) to format entity names. 2020-07-30 14:57:01 -04:00
paul121 a0c9a7ecbc Display message in place of table if no assets match filter criteria. 2020-07-30 14:57:01 -04:00
paul121 6b52f0f771 Add optional date of birth range filters. 2020-07-30 14:57:01 -04:00
paul121 4f5a380a8f Allow filtering assets by flag(s). 2020-07-30 14:57:01 -04:00
paul121 7b59f6d84f Allow more selective filtering of archived assets. 2020-07-30 14:57:01 -04:00
paul121 62a8c5f230 Display archive date with asset names. 2020-07-30 14:57:01 -04:00
Michael Stenta 3ef56dde35 Add description to animal weight action form. 2020-07-14 08:28:13 -04:00
paul121 4f5e1b655d Add spaces to table headers. 2020-06-01 10:02:27 -04:00
paul121 23be7573a0 Add archived label to archived animals in result table. 2020-06-01 10:02:27 -04:00
paul121 a94def9208 Add checkbox to include archived animals in weight report. 2020-06-01 10:02:27 -04:00
paul121 2c40b97b72 Display archived asset groups with archived label. 2020-06-01 10:02:27 -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 9b1a87dcbe Translate untranslated drupal_set_message() function calls. 2020-04-23 10:46:19 -04:00
Michael Stenta 31cfe1686e Fix Notice: Undefined variable: options in farm_livestock_weight_group_report_form() 2020-04-16 10:47:19 -04:00
Michael Stenta f731b378da Only include observation logs in livestock weight reports. #208 2019-10-10 12:40:21 -04:00
Paul Weidner 66f08494e2 Use the average weight calculated on the server in graphs. 2019-09-25 11:05:05 -04:00
Paul Weidner 61df12ed89 Add the average animal gain per day to group report 2019-09-25 11:05:05 -04:00
Paul Weidner f17c1c448a Rename Average Weight graph 2019-09-25 11:05:05 -04:00
Paul Weidner ced00f371f Display graphs of average animal weights in group reports 2019-09-25 11:05:05 -04:00
Paul Weidner 875c46bbc6 Update group report, display HTML table and CSV Export 2019-09-25 11:05:05 -04:00
Paul Weidner 8bc35866bb Update name of individual report method. 2019-09-25 11:05:05 -04:00
Michael Stenta e99011881c Move individual weight report access callback to main module file. 2019-09-25 11:05:05 -04:00
Paul Weidner 76ace07782 Improve header formatting of CSV 2019-09-25 11:05:05 -04:00
Paul Weidner 229630bf5a Change to use a while loop to walk through columns + logs 2019-09-25 11:05:05 -04:00
Paul Weidner 655daacec1 Collect log dates unique to each animal 2019-09-25 11:05:05 -04:00
Paul Weidner a49c727a56 Unset the default start date, change the date_year_range to -10:+1 2019-09-25 11:05:05 -04:00
Paul Weidner 37dacdb43e Change CSV format to one animal per line, columns specific to date 2019-09-25 11:05:05 -04:00
Michael Stenta d453bad45f Remove asset ID and make "Current weight" bold. 2019-09-25 11:05:05 -04:00
Michael Stenta 6ad3ac254d Float graph to the right of the weights table. 2019-09-25 11:05:05 -04:00
Michael Stenta 1f1f8105a4 Allow creating a report of groups that contain other asset types in addition to animals (but skip them). 2019-09-25 11:05:05 -04:00
Michael Stenta 5e0c4e7507 Fix farm_livestock_weight_report_access(). 2019-09-25 11:05:05 -04:00
Michael Stenta c44662ed6c Install the Farm Report module (dependency of Livestock Weight Report). 2019-09-25 11:05:05 -04:00
Michael Stenta c9a21f92e2 Add a default "Info" tab to /farm/reports. Make weight report a local task. 2019-09-25 11:05:05 -04:00
Michael Stenta a731896a5e Pass $end_date into farm_quantity_log_asset() as the timestamp upper bound. 2019-09-25 11:05:05 -04:00
Michael Stenta a1e802b8f8 Do not include parameter variables in function call. 2019-09-25 11:05:05 -04:00
Michael Stenta 0a34e87a6d Simplify start/end date default value code. 2019-09-25 11:05:05 -04:00