Plus/minus error

This commit is contained in:
Rick Falkvinge
2017-10-03 15:37:16 +02:00
parent 95716f2808
commit 4e2268035e
2 changed files with 3 additions and 3 deletions
@@ -235,7 +235,7 @@
<p><input type="radio" id="RadioPaymentDirect" name="TxOptions" value="PaymentDirect" /><label for="RadioPaymentDirect">&nbsp;<asp:Label runat="server" ID="LabelRadioPaymentDirect" Text="Match to an open outbound invoice? XYZ" /></label></p>
<div id="radioOptionPaymentDirect" class="radioOption">
<div class="entryFields">
<Swarmops5:DropDown ID="DropOpenOutboundInvoices" runat="server" ListType="All" />&#8203;<br/>
<Swarmops5:DropDown ID="DropOpenOutboundInvoices" runat="server" />&#8203;<br/>
<input type="button" value='#PaymentInvoice#' class="buttonAccentColor" onclick="onMatchOpenOutboundInvoice(); return false;" id="buttonExecutePayoutForeign"/>
</div>
<div class="entryLabels">
@@ -186,8 +186,8 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
foreach (OutboundInvoice invoice in invoices)
{
if (invoice.AmountCents > -matchAmount * 95 / 100 &&
invoice.AmountCents < -matchAmount * 105 / 100)
if (invoice.AmountCents > matchAmount * 95 / 100 &&
invoice.AmountCents < matchAmount * 105 / 100)
{
string description = String.Format(Resources.Pages.Ledgers.BalanceTransactions_PayoutMatch, invoice.Identity,
invoice.DueDate, invoice.CustomerName, invoice.Organization.Currency.DisplayCode, invoice.AmountCents / 100.0,