diff --git a/Site5/App_GlobalResources/Pages.Ledgers.resx b/Site5/App_GlobalResources/Pages.Ledgers.resx
index 6f1ace20..9a266811 100644
--- a/Site5/App_GlobalResources/Pages.Ledgers.resx
+++ b/Site5/App_GlobalResources/Pages.Ledgers.resx
@@ -732,6 +732,12 @@
Payout #{0:N0}, {5} (expected {1:yyyy-MMM-dd}) for {2}: {3} {4:N2}
0 is the payout Id, 1 is the date (do edit format if called for in culture), 2 is the recipient name, and 3 4 is the currency and amount, 5 is the specification (like "Expense Claim #4711")
+
+ The transaction matches this foreign-currency payout:
+
+
+ Map the transaction to a foreign-currency payout ({0}% amount tolerance)?
+
Budget vs Actual
diff --git a/Site5/App_GlobalResources/Pages.Security.resx b/Site5/App_GlobalResources/Pages.Security.resx
index 4036a250..15fd303e 100644
--- a/Site5/App_GlobalResources/Pages.Security.resx
+++ b/Site5/App_GlobalResources/Pages.Security.resx
@@ -189,7 +189,7 @@
Enter your code from Google Authenticator.
- Login with Blockchain Technology (BitId)
+ Login with Bitcoin Signature (BitId)
Help
diff --git a/Site5/Pages/v5/Ledgers/BalanceTransactions.aspx b/Site5/Pages/v5/Ledgers/BalanceTransactions.aspx
index 42f7d3ab..af3f6a58 100644
--- a/Site5/Pages/v5/Ledgers/BalanceTransactions.aspx
+++ b/Site5/Pages/v5/Ledgers/BalanceTransactions.aspx
@@ -41,6 +41,8 @@
$('span#spanModalTransactionDate').text('[...]');
<%=this.DropOpenPayouts.ClientID%>_loadData([{ id: 0, text: "<%=Resources.Global.Global_LoadingPlaceholder%>" }]);
<%=this.DropOpenPayouts.ClientID%>_val('0');
+ <%=this.DropOpenPayoutsForeign.ClientID%>_loadData([{ id: 0, text: "<%=Resources.Global.Global_LoadingPlaceholder%>" }]);
+ <%=this.DropOpenPayoutsForeign.ClientID%>_val('0');
SwarmopsJS.ajaxCall(
"/Pages/v5/Ledgers/BalanceTransactions.aspx/GetTransactionMatchability",
@@ -49,14 +51,22 @@
$('#spanTransactionUnbalancedBy').text(data.DifferingAmount);
$('span#spanModalTransactionDate').text(data.TransactionDate);
- if (data.OpenPayoutData.length > 0) {
- <%=this.DropOpenPayouts.ClientID%>_loadData(data.OpenPayoutData);
+ if (data.OpenPayoutData.ExactMatches.length > 0) {
+ <%=this.DropOpenPayouts.ClientID%>_loadData(data.OpenPayoutData.ExactMatches);
<%=this.DropOpenPayouts.ClientID%>_text("<%=Resources.Global.Global_SelectOne%>");
} else {
<%=this.DropOpenPayouts.ClientID%>_loadData({});
<%=this.DropOpenPayouts.ClientID%>_text("<%=Resources.Global.Global_NoMatch%>");
}
+ if (data.OpenPayoutData.TolerantMatches.length > 0) {
+ <%=this.DropOpenPayoutsForeign.ClientID%>_loadData(data.OpenPayoutData.TolerantMatches);
+ <%=this.DropOpenPayoutsForeign.ClientID%>_text("<%=Resources.Global.Global_SelectOne%>");
+ } else {
+ <%=this.DropOpenPayoutsForeign.ClientID%>_loadData({});
+ <%=this.DropOpenPayoutsForeign.ClientID%>_text("<%=Resources.Global.Global_NoMatch%>");
+ }
+
});
}
@@ -92,6 +102,21 @@
}
}
+ function onMatchOpenPayoutForeign() {
+ var payoutId = <%=this.DropOpenPayoutsForeign.ClientID%>_val();
+
+ if (payoutId > 0) {
+ <%= this.DialogTx.ClientID %>_close();
+ SwarmopsJS.ajaxCall(
+ "/Pages/v5/Ledgers/BalanceTransactions.aspx/MatchTransactionOpenPayoutForeign",
+ { transactionId: transactionId, payoutId: payoutId },
+ function () {
+ $('#gridTransactions').datagrid('reload');
+ });
+
+ }
+ }
+