Commit 1ce850e8 by guanzhenshan

调整现金流服务

parent d18af752
...@@ -157,6 +157,8 @@ namespace Bailun.DC.DailyPayAndIncoming ...@@ -157,6 +157,8 @@ namespace Bailun.DC.DailyPayAndIncoming
decimal costTotal = 0; decimal costTotal = 0;
costTotal = listInterest.Count > 0 ? listInterest.Sum(a => a.RepayInterestRMB) : 0; costTotal = listInterest.Count > 0 ? listInterest.Sum(a => a.RepayInterestRMB) : 0;
//管理成本 只取付款主体为广州百伦供应链科技有限公司、香港百伦科技有限公司、广州电子服装仓、阳山仓、深圳仓、广州哥戈尔生活科技有限公司、广州迪致美容科技有限公司的数据
list = list.Where(a => a.companyName.Contains("广州歌戈儿生活科技有限公司") || a.companyValue == 5 || a.companyValue == 1 || a.companyValue == 3 || a.companyValue == 8 || a.companyValue == 2).ToList(); list = list.Where(a => a.companyName.Contains("广州歌戈儿生活科技有限公司") || a.companyValue == 5 || a.companyValue == 1 || a.companyValue == 3 || a.companyValue == 8 || a.companyValue == 2).ToList();
if (list.Count > 0) if (list.Count > 0)
{ {
...@@ -182,7 +184,7 @@ namespace Bailun.DC.DailyPayAndIncoming ...@@ -182,7 +184,7 @@ namespace Bailun.DC.DailyPayAndIncoming
//采购下单 //采购下单
var objPurchase = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60); var objPurchase = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60);
//财务付款 支出 2、成品采购+半成品采购+百伦(广州、香港)支付给哈倪曼和拉古娜的费用+百伦管理费用 //支出 2、成品采购+半成品采购+百伦(广州、香港)支付给哈倪曼和拉古娜的费用+百伦管理费用
sql = $@"select sum(cashier_paymoneyrmb) as amount from dc_base_finance_cashier where cashier_status=1 and cashier_type=1 and cashier_time>='{start.ToString("yyyy-MM-dd HH:mm:ss")}' and cashier_time<'{end.ToString("yyyy-MM-dd HH:mm:ss")}' and ((sourcecode in ('Buy','SemiFinishedProduct') and companymain_value_from !=14 and companymain_value_from!=48) or (tradeb_bjectname in ('广州哈倪蔓生物科技有限公司','广州拉古娜生物科技有限公司','广州美甲生产仓') and companymain_value_from in (1,2,5,7,8) and sourcecode in ('newCost','IncomeAndExpenditure')))"; sql = $@"select sum(cashier_paymoneyrmb) as amount from dc_base_finance_cashier where cashier_status=1 and cashier_type=1 and cashier_time>='{start.ToString("yyyy-MM-dd HH:mm:ss")}' and cashier_time<'{end.ToString("yyyy-MM-dd HH:mm:ss")}' and ((sourcecode in ('Buy','SemiFinishedProduct') and companymain_value_from !=14 and companymain_value_from!=48) or (tradeb_bjectname in ('广州哈倪蔓生物科技有限公司','广州拉古娜生物科技有限公司','广州美甲生产仓') and companymain_value_from in (1,2,5,7,8) and sourcecode in ('newCost','IncomeAndExpenditure')))";
var objPayed = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60); var objPayed = cn.QueryFirstOrDefault<decimal?>(sql, null, null, 2 * 60);
......
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