From b99b61c227efe7e49c747d662662d419dfe08a41 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sat, 30 Dec 2017 21:14:41 +0100 Subject: [PATCH] Revert to 5%; something else is wrong --- Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs index c3e6705b..86eb5d44 100644 --- a/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs +++ b/Site/Pages/v5/Ledgers/BalanceTransactions.aspx.cs @@ -165,8 +165,8 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers foreach (Payout payout in openPayouts) { - if (payout.AmountCents > -matchAmount*90/100 && - payout.AmountCents < -matchAmount*110/100) + if (payout.AmountCents > -matchAmount*95/100 && + payout.AmountCents < -matchAmount*105/100) { string description = String.Format(Resources.Pages.Ledgers.BalanceTransactions_PayoutMatch, payout.Identity, payout.ExpectedTransactionDate, payout.Recipient, payout.Organization.Currency.DisplayCode, payout.AmountCents / 100.0, @@ -186,7 +186,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers listTolerant.Add(new DropdownOption { id = payout.Identity.ToString(CultureInfo.InvariantCulture), - @group = Resources.Pages.Ledgers.BalanceTransactions_TenPercentMatches, + @group = Resources.Pages.Ledgers.BalanceTransactions_FivePercentMatches, text = description }); } @@ -214,8 +214,8 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers foreach (OutboundInvoice invoice in invoices) { - if (invoice.AmountCents > matchAmount * 90 / 100 && - invoice.AmountCents < matchAmount * 110 / 100) + if (invoice.AmountCents > matchAmount * 95 / 100 && + invoice.AmountCents < matchAmount * 105 / 100) { string description = String.Format(Resources.Pages.Ledgers.BalanceTransactions_OutboundInvoiceMatch, invoice.Identity, invoice.CustomerName, invoice.DueDate, invoice.DisplayNativeAmount); @@ -243,7 +243,7 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers listTolerant.Add(new DropdownOption { id = invoice.Identity.ToString(CultureInfo.InvariantCulture), - @group = invoiceIdMatch ? Resources.Pages.Ledgers.BalanceTransactions_MostProbableMatch : Resources.Pages.Ledgers.BalanceTransactions_TenPercentMatches, + @group = invoiceIdMatch ? Resources.Pages.Ledgers.BalanceTransactions_MostProbableMatch : Resources.Pages.Ledgers.BalanceTransactions_FivePercentMatches, text = description }); }