Commit Graph

266 Commits

Author SHA1 Message Date
d57239c40c Finish up import script incremental and reliability updates 2025-01-31 16:01:21 -05:00
1c932e0df5 More import script updates and fixes, better import_history tracking 2025-01-31 13:12:43 -05:00
a867117c3c Import script incremental fixes 2025-01-31 11:12:38 -05:00
996d3d36af Streamline incremental imports 2025-01-31 10:01:50 -05:00
d0abe9d9a2 - Modify import scripts to handle edge cases with empty arrays and null conditions
- Improve parameter handling in incremental update queries for purchase orders and products
2025-01-31 01:50:21 -05:00
5e4d1c3bd8 Improve import scripts with enhanced incremental update tracking and performance
- Add record tracking for added and updated records in import scripts
- Modify products import to use a dynamic 'needs_update' flag for selective updates
- Enhance order import with more comprehensive timestamp checks
- Update import-from-prod.js to handle and clean up previously running imports
- Improve error handling and connection management in import processes
2025-01-31 01:39:48 -05:00
1be97d6610 Enhance purchase order import with advanced receiving tracking and fulfillment logic
- Implement FIFO-based receiving fulfillment tracking
- Add detailed receiving history with excess and partial fulfillment support
- Improve vendor name resolution and fallback handling
- Optimize incremental update queries by removing redundant conditions
- Enhance receiving status calculation with more granular tracking
2025-01-31 01:25:48 -05:00
b506f89dd7 Optimize order and product import scripts with improved performance and incremental update handling
- Refactor orders import to use temporary tables for more efficient data processing
- Improve batch processing and memory management in order import script
- Update product import to use temporary tables for inventory status
- Modify purchase orders import to use updated timestamp for incremental updates
- Enhance error handling and logging for import processes
2025-01-30 21:13:53 -05:00
c433f1aae8 Enhance import scripts with incremental update support and improved error handling
- Update import-from-prod.js to support granular incremental updates for different import types
- Modify orders.js to handle complex order data retrieval with better performance and error tracking
- Add support for incremental updates in products.js import function
- Improve logging and progress tracking for import processes
2025-01-30 15:49:47 -05:00
31d4011902 Add back product-category import and product time estimates 2025-01-30 00:00:30 -05:00
6c5f119ee5 Import fixes/optimizations 2025-01-29 21:48:56 -05:00
3c5fb9e435 Optimize product import with dynamic batching and memory management 2025-01-29 19:14:58 -05:00
2b329a55a4 Increase product import batch size 2025-01-29 18:51:55 -05:00
0d377466aa Optimize database import queries with improved index selection 2025-01-29 18:42:29 -05:00
fb5bf4a144 Optimize order import with improved tax info retrieval and performance 2025-01-29 18:21:31 -05:00
4d8a677c5b Remove import history tracking from purchase orders import script 2025-01-29 16:33:37 -05:00
655c071960 Limit order and purchase order imports to last 5 years 2025-01-29 16:25:24 -05:00
d2a2dbc812 Add incremental import support and tracking for database synchronization 2025-01-29 16:22:00 -05:00
d60b2d4fae Refactor import scripts with improved progress tracking and time formatting 2025-01-29 13:49:59 -05:00
81a724db9d Fix elapsed time calculation in import scripts 2025-01-29 13:40:01 -05:00
84baa7e7d3 Break up prod import script into pieces and move csv scripts into folder 2025-01-29 13:28:15 -05:00
814d5d1a84 Break up prod import script into pieces and move csv scripts into folder 2025-01-29 00:18:04 -05:00
b578549763 Remove CSV scripts from frontend 2025-01-29 00:04:47 -05:00
d56f1e1437 Move sales seasonality table to config schema and finish up standardizing scripts 2025-01-28 23:57:09 -05:00
ebebd37f11 Improve metrics reset script with robust table management and error handling 2025-01-28 22:12:24 -05:00
9c34e24909 Enhance metrics calculation scripts with improved progress tracking and cancellation support 2025-01-28 20:54:05 -05:00
a1e3803ca3 Clean up linter errors 2025-01-28 20:32:08 -05:00
a661b6a11e Misc frontend fixes 2025-01-28 20:30:26 -05:00
1410dc5571 Frontend fixes - categories, deal with new hierarchy, misc fixes 2025-01-28 17:02:11 -05:00
b1f252bea8 Frontend fixes - dashboard, products, forecasting 2025-01-28 14:26:44 -05:00
7e341a152c Update frontend to match part 4 - dashboard 2025-01-28 13:57:44 -05:00
25a0bc8d4c Update frontend to match part 3 2025-01-28 13:40:28 -05:00
57b0e9a120 Update frontend to match part 2 2025-01-28 01:43:45 -05:00
64d9ab2f83 Update frontend to match part 1 2025-01-28 01:30:48 -05:00
8323ae7703 Optimize and fix calculate scripts 2025-01-27 13:16:21 -05:00
5781b45f37 Update calculate script to account for import changes 2025-01-27 10:41:18 -05:00
44d9ae2aad Fix imports on calculate scripts 2025-01-26 23:42:38 -05:00
ff1de4a37d Track import time 2025-01-26 23:39:01 -05:00
7c7c27a71c Sync up POs with receivings, fix and optimize PO import, show total time 2025-01-26 22:31:32 -05:00
5cbc2152a1 Finish getting POs working 2025-01-26 17:34:46 -05:00
48f09095c4 Get orders working correctly 2025-01-26 16:52:53 -05:00
cdce12e9fb Get orders import started, get all needed products imported 2025-01-25 21:43:31 -05:00
b1a5671531 Get product_categories inserting and product import fully running 2025-01-25 17:32:09 -05:00
2d52d7a63e Get product import started 2025-01-25 15:44:52 -05:00
c1cf78973d Product import fixes, more category import fixes 2025-01-25 15:24:51 -05:00
1694562947 Fix category import 2025-01-25 14:11:38 -05:00
e1174b8e63 Add route and frontend button to run import from prod script 2025-01-25 10:01:39 -05:00
353ae4540e Update schemas with new fields, create initial import from prod script 2025-01-25 09:45:50 -05:00
31e1568868 Set up test prod db connection 2025-01-23 11:15:15 -05:00
85d7df45c5 Add acot schema 2025-01-22 13:15:12 -05:00