|
|
@ -1186,7 +1186,9 @@ func (impl *CustDemandVerHeadServiceImplement) IssueGlobalVersion(user *global.U |
|
|
|
_week = 7 |
|
|
|
} |
|
|
|
startDate = startDate.AddDate(0, 0, 0-int(_week)) |
|
|
|
_startDate := grmi.Date(startDate) |
|
|
|
endDate := startDate.AddDate(0, 0, 7) |
|
|
|
_endDate := grmi.Date(endDate) |
|
|
|
//查询物料
|
|
|
|
_article := baseModel.Article{} |
|
|
|
if _info, ok := articleMap[v.ArtId]; ok { |
|
|
@ -1218,8 +1220,8 @@ func (impl *CustDemandVerHeadServiceImplement) IssueGlobalVersion(user *global.U |
|
|
|
FNumber: _article.UomId, |
|
|
|
}, |
|
|
|
FQty: v.DemandQty, |
|
|
|
FStartDate: utils.TimeFormat(startDate, utils.SysTimeform), |
|
|
|
FEndDate: utils.TimeFormat(endDate, utils.SysTimeform), |
|
|
|
FStartDate: _startDate.ToString(), |
|
|
|
FEndDate: _endDate.ToString(), |
|
|
|
FBaseUnitID: _struct.FNumber{ |
|
|
|
FNumber: _article.UomId, |
|
|
|
}, |
|
|
@ -1249,7 +1251,7 @@ func (impl *CustDemandVerHeadServiceImplement) IssueGlobalVersion(user *global.U |
|
|
|
FBillTypeID: _struct.FNumber{ |
|
|
|
FNumber: "YCD01_SYS", |
|
|
|
}, |
|
|
|
FDate: utils.TimeFormat(time.Now(), utils.SysTimeform), |
|
|
|
FDate: IssueInfo.ActualReleaseTime.ToString(), |
|
|
|
FEntity: v, |
|
|
|
}) |
|
|
|
if err != nil { |
|
|
|