|
@@ -1164,11 +1164,22 @@ namespace OASystem.API.Controllers
|
|
|
if (strs.Count > 0)
|
|
|
{
|
|
|
decimal amountPayable = strs.Sum(it => it.AmountPayable);
|
|
|
- decimal thisPayment = strs.Sum(it => it.ThisPayment);
|
|
|
+
|
|
|
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);
|
|
|
- thisPaymentStr += string.Format(@"{0}{1} |", thisPayment.ToString("#0.00"), item.CurrencyName);
|
|
|
+
|
|
|
+
|
|
|
+ if (item.CurrencyId == 836)
|
|
|
+ {
|
|
|
+ decimal thisPayment = ccpCurrencyPrices.Sum(it => it.ThisPayment);
|
|
|
+ thisPaymentStr += string.Format(@"{0}{1} |", thisPayment.ToString("#0.00"), item.CurrencyName);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ thisPaymentStr += string.Format(@"{0}{1} |","0.00", item.CurrencyName);
|
|
|
+ }
|
|
|
+
|
|
|
balancePaymentStr += string.Format(@"{0}{1} |", balancePayment.ToString("#0.00"), item.CurrencyName);
|
|
|
auditedFundsStr += string.Format(@"{0}{1} |", auditedFunds.ToString("#0.00"), item.CurrencyName);
|
|
|
}
|