Allow invoice to be marked even when new

fixes #2019
This commit is contained in:
Kukks
2021-02-23 13:18:16 +01:00
committed by nicolas.dorier
parent 2fd8c831c0
commit e3e65878aa
4 changed files with 17 additions and 13 deletions

View File

@@ -212,7 +212,7 @@ namespace BTCPayServer.Controllers.GreenField
if (!await _invoiceRepository.MarkInvoiceStatus(invoice.Id, request.Status))
{
ModelState.AddModelError(nameof(request.Status),
"Status can only be marked to invalid or complete within certain conditions.");
"Status can only be marked to invalid or settled within certain conditions.");
}
if (!ModelState.IsValid)