forecast_api/route_sql
PhilRunninger b171b4d7ac More refactoring. Code is much DRY-er.
I removed a bunch of duplication by:
1. Moving `if (!where)` logic into the build_where function - sending
   the "No body was sent." message back in the HTTP response object.
2. Putting all file read operations into a dedicated function -
   process_route. This takes a callback function that handles the
   remaining logic of each route after successfully reading the SQL
   file.
2023-08-29 11:52:55 -04:00
..
addmonth_vupd.sql Fix percent change calculation for price adjustment. 2023-05-17 10:04:46 -04:00
adj_totals.sql Update some 2022 references to 2024, and fix round() function calls. 2023-04-05 12:37:35 -04:00
get_pool.sql Add options to query by director or segment. Also speed it up A LOT. 2023-05-09 01:24:08 -04:00
list_changes.sql More refactoring. Code is much DRY-er. 2023-08-29 11:52:55 -04:00
new_basket.sql Handle the case where baseline is zero (units or value). 2023-05-17 05:28:21 -04:00
scale_pd.sql Fix percent change calculation for price adjustment. 2023-05-17 10:04:46 -04:00
scale_vd.sql Handle the case where baseline is zero (units or value). 2023-05-17 05:28:21 -04:00
scale_vupd_sales.sql Update some 2022 references to 2024, and fix round() function calls. 2023-04-05 12:37:35 -04:00
scale_vupd.sql Fix percent change calculation for price adjustment. 2023-05-17 10:04:46 -04:00
scenario_package.sql Get pounds to update for each forecast adjustment. 2023-04-27 16:54:37 -04:00
swap_cust.sql populate dsm when swapping customers, rework pool quate rep snap 2021-04-16 13:57:32 -04:00
swap_fit.sql Switch source table from rlarp.itemmv to "CMS.CUSLG".itemm 2023-03-01 17:55:30 -05:00
swap_post.sql Switch source table from rlarp.itemmv to "CMS.CUSLG".itemm 2023-03-01 17:55:30 -05:00
undo.sql Prevent accidental undo of initial baseline load. 2023-05-03 15:34:17 -04:00