fix purchase due date

This commit is contained in:
ragilap
2025-12-10 21:10:46 +07:00
parent 086184bbaa
commit de6304332b
7 changed files with 104 additions and 81 deletions
+12 -10
View File
@@ -14,11 +14,12 @@ import (
)
type PurchaseRelationDTO struct {
Id uint `json:"id"`
PrNumber string `json:"pr_number"`
PoNumber *string `json:"po_number"`
PoDate *time.Time `json:"po_date"`
Notes *string `json:"notes"`
Id uint `json:"id"`
PrNumber string `json:"pr_number"`
PoNumber *string `json:"po_number"`
PoDate *time.Time `json:"po_date"`
CreditTerm int `json:"credit_term"`
Notes *string `json:"notes"`
}
type PurchaseListDTO struct {
@@ -64,11 +65,12 @@ type PurchaseItemDTO struct {
func ToPurchaseRelationDTO(p *entity.Purchase) PurchaseRelationDTO {
return PurchaseRelationDTO{
Id: p.Id,
PrNumber: p.PrNumber,
PoNumber: p.PoNumber,
PoDate: p.PoDate,
Notes: p.Notes,
Id: p.Id,
PrNumber: p.PrNumber,
PoNumber: p.PoNumber,
PoDate: p.PoDate,
CreditTerm: p.CreditTerm,
Notes: p.Notes,
}
}