diff --git a/src/NTP.Api/Controllers/V1/Refinery/WageClaimsController.cs b/src/NTP.Api/Controllers/V1/Refinery/WageClaimsController.cs
index 8b51c59..9a906f9 100644
--- a/src/NTP.Api/Controllers/V1/Refinery/WageClaimsController.cs
+++ b/src/NTP.Api/Controllers/V1/Refinery/WageClaimsController.cs
@@ -82,6 +82,15 @@ public sealed class WageClaimsController(IWageClaimService claims) : ControllerB
return File(f.Content, f.ContentType, f.FileName);
}
+ /// تقرير الملخص: one row of totals of the claim (legacy createCFRReport).
+ [HttpGet("{id:long}/export-summary")]
+ [RequirePermission(PermissionKeys.RefineryWageClaimsReport)]
+ public async Task ExportSummary(long id, CancellationToken ct)
+ {
+ var f = await claims.ExportSummaryAsync(id, ct);
+ return File(f.Content, f.ContentType, f.FileName);
+ }
+
private static IReadOnlyList Split(string? s) =>
(s ?? "").Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries);
}
diff --git a/src/NTP.Application/Refinery/Trips/LegacyReportWorkbook.cs b/src/NTP.Application/Refinery/Trips/LegacyReportWorkbook.cs
index 0ef6641..9c903af 100644
--- a/src/NTP.Application/Refinery/Trips/LegacyReportWorkbook.cs
+++ b/src/NTP.Application/Refinery/Trips/LegacyReportWorkbook.cs
@@ -32,6 +32,20 @@ public sealed record TransfersReport(
IReadOnlyList WidthsChars,
IReadOnlyList> Rows);
+///
+/// The legacy one-row summary of a wage claim (refinerytripsxls.cfr): company and title banner, a navy row with three facts (claim number,
+/// tender, month) merged over A:E, F:L and M:O, the column captions and one row of totals. are in characters.
+///
+public sealed record SummaryReport(
+ string CompanyName,
+ string Title,
+ string Left,
+ string Middle,
+ string Right,
+ IReadOnlyList Headers,
+ IReadOnlyList WidthsChars,
+ IReadOnlyList