mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 23:05:44 +00:00
feat(BE):Rekapitulasi hutang supplier
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
Reference in New Issue
Block a user