mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
add export customer payment control
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user