Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-03-10 17:51:31 +03:00
parent d590732f38
commit aba71341b9
24 changed files with 299 additions and 160 deletions

View File

@@ -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