nettoyer le contrôle html de la facture
parent
44c0faaa29
commit
c82a88f6a9
@ -1,13 +1,12 @@
|
||||
|
||||
@model IBillable
|
||||
<div class="bill">
|
||||
|
||||
<a class="btn btn-default" href="~/api/bill/facture-@(ViewBag.BillingCode)-@(Model.Id).tex" >Export au format LaTeX</a>
|
||||
|
||||
|
||||
@{ var fi = BillingHelpers.GetBillInfo(ViewBag.BillingCode,Model.Id); }
|
||||
@if (fi.Exists) {
|
||||
<a class="btn btn-link" href="~/api/bill/facture-@(ViewBag.BillingCode)-@(Model.Id).pdf" >La facture au format Pdf</a>
|
||||
} else {
|
||||
<form action="~/api/bill/genpdf/@ViewBag.BillingCode/@Model.Id" method="POST">
|
||||
<input class="btn btn-default" type="submit" value="Générer le Pdf"/>
|
||||
<input class="btn btn-default" type="submit" value="Générer la facture au format Pdf"/>
|
||||
</form>
|
||||
|
||||
<a class="btn btn-link" href="~/api/bill/facture-@(ViewBag.BillingCode)-@(Model.Id).pdf" >Télécharger le document généré</a>
|
||||
}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue