Commit 736f0e40 by wish_lf

修复BUG:管理成本合计

parent 3354b3c4
......@@ -1541,16 +1541,16 @@ t1.exchange_rate AS ExchangeRate,t1.amountval_rmb AS AmountValRmb,t1.month AS Mo
sumRmb = y.Sum(s => s.AmountValRmb),
}).ToList();
var sum = group.Sum(x => x.sumRmb);
var groupMx = group.Where(x => x.platform == "亚马逊" && x.site.ToLower() == "mx" && x.sumRmb < 0).Select(x => x.sumRmb).FirstOrDefault();
var groupMx = group.Where(x => x.platform == "亚马逊" && x.site.ToLower() == "mx" && x.sumRmb < 0).Select(x => x.sumRmb).FirstOrDefault() ?? 0;
oldData.incoming_non_operating = Math.Round(sum.Value - groupMx.Value, 2);
oldData.incoming_non_operating = Math.Round(sum.Value - groupMx, 2);
//oldData.incoming_non_operating = Math.Round(SyncMonthProfitFeePlatformFeeSummary(
// new GetMonthProfitPlatformDetailInput { Month = time, FeeName = "营业外收入" }), 2);
//减:营业外支出
oldData.pay_non_operating = Math.Abs(Math.Round((SyncMonthProfitFeePlatformFeeSummary(
new GetMonthProfitPlatformDetailInput { Month = time, FeeName = "营业外支出" }) + Math.Abs(groupMx.Value)), 2)) * (-1);
new GetMonthProfitPlatformDetailInput { Month = time, FeeName = "营业外支出" }) + Math.Abs(groupMx)), 2)) * (-1);
//销售费用-税金
......
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