mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Receipt improvements (#5077)
* Remove Order ID link * Add separate print version for receipt * Fix POS number handling and add keypad test Fixes #5056. * Add formatting function * Remove OrderUrl for POS, bring back order link for receipt * Update BTCPayServer/Plugins/PointOfSale/Controllers/UIPointOfSaleController.cs
This commit is contained in:
@@ -172,7 +172,7 @@ namespace BTCPayServer.Controllers
|
||||
}
|
||||
|
||||
[HttpGet("i/{invoiceId}/receipt")]
|
||||
public async Task<IActionResult> InvoiceReceipt(string invoiceId)
|
||||
public async Task<IActionResult> InvoiceReceipt(string invoiceId, [FromQuery] bool print = false)
|
||||
{
|
||||
var i = await _InvoiceRepository.GetInvoice(invoiceId);
|
||||
if (i is null)
|
||||
@@ -255,7 +255,7 @@ namespace BTCPayServer.Controllers
|
||||
vm.Payments = receipt.ShowPayments is false ? null : payments;
|
||||
vm.AdditionalData = PosDataParser.ParsePosData(receiptData);
|
||||
|
||||
return View(vm);
|
||||
return View(print ? "InvoiceReceiptPrint" : "InvoiceReceipt", vm);
|
||||
}
|
||||
|
||||
private string? GetTransactionLink(PaymentMethodId paymentMethodId, string txId)
|
||||
|
||||
Reference in New Issue
Block a user