Commit Graph

7 Commits

Author SHA1 Message Date
1bb830f21c Revert to stable JSON processing with improved logging
Reverted to commit 8324a26 which used:
- nfJsonRead() for JSON deserialization
- MergeProducts/MergeOrdersArray for object-based merging
- nfJsonCreate() for JSON serialization
- SaveProductsArray/SaveOrdersArray procedures

Added improvements:
- Structured logging with timestamps and levels
- Output directory creation
- Statistics tracking (gnProductsProcessed/gnOrdersProcessed)
- CloseLog with duration and count summary

This version should correctly save all 812 products and 399 orders.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-27 17:24:18 +03:00
6f362f41e7 Backup: JSON optimization attempt with direct string merge
This version attempted to optimize JSON processing by:
- Direct string concatenation without deserialization
- MergeProductsJsonDirect and MergeOrdersJsonDirect functions
- Direct STRTOFILE instead of nfJsonCreate

Issues found:
- Only 100 products saved instead of 812 (merge failed)
- Invalid JSON syntax in orders: 'discounts':[,
- Pattern matching errors for GoMag API structure

Reverting to stable version 8324a26 next.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-27 17:22:05 +03:00
fd48ca480b Fix orders counting bug and improve logging
- Fixed incorrect order count in logging (counted JSON properties instead of actual orders)
- Added proper array declaration for AMEMBERS() function
- Added comprehensive logging system with timestamps and levels
- Added silent operation mode (removed SET STEP ON)
- Added output directory creation
- Enhanced error handling with proper logging instead of file dumps
- Added statistics tracking for products and orders processed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-27 16:26:21 +03:00
8324a26705 comenzi 2025-08-27 15:15:59 +03:00
6a841e3cc0 gitignore foxpro 2025-08-26 23:43:22 +03:00
Marius
5b9ec542cc commit initial
testare api gomag vending master
2025-08-26 23:01:45 +03:00
Marius
b7e7a20d99 Initial commit 2025-08-26 22:59:58 +03:00