mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 13:31:56 +00:00
add export excel and pdf report penjualan
This commit is contained in:
@@ -246,6 +246,16 @@ func (c *RepportController) GetMarketing(ctx *fiber.Ctx) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if isMarketingExcelExportRequest(ctx) {
|
||||
return exportMarketingReportExcel(ctx, result)
|
||||
}
|
||||
|
||||
if isMarketingPdfExportRequest(ctx) {
|
||||
meta := buildMarketingPdfMeta(query.StartDate, query.EndDate)
|
||||
return exportMarketingReportPdf(ctx, result, meta)
|
||||
}
|
||||
|
||||
total := dto.ToSummaryFromDTOItems(result)
|
||||
|
||||
return ctx.Status(fiber.StatusOK).
|
||||
|
||||
Reference in New Issue
Block a user