This commit is contained in:
Paul Schneider 2017-06-08 17:09:06 +02:00
commit 63eb7089cd
18 changed files with 193 additions and 114 deletions

View file

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