This commit is contained in:
mmrbnjd
2024-06-14 22:37:22 +03:30
parent 39c9de8f4c
commit 376da0e7d0
10 changed files with 3815 additions and 13 deletions

View File

@@ -440,10 +440,10 @@ namespace Back.Controllers
{
return Ok(await _servTaxPayer.GetPatterns());
}
[HttpGet("GetReport")]
public IActionResult GetReport()
[HttpGet("GetReport/{InvoiceID}")]
public IActionResult GetReport(int InvoiceID)
{
var reportPath = $"Reports\\TwoSimpleLists.mrt";
var reportPath = $"Reports\\invoice.mrt";
var bytes = System.IO.File.ReadAllBytes(reportPath);
return new FileContentResult(bytes, "application/xml");
}