I want to find the financial period based on the date. Below is the code I have written but it feels something is wrong here. When I debug it says Model.cs not found when I execute view.SelectMulti.
Can anyone help me here. Below is the code snippet.
Filter is my own custom DAC for the filter.
var query = new SelectFrom<FinPeriod>.
Where<Filter.fromDate.FromCurrent.IsNull.Or<
Filter.fromDate.IsBetween<FinPeriod.startDate.FromCurrent, FinPeriod.endDate.FromCurrent>>>();
var view = new PXView(this, true, query);
var finPeriods = view.SelectMulti(null);
Thanks