add export excel from api

This commit is contained in:
giovanni
2026-04-22 22:50:20 +07:00
parent ff630a1ed0
commit 3e99caf3a7
5 changed files with 946 additions and 0 deletions
@@ -17,6 +17,7 @@ type RepportExpenseBaseDTO struct {
ReferenceNumber string `json:"reference_number"`
PoNumber string `json:"po_number"`
Category string `json:"category"`
Notes string `json:"notes"`
Supplier *supplierDTO.SupplierRelationDTO `json:"supplier,omitempty"`
RealizationDate *time.Time `json:"realization_date,omitempty"`
TransactionDate time.Time `json:"transaction_date"`
@@ -74,6 +75,7 @@ func ToRepportExpenseBaseDTO(e *entity.Expense) RepportExpenseBaseDTO {
ReferenceNumber: e.ReferenceNumber,
PoNumber: e.PoNumber,
Category: e.Category,
Notes: e.Notes,
Supplier: supplier,
RealizationDate: realizationDate,
TransactionDate: e.TransactionDate,