nettoyer le contrôle html de la facture
parent
44c0faaa29
commit
c82a88f6a9
@ -1,13 +1,12 @@
|
|||||||
|
|
||||||
@model IBillable
|
@model IBillable
|
||||||
<div class="bill">
|
<div class="bill">
|
||||||
|
@{ var fi = BillingHelpers.GetBillInfo(ViewBag.BillingCode,Model.Id); }
|
||||||
<a class="btn btn-default" href="~/api/bill/facture-@(ViewBag.BillingCode)-@(Model.Id).tex" >Export au format LaTeX</a>
|
@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">
|
<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>
|
</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>
|
</div>
|
||||||
|
Loading…
Reference in New Issue