feat: cash advance
This commit is contained in:
@@ -46,6 +46,7 @@ func CreatePurchaseOrderRequestToModel(req *contract.CreatePurchaseOrderRequest)
|
||||
Message: req.Message,
|
||||
TeamScope: req.TeamScope,
|
||||
TeamCategoryID: req.TeamCategoryID,
|
||||
CashAdvanceID: req.CashAdvanceID,
|
||||
Items: items,
|
||||
AttachmentFileIDs: req.AttachmentFileIDs,
|
||||
}, nil
|
||||
@@ -98,6 +99,7 @@ func UpdatePurchaseOrderRequestToModel(req *contract.UpdatePurchaseOrderRequest)
|
||||
Message: req.Message,
|
||||
TeamScope: req.TeamScope,
|
||||
TeamCategoryID: req.TeamCategoryID,
|
||||
CashAdvanceID: req.CashAdvanceID,
|
||||
Items: items,
|
||||
AttachmentFileIDs: req.AttachmentFileIDs,
|
||||
}, nil
|
||||
@@ -159,6 +161,7 @@ func PurchaseOrderModelResponseToResponse(po *models.PurchaseOrderResponse) *con
|
||||
TotalAmount: po.TotalAmount,
|
||||
TeamScope: po.TeamScope,
|
||||
TeamCategoryID: po.TeamCategoryID,
|
||||
CashAdvanceID: po.CashAdvanceID,
|
||||
CreatedAt: po.CreatedAt,
|
||||
UpdatedAt: po.UpdatedAt,
|
||||
Team: PurchaseTeamModelToResponse(po.Team),
|
||||
|
||||
Reference in New Issue
Block a user