Update visit date
This commit is contained in:
parent
99d263e65c
commit
1560c631b6
@ -4,6 +4,7 @@ import (
|
|||||||
"furtuna-be/internal/common/mycontext"
|
"furtuna-be/internal/common/mycontext"
|
||||||
"furtuna-be/internal/constants/transaction"
|
"furtuna-be/internal/constants/transaction"
|
||||||
"furtuna-be/internal/entity"
|
"furtuna-be/internal/entity"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Order struct {
|
type Order struct {
|
||||||
@ -34,6 +35,7 @@ func (o *CustomerOrder) ToEntity(createdBy int64) *entity.OrderRequest {
|
|||||||
OrderItems: orderItems,
|
OrderItems: orderItems,
|
||||||
CreatedBy: createdBy,
|
CreatedBy: createdBy,
|
||||||
Source: "ONLINE",
|
Source: "ONLINE",
|
||||||
|
VisitDate: o.VisitDate,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,6 +94,7 @@ func (o *Order) ToEntity(createdBy int64) *entity.OrderRequest {
|
|||||||
OrderItems: orderItems,
|
OrderItems: orderItems,
|
||||||
CreatedBy: createdBy,
|
CreatedBy: createdBy,
|
||||||
Source: "POS",
|
Source: "POS",
|
||||||
|
VisitDate: time.Now().Format("2006-01-02"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user