Fix for foreign account tolerance

This commit is contained in:
Rick Falkvinge
2017-12-31 07:58:17 +01:00
parent 0f34015bc3
commit 2aa41f3176
+4 -11
View File
@@ -78,9 +78,10 @@
$('#divNegativeDifference').hide();
if (data.OpenOutboundInvoiceData != null) {
if (data.OpenOutboundInvoiceData.ExactMatches.length > 0) {
if (data.OpenOutboundInvoiceData.ExactMatches.length > 0 || data.OpenOutboundInvoiceData.TolerantMatches.length > 0) {
$('#divOutboundInvoice').show();
<%=this.DropOpenOutboundInvoices.ClientID%>_loadData(data.OpenOutboundInvoiceData.ExactMatches);
<%=this.DropOpenOutboundInvoices.ClientID%>_loadData(data.OpenOutboundInvoiceData.TolerantMatches);
<%=this.DropOpenOutboundInvoices.ClientID%>_text("<%=Resources.Global.Global_SelectOne%>");
} else {
$('#divOutboundInvoice').hide();
@@ -94,22 +95,14 @@
$('#divNegativeDifference').show();
if (data.OpenPayoutData != null) {
if (data.OpenPayoutData.ExactMatches.length > 0) {
if (data.OpenPayoutData.ExactMatches.length > 0 || data.OpenPayoutData.TolerantMatches.length > 0) {
<%=this.DropOpenPayouts.ClientID%>_loadData(data.OpenPayoutData.ExactMatches);
<%=this.DropOpenPayouts.ClientID%>_loadData(data.OpenPayoutData.TolerantMatches);
<%=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%>");
}
}
}