Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -104,10 +104,17 @@ func GetStatementAging(params models.StatementAgingParams) ([]map[string]interfa
|
||||
|
||||
tutar := asFloat64(row["EslesenTutar"])
|
||||
usdTutar := toUSD(tutar, curr, usdTry, rateMap)
|
||||
currTry := rateMap[curr]
|
||||
usdToCurr := 0.0
|
||||
if currTry > 0 && usdTry > 0 {
|
||||
usdToCurr = usdTry / currTry
|
||||
}
|
||||
|
||||
row["CariDetay"] = cariDetailMap[cari8]
|
||||
row["UsdTutar"] = round2(usdTutar)
|
||||
row["CurrencyTryRate"] = round6(rateMap[curr])
|
||||
row["CurrencyTryRate"] = round6(currTry)
|
||||
row["UsdTryRate"] = round6(usdTry)
|
||||
row["CurrencyUsdRate"] = round6(usdToCurr)
|
||||
}
|
||||
|
||||
return result, nil
|
||||
|
||||
Reference in New Issue
Block a user