Files
Ai/TrafagSalesExporter
Claude fa4e3c2ffc Split ManagementCockpitService god class into focused analyzers
Extract the three independent responsibilities of the 1120-line
ManagementCockpitService into dedicated classes: ExcelCockpitAnalyzer
(file-based cockpit), CentralCockpitAnalyzer (central database cockpit)
and FinanceSummaryAnalyzer (finance summary), with shared currency
conversion and value-field logic in CockpitValueAggregator.

ManagementCockpitService becomes a thin facade that preserves the
IManagementCockpitService contract and both constructors, so no callers,
DI registrations or tests need to change. Pure code move, no behaviour
change.

https://claude.ai/code/session_01Q8k7LD7JG8oMReySL3Ckhc
2026-05-21 20:09:30 +00:00
..
2026-04-13 14:37:21 +02:00
2026-05-20 15:50:59 +02:00
2026-05-19 15:31:27 +02:00
2026-05-07 14:09:32 +02:00
2026-05-18 20:57:22 +02:00
2026-04-17 07:08:04 +02:00
2026-04-17 07:08:04 +02:00
2026-04-17 12:00:03 +02:00
2026-04-17 07:08:04 +02:00
2026-04-17 12:00:03 +02:00
2026-05-15 11:55:40 +02:00
2026-05-07 14:09:32 +02:00
2026-04-13 14:14:06 +02:00

Sage SQL CSV export

===================
 
Server instance: localhost

Database filter: (all accessible user databases)

From date: 2025-01-01

To date: 2026-01-01
 
Files:

- candidate_objects.csv: SQL tables/views that look relevant for sales/invoices.

- export_summary.csv: export status and row counts.

- *.csv: exported samples or selected full exports.
 
Recommended workflow:

1. Run discovery first:

   .\Export-SageSqlCsv.ps1 -DiscoverOnly

2. Send candidate_objects.csv to Trafag/IT for selection.

3. Export selected objects:

   .\Export-SageSqlCsv.ps1 -Database "DATABASE_NAME" -ObjectName "schema.table_or_view"

4. If the selected object is very large, add:

   -FromDate "2025-01-01" -ToDate "2026-01-01" -MaxRowsPerObject 100000
 
The script only reads data. It does not change SQL Server or Sage.