refactorise la génération de la facture au format Pdf, presente la facture aquittée.
This commit is contained in:
parent
5f29298fe0
commit
fb0fbae077
9 changed files with 41 additions and 30 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue