Commit ea41876d authored by liudong1993's avatar liudong1993

电商订单+财务单据关联

parent 27f8990a
...@@ -293,6 +293,18 @@ namespace Property.Module.Mall ...@@ -293,6 +293,18 @@ namespace Property.Module.Mall
{ {
#region 生成财务单据 #region 生成财务单据
#region 关联财务订单
List<object> ECList = new List<object>();
foreach (var item in applyModel.WarehouseOutGoodsList) {
ECList.Add(new
{
ECOrderId = item.OrderId,
ECOrderDetailId = item.OrderGoodsId
});
}
ECList = ECList.Distinct().ToList();
#endregion
var detailList = financeList.Select(x => new var detailList = financeList.Select(x => new
{ {
CostTypeId = 213, CostTypeId = 213,
...@@ -317,7 +329,8 @@ namespace Property.Module.Mall ...@@ -317,7 +329,8 @@ namespace Property.Module.Mall
Remark = System.DateTime.Now.ToString("yyyy年MM月dd日") + "生成财务单据", Remark = System.DateTime.Now.ToString("yyyy年MM月dd日") + "生成财务单据",
detailList, detailList,
RB_Depart_Id = RB_Department_Id, RB_Depart_Id = RB_Department_Id,
ReFinanceId = Id ReFinanceId = Id,
ECOrderList = ECList
}; };
string sign = EncryptionHelper.AesEncrypt(JsonHelper.Serialize(financeObj), Config.FinanceKey); string sign = EncryptionHelper.AesEncrypt(JsonHelper.Serialize(financeObj), Config.FinanceKey);
var resultInfo = new var resultInfo = new
......
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