mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-23 14:55:42 +00:00
fix purchase due date
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user