Commit ecf5b18b authored by 吴春's avatar 吴春

提交代码

parent 7057f432
...@@ -2729,14 +2729,16 @@ namespace Property.Module.FixedAssets ...@@ -2729,14 +2729,16 @@ namespace Property.Module.FixedAssets
applyModel.DetailList.ForEach(x => x.CreateDate = applyModel.CreateDate); applyModel.DetailList.ForEach(x => x.CreateDate = applyModel.CreateDate);
applyModel.DetailList.ForEach(x => x.RB_Branch_Id = applyModel.RB_Branch_Id); applyModel.DetailList.ForEach(x => x.RB_Branch_Id = applyModel.RB_Branch_Id);
applyModel.DetailList.ForEach(x => x.RB_Group_Id = applyModel.RB_Group_Id); applyModel.DetailList.ForEach(x => x.RB_Group_Id = applyModel.RB_Group_Id);
applyModel.DetailList.ForEach(x => x.Remark = applyModel.Remark);
//更新已出库的商品信息 //更新已出库的商品信息
foreach (var item in applyModel.DetailList)//更新盘点商品的盘点状态 foreach (var item in applyModel.DetailList)//更新盘点商品的盘点状态
{ {
Dictionary<string, object> filesApplyGoods = new Dictionary<string, object>() { Dictionary<string, object> filesApplyGoods = new Dictionary<string, object>() {
{ nameof(RB_Supplies_CheckDetail.DealStatus),1}, { nameof(RB_Supplies_CheckDetail.DealStatus),1},
{ nameof(RB_Supplies_CheckDetail.UpdateBy),applyModel.CreateBy}, { nameof(RB_Supplies_CheckDetail.UpdateBy),applyModel.CreateBy},
{ nameof(RB_Supplies_CheckDetail.UpdateDate),applyModel.CreateDate} { nameof(RB_Supplies_CheckDetail.UpdateDate),applyModel.CreateDate},
{ nameof(RB_Supplies_CheckDetail.FinanceId),frid},
{ nameof(RB_Supplies_CheckDetail.Remark),item.Remark+(string.IsNullOrWhiteSpace(item.Remark)?"":",")+ " 自动生成财务单据:"+frid+",最新单价:"+Math.Round((item.ReportLossPrice ?? 0) / (item.ReportLossNum ?? 1), 2, MidpointRounding.AwayFromZero)},
}; };
List<WhereHelper> wheresApplyGoods = new List<WhereHelper>() { List<WhereHelper> wheresApplyGoods = new List<WhereHelper>() {
new WhereHelper(){ new WhereHelper(){
...@@ -2747,6 +2749,7 @@ namespace Property.Module.FixedAssets ...@@ -2747,6 +2749,7 @@ namespace Property.Module.FixedAssets
}; };
supplies_CheckDetailRepository.Update(filesApplyGoods, wheresApplyGoods, trans); supplies_CheckDetailRepository.Update(filesApplyGoods, wheresApplyGoods, trans);
} }
applyModel.DetailList.ForEach(x => x.Remark = applyModel.Remark);
//新增盘点商品的信息 //新增盘点商品的信息
suppliesReportLossRecordDetailRepository.InsertBatch(applyModel.DetailList, trans); suppliesReportLossRecordDetailRepository.InsertBatch(applyModel.DetailList, trans);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment