BUG: CostBearerOid statt OrganisationOid
This commit is contained in:
@@ -18,7 +18,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
{
|
||||
public partial class NewGkvAbrechnungPopUpView : BeWoView
|
||||
{
|
||||
private long? _LoadedInvoiceBaseOid;
|
||||
private long? _LoadedCostBearerOid;
|
||||
|
||||
private List<InvoiceBaseDC> _InvoiceBaseDCs;
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace BeWo.View.Detail.Accounting
|
||||
}
|
||||
public void Clear()
|
||||
{
|
||||
_LoadedInvoiceBaseOid = null;
|
||||
_LoadedCostBearerOid = null;
|
||||
popupedit_GkvSearch.Text = string.Empty;
|
||||
popupedit_GkvSearch.Focus();
|
||||
}
|
||||
@@ -156,19 +156,17 @@ namespace BeWo.View.Detail.Accounting
|
||||
popupedit_GkvSearch.Text = e.Data.ToString();
|
||||
popupedit_GkvSearch.Focus();
|
||||
|
||||
RefreshInvoiceBases(e.Data.OrganisationOid);
|
||||
RefreshInvoiceBases(e.Data.CostBearerOid);
|
||||
}
|
||||
|
||||
private void RefreshInvoiceBases() => RefreshInvoiceBases(_LoadedInvoiceBaseOid);
|
||||
private void RefreshInvoiceBases(DateTime? start, DateTime? ende) => RefreshInvoiceBases(_LoadedInvoiceBaseOid, start ?? FilterStart, ende ?? FilterEnde);
|
||||
private void RefreshInvoiceBases(long? costOid) => RefreshInvoiceBases(costOid, FilterStart, FilterEnde);
|
||||
private void RefreshInvoiceBases(long? costOid, DateTime? start, DateTime? ende)
|
||||
private void RefreshInvoiceBases() => RefreshInvoiceBases(_LoadedCostBearerOid);
|
||||
private void RefreshInvoiceBases(long? costBearerOid)
|
||||
{
|
||||
if (costOid != null && start != null && ende != null && ende >= start)
|
||||
if (costBearerOid is long coid && FilterStart is DateTime start && FilterEnde is DateTime ende && ende >= start)
|
||||
{
|
||||
_LoadedInvoiceBaseOid = costOid;
|
||||
_LoadedCostBearerOid = costBearerOid;
|
||||
|
||||
ServiceFacade.DoAccountingServiceAsync(s => s.GetInvoiceBasesForCostBearerAndIdAndIsUsed(start, ende, (long)costOid, "RechnungSoziotherapie"), UpdateInvoiceList);
|
||||
ServiceFacade.DoAccountingServiceAsync(s => s.GetInvoiceBasesForCostBearerAndIdAndIsUsed(start, ende, coid, "RechnungSoziotherapie"), UpdateInvoiceList);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user