二次分配核算前单项计算BUG修复

parent ba158793
...@@ -1223,8 +1223,9 @@ private void distPerformanceCalculate(List<Dictionary<string, object>> rows) ...@@ -1223,8 +1223,9 @@ private void distPerformanceCalculate(List<Dictionary<string, object>> rows)
private void balanceTotalDistPerformance(Dictionary<string, object> head, List<Dictionary<string, object>> rows, string[] specialPostName) private void balanceTotalDistPerformance(Dictionary<string, object> head, List<Dictionary<string, object>> rows, string[] specialPostName)
{ {
var totalPerformance = GetDecimal2(head, nameof(ag_headsource.TotalPerformance)); var totalPerformance = GetDecimal2(head, nameof(ag_headsource.TotalPerformance));
var totalPreAccountingReward = GetDecimal2(head, nameof(ag_headsource.TotalPreAccountingReward));
var total_distPerformance = rows.Sum(row => GetDecimal2(row, nameof(ag_bodysource.DistPerformance))); var total_distPerformance = rows.Sum(row => GetDecimal2(row, nameof(ag_bodysource.DistPerformance)));
var difference = total_distPerformance - totalPerformance; var difference = total_distPerformance - (totalPerformance + totalPreAccountingReward);
if (Math.Abs(difference) <= 1) if (Math.Abs(difference) <= 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