Files
gomag-vending/api
Marius Mutu 7a50d2156a Change ROA settings defaults to NULL and remove obsolete script
Changes:
1. Update settings.ini.example with [ROA] section using NULL defaults
2. Modify ApplicationSetup.prg to handle NULL values properly:
   - CreateDefaultIni writes "NULL" string to INI file
   - LoadSettings converts "NULL" string to VFP .NULL. value
3. Update Oracle package defaults from (0, 1, 2) to (NULL, NULL, NULL):
   - p_id_pol DEFAULT NULL
   - p_id_gestiune DEFAULT NULL
   - p_id_sectie DEFAULT NULL
4. Remove obsolete 02_import_parteneri.sql (replaced by 05_pack_import_parteneri.pck)
5. Update local settings.ini with NULL values

Rationale:
- NULL is semantically correct (no policy/gestiune/sectie specified)
- Previous defaults (0, 1, 2) were invalid IDs in ROA system
- Maintains backward compatibility through Oracle DEFAULT NULL

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-20 00:02:50 +02:00
..

API Directory - Phase 1 Complete

Core Files

🎛️ admin.py

Purpose: Flask web admin interface pentru mapări SKU

  • Oracle connection pool management
  • CRUD operations pentru ARTICOLE_TERTI
  • Web interface pentru configurare mapări
  • Port: 5000 (configurable)

🧪 tests/

Purpose: Directory cu toate testele și utilitățile validation

  • final_validation.py - Ultimate P1-004 validation script
  • test_final_success.py - Complete end-to-end test
  • test_syntax.py - Package compilation checker
  • check_packages.py - Package status utility
  • check_table_structure.py - Schema validation utility
  • README.md - Documentation pentru toate testele

Configuration Files

📁 database-scripts/

  • 01_create_table.sql - ARTICOLE_TERTI table
  • 02_import_parteneri.sql - PACK_IMPORT_PARTENERI package
  • 04_import_comenzi.sql - PACK_IMPORT_COMENZI package

🐳 docker-compose.yaml

Oracle container orchestration

🔧 .env

Environment variables pentru MARIUSM_AUTO schema

📋 requirements.txt

Python dependencies (oracledb, flask, etc.)


Phase 1 Status: 100% COMPLETE Ready for: Phase 2 VFP Integration Cleanup Date: 10 septembrie 2025, 12:57