diff --git a/Yavsc/Controllers/HairCutCommandController.cs b/Yavsc/Controllers/HairCutCommandController.cs index 1700cb28..326634b1 100644 --- a/Yavsc/Controllers/HairCutCommandController.cs +++ b/Yavsc/Controllers/HairCutCommandController.cs @@ -160,7 +160,7 @@ namespace Yavsc.Controllers await _context.SaveChangesAsync(uid); var brusherProfile = await _context.BrusherProfile.SingleAsync(p=>p.UserId == pro.PerformerId); model.Client = await _context.Users.SingleAsync(u=>u.Id == model.ClientId); - + model.SelectedProfile = brusherProfile; var yaev = model.CreateEvent(_localizer, brusherProfile); MessageWithPayloadResponse grep = null; @@ -192,7 +192,7 @@ namespace Yavsc.Controllers } ViewBag.Activity = _context.Activities.FirstOrDefault(a=>a.Code == model.ActivityCode); ViewBag.GoogleSettings = _googleSettings; - var addition = model.Addition(brusherProfile); + var addition = model.Addition(); ViewBag.Addition = addition.ToString("C",CultureInfo.CurrentUICulture); return View("CommandConfirmation",model); } diff --git a/Yavsc/Helpers/EventHelpers.cs b/Yavsc/Helpers/EventHelpers.cs index d73d397f..7cd1ede7 100644 --- a/Yavsc/Helpers/EventHelpers.cs +++ b/Yavsc/Helpers/EventHelpers.cs @@ -40,7 +40,7 @@ namespace Yavsc.Helpers string evdate = query.EventDate?.ToString("dddd dd/MM/yyyy à HH:mm")??"[pas de date spécifiée]"; string address = query.Location?.Address??"[pas de lieu spécifié]"; var p = query.Prestation; - decimal total = query.Addition(bpr); + decimal total = query.Addition(); string strprestation = $@"Coupe: {p.Cut}, Total: {total}"; var yaev = new HairCutQueryEvent