Link to associated invoices

This commit is contained in:
Kukks
2019-01-05 10:17:52 +01:00
parent a15c7a0213
commit ba17612461
3 changed files with 7 additions and 2 deletions

View File

@@ -74,7 +74,8 @@ namespace BTCPayServer.Controllers
UseInvoiceAmount = settings.UseInvoiceAmount,
ResetEveryAmount = settings.ResetEveryAmount,
ResetEvery = Enum.GetName(typeof(CrowdfundResetEvery), settings.ResetEvery),
UseAllStoreInvoices = settings.UseAllStoreInvoices
UseAllStoreInvoices = settings.UseAllStoreInvoices,
AppId = appId
};
return View(vm);
}

View File

@@ -72,6 +72,8 @@ namespace BTCPayServer.Models.AppViewModels
public bool UseInvoiceAmount { get; set; } = true;
[Display(Name = "Count all invoices created on the store as part of the crowdfunding goal")]
public bool UseAllStoreInvoices { get; set; } = false;
public string AppId { get; set; }
}
public enum CrowdfundResetEvery

View File

@@ -1,4 +1,5 @@
@model UpdateCrowdfundViewModel
@using BTCPayServer.Hubs
@model UpdateCrowdfundViewModel
@{
ViewData["Title"] = "Update Crowdfund";
}
@@ -167,6 +168,7 @@
<input type="submit" class="btn btn-primary" value="Save Settings" />
</div>
</form>
<a asp-action="ListInvoices" asp-controller="Invoice" asp-route-searchterm="@($"orderid:{CrowdfundHubStreamer.CrowdfundInvoiceOrderIdPrefix}{Model.AppId}")">Invoices generated by app</a>&nbsp
<a asp-action="ListApps">Back to the app list</a>
</div>
</div>