Files
lti-api/internal/modules/repports/dto/repportDebtSupplier.dto.go
T
2026-01-11 19:41:21 +07:00

38 lines
1.7 KiB
Go

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"`
}