Explorar el Código

费用审核
费用列表 已审核费用处理

leiy hace 1 año
padre
commit
aaee51f2c1
Se han modificado 1 ficheros con 13 adiciones y 2 borrados
  1. 13 2
      OASystem/OASystem.Api/Controllers/GroupsController.cs

+ 13 - 2
OASystem/OASystem.Api/Controllers/GroupsController.cs

@@ -1166,7 +1166,6 @@ namespace OASystem.API.Controllers
                         decimal amountPayable = strs.Sum(it => it.AmountPayable);
                         
                         decimal balancePayment = strs.Sum(it => it.BalancePayment);
-                        decimal auditedFunds = strs.Sum(it => it.AuditedFunds);
                         amountPayableStr += string.Format(@"{0}{1} |", amountPayable.ToString("#0.00"), item.CurrencyName);
 
                         //单独处理此次付款金额
@@ -1181,7 +1180,19 @@ namespace OASystem.API.Controllers
                         }
 
                         balancePaymentStr += string.Format(@"{0}{1} |", balancePayment.ToString("#0.00"), item.CurrencyName);
-                        auditedFundsStr += string.Format(@"{0}{1} |", auditedFunds.ToString("#0.00"), item.CurrencyName);
+
+                        //单独处理已审核费用
+                        if (item.CurrencyId == 836) //人名币
+                        {
+
+                            decimal auditedFunds = ccpCurrencyPrices.Sum(it => it.AuditedFunds);
+                            auditedFundsStr += string.Format(@"{0}{1} |", auditedFunds.ToString("#0.00"), item.CurrencyName);
+                        }
+                        else
+                        {
+                            auditedFundsStr += string.Format(@"{0}{1} |", "0.00", item.CurrencyName);
+                        }
+
                     }
                 }