add excel export for purchase supplier report

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
ValdiANS
2026-05-25 11:25:53 +07:00
parent 8750e2ffec
commit 65a1282312
2 changed files with 422 additions and 0 deletions
@@ -324,6 +324,13 @@ func (c *RepportController) GetPurchaseSupplier(ctx *fiber.Ctx) error {
return err
}
if isPurchaseSupplierExcelExportRequest(ctx) {
return exportPurchaseSupplierExcel(ctx, result)
}
if isPurchaseSupplierExcelAllExportRequest(ctx) {
return exportPurchaseSupplierExcelAll(ctx, result)
}
filters := map[string]interface{}{
"area_id": query.AreaIDs,
"supplier_id": query.SupplierIDs,