add export customer payment control

This commit is contained in:
giovanni
2026-05-19 22:42:46 +07:00
parent 907b695526
commit c8623e2f7c
2 changed files with 592 additions and 0 deletions
@@ -485,6 +485,13 @@ func (c *RepportController) GetCustomerPayment(ctx *fiber.Ctx) error {
return err
}
if isCustomerPaymentExcelExportRequest(ctx) {
return exportCustomerPaymentExcel(ctx, result)
}
if isCustomerPaymentExcelAllExportRequest(ctx) {
return exportCustomerPaymentExcelAll(ctx, result)
}
// If single customer mode (only 1 customer ID), return without pagination
if len(customerIDs) == 1 {
return ctx.Status(fiber.StatusOK).