Rechnungen erst ab 2023 laden/anzeigen
This commit is contained in:
@@ -41,22 +41,29 @@ namespace BeWo.View.Detail.Accounting
|
||||
|
||||
public DigitalInvoiceOverview()
|
||||
{
|
||||
this.InitializeComponent();
|
||||
this.ViewModel = new InvoiceBaseListVM(null);
|
||||
this.InitializeComponent();
|
||||
this.ViewModel = new InvoiceBaseListVM(null);
|
||||
|
||||
RefreshInvoiceList();
|
||||
RefreshInvoiceList();
|
||||
}
|
||||
|
||||
private void RefreshInvoiceList()
|
||||
{
|
||||
DateTime? start = null;
|
||||
DateTime? end = null;
|
||||
if (ViewModel.DateTimeSpanFilter != null)
|
||||
|
||||
if (ViewModel.DateTimeSpanFilter != null)
|
||||
{
|
||||
start = ViewModel.DateTimeSpanFilter.StartDate;
|
||||
end = ViewModel.DateTimeSpanFilter.EndDate;
|
||||
}
|
||||
ServiceFacade.DoAccountingServiceAsync(s => s.GetInvoiceBases(start, end), UpdateInvoiceList);
|
||||
else
|
||||
{
|
||||
start = new DateTime(2023, 1, 1);
|
||||
end = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1);
|
||||
}
|
||||
|
||||
ServiceFacade.DoAccountingServiceAsync(s => s.GetInvoiceBases(start, end), UpdateInvoiceList);
|
||||
}
|
||||
|
||||
private void UpdateInvoiceList(IList<InvoiceBaseDC> dcList)
|
||||
|
||||
Reference in New Issue
Block a user