fde6c97964
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. |
||
---|---|---|
build | ||
inquirey | ||
offline | ||
route_sql | ||
VBA | ||
.env.sample | ||
.gitignore | ||
columns.md | ||
create_certs.sh | ||
forecast_api.service | ||
index.js | ||
LICENSE | ||
Master Template.xlsm | ||
msauth.html | ||
package-lock.json | ||
package.json | ||
README.md | ||
sample_request.json |
This will not work without exactly the right database schema which is out of scope. this is only the running process part of the forecast.
Setup
- git clone (to //opt for verbatim use of the .service file)
npm install
- create certs:
chmod 700 create_certs.sh
,./create_certs.sh
- clone sample env
cp .env.sample .env
and specify 1) database creds 2) working directory 3) listening port - run:
node index.js
- navigate to
https://localhost:8080/
to valide it's connectable - open the spreadsheet and specify the target connection
additionally, to setup as service
- copy .service file to //etc/systemd/system/ (adjust user/working direct if needed)
sudo systemctl enable forecast_api.service
Initial Forecast
- all SQL depends on unchanged core sales matrix table schema