You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return _billingService.GetFuturePayments(billing.InitialDate, billing.PeriodType, billing.RecurEvery, numberOfPayments);}publicvoidUpdated(){
ScheduleBilling();}publicasyncvoidScheduleBilling(){if(Item is not {} item ||!Item.IsNotify){return;}
_notification.RemoveScheduledNotifications();if(!_notification.IsEnabledOnDevice()){//TODO Notify user that notifications are disabledreturn;}
#if!HAS_UNOvarpaymentDates= GetFuturePayments();vartasks= paymentDates.Select(date => Task.Run(()=>{vartitle= item.Name ??"";//(≈{2})vartext=string.Format("Your {0}{1} payment for {2} is due tomorrow!", item.Billing.BasePrice, item.Billing.CurrencyId, item.Name);//- time period before e.g. one day, time that user selected//DEBUG _notification.ScheduleNotification(item.Id, title, text, DateOnly.FromDateTime(DateTime.Now), TimeOnly.FromDateTime(DateTime.Now.AddSeconds(15))); _notification.ScheduleNotification(item.Id, title, text, date.AddDays(-1),new TimeOnly(8,00));})).ToArray();await Task.WhenAll(tasks);
#endif
}
#region FEAT: feature/IndividualPayments
//[ObservableProperty]//private bool _isPaid;
The text was updated successfully, but these errors were encountered:
DEBUG _notification.ScheduleNotification(item.Id, title, text, DateOnly.FromDateTime(DateTime.Now), TimeOnly.FromDateTime(DateTime.Now.AddSeconds(15)));
private bool _isPaid;
https://github.com/morning4coffe-dev/project-sbs/blob/9a2eec10171dac3e8db9caf9a97eac6b19563151/ProjectSBS/ProjectSBS/Presentation/Components/ItemViewModel.cs#L90
The text was updated successfully, but these errors were encountered: