nettoyer le contrôle html de la facture
This commit is contained in:
parent
1bce173b1c
commit
283f3af2ed
4 changed files with 18 additions and 11 deletions
|
|
@ -64,11 +64,9 @@ namespace Yavsc.ApiControllers
|
|||
return new ChallengeResult();
|
||||
}
|
||||
|
||||
var filename = $"facture-{billingCode}-{id}.pdf";
|
||||
|
||||
FileInfo fi = new FileInfo(Path.Combine(Startup.UserBillsDirName, filename));
|
||||
var fi = BillingHelpers.GetBillInfo(billingCode,id);
|
||||
if (!fi.Exists) return Ok(new { Error = "Not generated" });
|
||||
return File(fi.OpenRead(), "application/x-pdf", filename); ;
|
||||
return File(fi.OpenRead(), "application/x-pdf", fi.Name);
|
||||
}
|
||||
|
||||
[HttpGet("facture-{billingCode}-{id}.tex"), Authorize]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue