Commit Graph

514 Commits

Author SHA1 Message Date
PhilRunninger 86225ea7e5 Get pounds to update for each forecast adjustment.
Lots of cleanup here too, removing large swaths of code that are no
longer needed. Many improvements the Excel workbook, which is kept in
Teams, not git. These changes may or may not have had accompanying VBA
changes.
2023-04-27 16:54:37 -04:00
PhilRunninger fde6c97964 Too many changes, too few commits.
A lot has changed here, including:
1. Adding pounds to the data available for display in pivot table.
2. Visual improvements
3. Code simplification
4. Hiding / showing sheets as needed. A developer's backdoor allows for
   easy toggling for debugging purposes: Ctrl+RightClick on the Forecast
   Adjustment form's "Selected Scenario" label.
5. Fixed a bug that happened when deleting rows from the basket. The
   definition of the Target variable was lost in some cases.
6. Made use of the Cancel and Default form properties to purge some
   unnecessary code.
7. Added a sheet that contains Help text for the users.
8. Replacing more harcoded range reference with range names.
9. Refactor checks for division by zero errors, and improve error
   messages for users.
10. Remove manual formatting. It's already done and saved in the
    workbook; there's no need to redo it in code.
11. Added more data validation before Save operation proceeds.
12. Added a new IntersectsWith function to simplify If statements.
2023-04-24 21:46:13 -04:00
PhilRunninger 81174b5d57 UI and UX Changes
1. Remove/Hide Swap Part
2. Remove/Hide Swap Customer
3. Improved the location of controls on fpvt form.
4. Make user experience more intuitive on the Month sheet
5. Make more and better use of named ranges in place of hardcoded cell
   locations.
6. Added error checking to ensure Tag is entered and at least one month
   has a forecast on Month sheet.
2023-04-05 17:51:50 -04:00
Paul Trowbridge 12c17b0be6 adjust rep source to rlarp.repc, adjust join logic to match current osm definition 2023-04-05 13:02:53 -04:00
PhilRunninger 480adef789 Update some 2022 references to 2024, and fix round() function calls. 2023-04-05 12:37:35 -04:00
PhilRunninger bbac2ec390 Remove the code from the Walk sheet. Actually, just comment it out. 2023-03-22 12:05:36 -04:00
PhilRunninger 85829efd1d Clean up the VBA. This coincides with version 10.0 in Teams.
WARNING!  Do not assume the Excel file in this repo matches the VBA in
the repo. The decision was made to use Teams for managing changes to the
Excel tamplate because Git is ill-suited for binary files. The Excel
file will be updated from time to time, but only when something major
happens with the application as a whole.

1. Use the sheets' codenames to refer to them in code. This prevents
   breakage if the user changes the sheet name while working with the
   workbook.
2. Give the pivot tables proper, if not descriptive, names.
3. Simplify the code that detects a double-click in the pivot table.
4. Remove Windows_API as it was not being used.
5. Pare down TheBigOne to just the essential functions in Utils.
6. Refer to the data sources for the userforms' listboxes by using the
   worksheet.ListObjects collection.
2023-03-09 10:32:58 -05:00
Paul Trowbridge ef8a21d319 update rebuild script 2023-03-08 08:48:02 -05:00
Paul Trowbridge cc656d7c24 increment dates 2023-03-07 17:32:45 -05:00
Paul Trowbridge 5e7ad3b208 swap everything for a 2109 baseline 2023-03-07 16:45:55 -05:00
Paul Trowbridge 15da8aecd4 reports 2023-03-07 16:07:55 -05:00
Paul Trowbridge 6f88ed618d include all foreast since the piece labeled actuals actually forms a current year forecast 2023-03-07 15:44:25 -05:00
Paul Trowbridge d79feebaa5 dont load anything to staged forecast that has "actuals" in it 2023-03-07 15:27:33 -05:00
Paul Trowbridge 0ae9f604c1 change version to b23 2023-03-07 12:39:30 -05:00
Paul Trowbridge a0c5482f6c update convert pool to target osmfs in its current state 2023-03-07 11:44:22 -05:00
Paul Trowbridge ef0c9175cd increment years and target iterations 2023-03-06 09:38:57 -05:00
Paul Trowbridge 304aeababa include Phils new modules 2023-03-03 17:07:28 -05:00
Paul Trowbridge 2c63d400f7 save my version that was on teams as 1.7 2023-03-03 14:32:10 -05:00
Paul Trowbridge 98ed8c52dc export VBA files for version 1.7 on teams 2023-03-03 14:29:04 -05:00
PhilRunninger 8809cb9ad4 Added PrintJSON function for debugging the JSON object variables. 2023-03-03 14:16:59 -05:00
PhilRunninger bd8aa18208 Merge branch 'dev' of github.com:The-HC-Companies/forecast_api into dev 2023-03-01 18:00:18 -05:00
PhilRunninger bfcf8ff4b4 Keeping the workbook in sync with other code. 2023-03-01 17:56:36 -05:00
PhilRunninger ed5975daf7 Switch source table from rlarp.itemmv to "CMS.CUSLG".itemm 2023-03-01 17:55:30 -05:00
PhilRunninger 59cb926d9c Make the log statements unique for each route. 2023-03-01 17:51:01 -05:00
Paul Trowbridge 5dc5a11489 increment year 2023-03-01 17:07:44 -05:00
Paul Trowbridge fd4079cb17 clean up 2023-03-01 16:32:52 -05:00
Paul Trowbridge e5db7372a1 repoint snaps 2023-03-01 16:07:36 -05:00
Paul Trowbridge 7d901e7f42 new forecast baseline dates 2023-03-01 16:01:32 -05:00
PhilRunninger bc9aa4a456 Merge branch 'new_parser' into dev 2023-02-28 15:10:21 -05:00
PhilRunninger 3b72871cc6 Renamed the pivot tables, and simplified some code.
I made the "did I double click in the pivot table?" code work more
efficiently.
2023-02-28 15:05:54 -05:00
PhilRunninger 8ba18476d8 Include new JSON parser for evaluation. Is it better? 2023-02-27 16:26:12 -05:00
PhilRunninger 5b507d3d65 Updates to the newest season in scenario_package.sql 2023-02-27 16:15:35 -05:00
Paul Trowbridge 68aa1c219a updates 2023-02-24 19:28:14 -05:00
PhilRunninger 21e72a42cc Update the Excel workbook to the latest version from Teams. 2023-02-22 14:24:39 -05:00
PhilRunninger 70392a6829 Renamed the Excel file. 2023-02-22 14:23:59 -05:00
PhilRunninger d7d2447be2 Merge branch 'dev' of github.com:The-HC-Companies/forecast_api into dev 2023-02-17 14:24:00 -05:00
PhilRunninger e1359714cc Upgrade packages for use in node version 19.5.0. 2023-02-17 14:22:05 -05:00
Paul Trowbridge e73d69ad65 include pool ddl 2023-02-15 14:21:49 -05:00
Paul Trowbridge a66ec61aaf increment iteration name to reflect period 2021-08-03 13:33:37 -04:00
Paul Trowbridge 2253d65047 group by percentage of row to keep, and filter out -0- 2021-08-03 08:26:05 -04:00
Paul Trowbridge 752aeffa06 add notes and create an adjustment based on a percentage for lines where not all is pullforward 2021-08-02 15:46:43 -04:00
Paul Trowbridge fc8f9592b8 incrememnt periods 2021-08-02 15:45:27 -04:00
Paul Trowbridge b0234c2f89 Merge branch 'dev' 2021-07-30 08:16:07 -04:00
Paul Trowbridge b2147b0a02 increment snapshot period 2021-07-30 08:15:48 -04:00
Paul Trowbridge ed1cd2b074 change iterations in monthly adjustments 2021-07-30 12:13:34 +00:00
Paul Trowbridge c48e52f95c add a floor date to prevent adjusting actual history based on the supplied timestamp 2021-07-16 10:20:32 -04:00
Paul Trowbridge 28c14ece67 include plan and diff ase baseline iterations 2021-07-16 09:40:34 -04:00
Paul Trowbridge f8bf1518f9 exclude the 'actual' iteration from the output forecast since it only exists for the benefit of osm_pool review 2021-07-15 16:53:48 -04:00
Paul Trowbridge b831dfc35e incraease range and modify pull-forward logic to operate off an explicit overlap period 2021-07-15 16:53:21 -04:00
Paul Trowbridge be9ca7b848 ignore new dbeaver folder 2021-07-14 15:47:22 -04:00