Minor output changes

This commit is contained in:
Rick Falkvinge
2014-08-19 13:55:04 +00:00
parent 6b110dea22
commit a7ad953a22
2 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -358,9 +358,9 @@
<comment>Zero is new transaction count, one is duplicate transaction count, two and three are lowest and highest dates found in file. Pay attention to date format and adjust to culture.</comment>
</data>
<data name="UploadBankFiles_ResultsQuestionable" xml:space="preserve">
<value>&lt;p&gt;The file was imported, but the &lt;strong&gt;resulting account balance mismatches.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;After importing {0:N0} transactions (and discarding {1:N0} duplicates), the entire file has been processed. However, the resulting account balance in Swarmops is not the same as that of the bank statement.&lt;/p&gt;
<value>&lt;p&gt;The file was imported, but the &lt;strong&gt;resulting account balance mismatches.&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;After importing {0:N0} transactions (and discarding {1:N0} duplicates), the entire file has been processed. However, the resulting account balance in Swarmops is not the same as that of the bank statement; there is a difference of {3} {2:N2}.&lt;/p&gt;
&lt;p&gt;Please try uploading a fresh account statement. If that still produces a mismatch, you may need to try &lt;a href="/Pages/v5/Ledgers/ResyncExternalAccount.aspx"&gt;resynchronizing&lt;/a&gt; the bank account with a comprehensive account statement file.&lt;/p&gt;</value>
<comment>Displayed on successful import, but the resulting balance is off compared to the account statement file that was just uploaded.</comment>
<comment>Displayed on successful import, but the resulting balance is off compared to the account statement file that was just uploaded. 2 is the diff, 3 is the currency.</comment>
</data>
<data name="UploadBankFiles_SelectAccount" xml:space="preserve">
<value>Select Bookkeeping Account</value>
@@ -267,7 +267,7 @@ namespace Swarmops.Site.Pages.Ledgers
case ImportResultsCategory.Questionable:
html = String.Format(Resources.Pages.Ledgers.UploadBankFiles_ResultsQuestionable,
resultDetail.TransactionsImported, resultDetail.DuplicateTransactions,
resultDetail.EarliestTransaction, resultDetail.LatestTransaction);
Math.Abs(resultDetail.BalanceMismatchCents / 100.0), resultDetail.CurrencyCode);
break;
case ImportResultsCategory.Bad:
html = Resources.Pages.Ledgers.UploadBankFiles_ResultsBad;
@@ -501,6 +501,8 @@ namespace Swarmops.Site.Pages.Ledgers
public int TransactionsImported;
public int DuplicateTransactions;
public bool AccountBalanceMatchesBank;
public long BalanceMismatchCents;
public string CurrencyCode;
}
@@ -668,12 +670,16 @@ namespace Swarmops.Site.Pages.Ledgers
{
Payouts.AutomatchAgainstUnbalancedTransactions(args.Organization);
result.AccountBalanceMatchesBank = true;
result.BalanceMismatchCents = 0;
}
else
{
result.AccountBalanceMatchesBank = false;
result.BalanceMismatchCents = (databaseAccountBalanceCents - beyondEofCents) -
import.LatestAccountBalanceCents;
}
result.CurrencyCode = args.Organization.Currency.Code;
return result;
}