Clarified variable name

This commit is contained in:
Rick Falkvinge
2018-03-04 17:42:48 +01:00
parent bae02b4c50
commit b222ceaa13
@@ -372,7 +372,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
while (csvReader.Read())
{
ExpensifyRecord newRecord = new ExpensifyRecord();
Int64 amountCents =
Int64 amountExpensifyCents =
newRecord.AmountCents =
Formatting.ParseDoubleStringAsCents(csvReader.GetField(fieldMap[ExpensifyColumns.AmountFloat]),
CultureInfo.InvariantCulture);
@@ -418,7 +418,7 @@ namespace Swarmops.Frontend.Pages.v5.Financial
if (amountNeedsTranslation)
{
double vatRatio = vatOriginalCents/(double) amountCents;
double vatRatio = vatOriginalCents/(double) amountExpensifyCents;
newRecord.VatCents = (Int64) (newRecord.AmountCents * vatRatio);
}
else