feat(BE):Rekapitulasi hutang supplier

This commit is contained in:
ragilap
2026-01-11 19:41:21 +07:00
parent d3c7d65bf5
commit 09f1b29359
12 changed files with 588 additions and 47 deletions
@@ -0,0 +1,37 @@
package dto
import (
areaDTO "gitlab.com/mbugroup/lti-api.git/internal/modules/master/areas/dto"
supplierDTO "gitlab.com/mbugroup/lti-api.git/internal/modules/master/suppliers/dto"
warehouseDTO "gitlab.com/mbugroup/lti-api.git/internal/modules/master/warehouses/dto"
)
type DebtSupplierRowDTO struct {
PrNumber string `json:"pr_number"`
PoNumber string `json:"po_number"`
PrDate string `json:"pr_date"`
PoDate string `json:"po_date"`
Aging int `json:"aging"`
Area *areaDTO.AreaRelationDTO `json:"area,omitempty"`
Warehouse *warehouseDTO.WarehouseRelationDTO `json:"warehouse,omitempty"`
DueDate string `json:"due_date"`
DueStatus string `json:"due_status"`
TotalPrice float64 `json:"total_price"`
PaymentPrice float64 `json:"payment_price"`
DebtPrice float64 `json:"debt_price"`
Status string `json:"status"`
TravelNumber string `json:"travel_number"`
}
type DebtSupplierTotalDTO struct {
Aging int `json:"aging"`
TotalPrice float64 `json:"total_price"`
PaymentPrice float64 `json:"payment_price"`
DebtPrice float64 `json:"debt_price"`
}
type DebtSupplierDTO struct {
Supplier *supplierDTO.SupplierRelationDTO `json:"supplier"`
Rows []DebtSupplierRowDTO `json:"rows"`
Total DebtSupplierTotalDTO `json:"total"`
}