Commit 787bfdcf authored by 吴春's avatar 吴春

提交出库商品信息

parent 2be9cffd
......@@ -380,14 +380,14 @@ namespace Property.Module.Mall
var oldOutGoods = outGoodsDetailList.Where(x => x.OrderGoodsId == item.OrderGoodsId);
if (oldOutGoods != null && oldOutGoods.Any())
{
oldMoney = oldOutGoods.Sum(x => x.CostMoney ?? 0) / Convert.ToDecimal(oldOutGoods.Count());
oldMoney = oldOutGoods.Sum(x => x.CostMoney ?? 0);
}
costMoney = (nowGoods.Sum(x => x.CostMoney ?? 0) / nowGoodsFinan.FirstOrDefault()?.Number ?? 0);
costMoney = ((nowGoods.Sum(x => x.CostMoney ?? 0) + oldMoney) / nowGoodsFinan.FirstOrDefault()?.Number ?? 0);
// costMoney = (nowGoods.Sum(x => x.CostMoney ?? 0) / nowGoodsFinan.Sum(x => x.Number ?? 0));
//更新申请单的出库状态
Dictionary<string, object> filesGoods = new Dictionary<string, object>() {
{nameof(RB_Goods_OrderDetail.CostFinanceId),frid},
{ nameof(RB_Goods_OrderDetail.CostMoney),Math.Round((costMoney+oldMoney), 2, MidpointRounding.AwayFromZero)}
{ nameof(RB_Goods_OrderDetail.CostMoney),Math.Round((costMoney), 2, MidpointRounding.AwayFromZero)}
};
List<WhereHelper> wheresGoods = new List<WhereHelper>() { new WhereHelper()
{
......
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