plus de détail
This commit is contained in:
parent
80945ed995
commit
d476c00825
1 changed files with 6 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ namespace Yavsc.Helpers
|
||||||
using Models.Workflow;
|
using Models.Workflow;
|
||||||
using Models.Messaging;
|
using Models.Messaging;
|
||||||
using Yavsc.Models.Haircut;
|
using Yavsc.Models.Haircut;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
public static class EventHelpers
|
public static class EventHelpers
|
||||||
{
|
{
|
||||||
|
|
@ -42,6 +43,8 @@ namespace Yavsc.Helpers
|
||||||
var p = query.Prestation;
|
var p = query.Prestation;
|
||||||
decimal total = query.GetBillItems().Addition();
|
decimal total = query.GetBillItems().Addition();
|
||||||
string strprestation = $@"Coupe: {p.Cut}, Total: {total}";
|
string strprestation = $@"Coupe: {p.Cut}, Total: {total}";
|
||||||
|
string bill = string.Join("\n", query.GetBillItems().Select(
|
||||||
|
l=> $"{l.Name} {l.Description} {l.UnitaryCost} {l.Count}"));
|
||||||
|
|
||||||
var yaev = new HairCutQueryEvent
|
var yaev = new HairCutQueryEvent
|
||||||
{
|
{
|
||||||
|
|
@ -50,8 +53,9 @@ namespace Yavsc.Helpers
|
||||||
{evdate},
|
{evdate},
|
||||||
{address}
|
{address}
|
||||||
-----
|
-----
|
||||||
{strprestation}
|
{strprestation}:
|
||||||
|
|
||||||
|
{bill}
|
||||||
--
|
--
|
||||||
{query.AdditionalInfo}
|
{query.AdditionalInfo}
|
||||||
" ,
|
" ,
|
||||||
|
|
@ -63,7 +67,7 @@ Previsional = query.Previsional,
|
||||||
EventDate = query.EventDate,
|
EventDate = query.EventDate,
|
||||||
Location = query.Location,
|
Location = query.Location,
|
||||||
Id = query.Id,
|
Id = query.Id,
|
||||||
Reason = query.AdditionalInfo,
|
Reason = $"{query.AdditionalInfo}",
|
||||||
ActivityCode = query.ActivityCode
|
ActivityCode = query.ActivityCode
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue