1.采购退货时也新增财务月结判断;
This commit is contained in:
parent
278f1591b8
commit
e984a0a646
|
@ -60,6 +60,12 @@ func ErpPurchaseCreate(c *gin.Context) {
|
|||
}
|
||||
|
||||
req.StoreId = erpPurchaseOrder.StoreId
|
||||
|
||||
// 判断对应的采购退货单是否在月结时间内
|
||||
if model.IsMonthEndClosed(*erpPurchaseOrder.AuditTime) {
|
||||
app.Error(c, http.StatusInternalServerError, errors.New("新增失败:对应订单财务已月结"), "新增失败:对应订单财务已月结")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// 校验入参门店是否包含在用户所有门店中,是否过期
|
||||
|
|
Loading…
Reference in New Issue
Block a user