NTP_V2/db
Samer Salameh 4066151033 Refinery (المصفاة): port trips, wage claims, commission claims, wallets, variables and cards from AqabaTCS
New API slice under /api/v1/refinery (Dapper on the NAFITHTCS REFINERY_* tables), web screens under features/refinery,
Dinarak and Jopetrol gateways (off by default, secrets from env), remaining-balance recalculation after the ton price
correction, Excel reports (trips, operator, exchange, diesel, cards, bank). Access only through permission keys:
db/refinery-permissions.sql gives the 6 screens and all action keys to PTADM (SU always allowed).
Docs: docs/refinery-agent-brief.md, docs/refinery-db-objects.txt (legacy views and diesel functions), ENVIRONMENTS.md.
The REFINERY_OIL import job and the daily totals email job are not ported.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-19 16:41:19 +03:00
..
disabled-features.sql Grains finance: GNAC screens, invoice archive/activate, legacy Excel, invoice check 2026-11-12 16:41:53 +03:00
disp-permits-screen.sql DISP role: view tender-order permits of own company; permit edit dialog (trailer and driver only, validate on Enter) 2026-11-15 12:24:04 +03:00
events-report-performance.sql Grains: menu reorganisation, DB-driven permissions, form/grid polish 2026-11-12 11:18:04 +03:00
gnac-finance-screens.sql Grains finance: GNAC screens, invoice archive/activate, legacy Excel, invoice check 2026-11-12 16:41:53 +03:00
grains-jobs.sql Scheduled jobs: SU screen to start, stop and time the three legacy jobs 2026-11-17 17:15:24 +03:00
grains-screen-permissions.sql GTO reports, voice call action, SYSTEM_ERRORS logging, report fixes, collapsed menu logo 2026-11-17 11:28:14 +03:00
gto-reports.sql GTO reports, voice call action, SYSTEM_ERRORS logging, report fixes, collapsed menu logo 2026-11-17 11:28:14 +03:00
menu-reorganisation.sql Grains: menu reorganisation, DB-driven permissions, form/grid polish 2026-11-12 11:18:04 +03:00
permits-create-permission.sql Grains: menu reorganisation, DB-driven permissions, form/grid polish 2026-11-12 11:18:04 +03:00
refinery-permissions.sql Refinery (المصفاة): port trips, wage claims, commission claims, wallets, variables and cards from AqabaTCS 2026-11-19 16:41:19 +03:00
registry-create-permissions.sql Initial commit: NTP V2 (.NET 10 API + React web) with Dev, QA and Production environments 2026-11-11 11:56:48 +03:00
registry-export-permissions.sql Registry exports, ratios report as legacy Excel, RED_SEA distribution, UI fixes 2026-11-18 14:21:57 +03:00
role-co.sql Security hardening, time zone, voice call SOAP, registry fixes, CO role, remarks byte limit 2026-11-17 15:55:03 +03:00
sample-schema.sql Initial commit: NTP V2 (.NET 10 API + React web) with Dev, QA and Production environments 2026-11-11 11:56:48 +03:00