Commit a2862384 by guanzhenshan

管理成本明细如果是收款改为负数

parent 69378815
......@@ -6950,12 +6950,30 @@ group by currency";
{
var obj = cn.Page<dc_base_finance_managecost>(parameter.pageIndex, parameter.limit, sql, ref total);
foreach (var item in obj)
{
if (item.manage_cost_type == 2)
{
item.amount = -item.amount;
item.amount_rmb = -item.amount_rmb;
}
}
return obj.ToList();
}
else
{
var obj = cn.Query<dc_base_finance_managecost>(sql);
foreach (var item in obj)
{
if (item.manage_cost_type == 2)
{
item.amount = -item.amount;
item.amount_rmb = -item.amount_rmb;
}
}
return obj.ToList();
}
}
......
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