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/constants/transaction"
|
||||
"furtuna-be/internal/entity"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Order struct {
|
||||
@ -34,6 +35,7 @@ func (o *CustomerOrder) ToEntity(createdBy int64) *entity.OrderRequest {
|
||||
OrderItems: orderItems,
|
||||
CreatedBy: createdBy,
|
||||
Source: "ONLINE",
|
||||
VisitDate: o.VisitDate,
|
||||
}
|
||||
}
|
||||
|
||||
@ -92,6 +94,7 @@ func (o *Order) ToEntity(createdBy int64) *entity.OrderRequest {
|
||||
OrderItems: orderItems,
|
||||
CreatedBy: createdBy,
|
||||
Source: "POS",
|
||||
VisitDate: time.Now().Format("2006-01-02"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user