refactorise la génération de la facture au format Pdf, presente la facture aquittée.

This commit is contained in:
Paul Schneider 2017-07-08 03:23:21 +02:00
commit fb0fbae077
9 changed files with 41 additions and 30 deletions

View file

@ -1,15 +1,4 @@
@model HairCutQuery
@{
var paid = false;
if (Model.PaymentId!=null) {
if (Model.Regularisation!=null) {
if (Model.Regularisation.IsOk()) {
paid=true;
}
}
}
}
<dl class="dl-horizontal">
<dt>@Html.DisplayNameFor(m=>m.Prestation)
</dt>
@ -33,7 +22,7 @@
</dd>
<dt>@SR["La facture"]
</dt>
<dd>@await Component.InvokeAsync("Bill", "Brush", Model, OutputFormat.Html, true, paid )
<dd>@await Component.InvokeAsync("Bill", "Brush", Model, OutputFormat.Html, true)
</dd>
<dt>@Html.DisplayNameFor(m=>m.Regularisation)</dt>
<dd>