Skip to content

Commit

Permalink
Minor changes OrderController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
support committed Nov 9, 2023
1 parent fb14af7 commit 658d63a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Web/Grand.Web.Admin/Controllers/OrderController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ public async Task<IActionResult> PdfInvoice(string orderId)
byte[] bytes;
using (var stream = new MemoryStream())
{
await _pdfService.PrintOrdersToPdf(stream, orders, _workContext.WorkingLanguage.Id, "");
await _pdfService.PrintOrdersToPdf(stream, orders, _workContext.WorkingLanguage.Id);
bytes = stream.ToArray();
}
return File(bytes, "application/pdf", $"order_{order.Id}.pdf");
Expand Down Expand Up @@ -474,7 +474,7 @@ public async Task<IActionResult> PdfInvoiceSelected(string selectedIds)
byte[] bytes;
using (var stream = new MemoryStream())
{
await _pdfService.PrintOrdersToPdf(stream, orders, _workContext.WorkingLanguage.Id, "");
await _pdfService.PrintOrdersToPdf(stream, orders, _workContext.WorkingLanguage.Id);
bytes = stream.ToArray();
}
return File(bytes, "application/pdf", "orders.pdf");
Expand Down

0 comments on commit 658d63a

Please sign in to comment.