hi
Can you share the full code of your DataSeedContributor
U need to add some sample master data in site settings,tax settings and product settings
You can create a DataSeedContributor
to seed these data like IdentityServerDataSeedContributor
.
BTW: Never call the Result of an asynchronous method but use await
Maybe this is the cause of the error.
public async Task<List<PurchaseOrder>> GetNearDueDatesAsync()
{
var CurrentDate = DateTime.Today;
var statusId = _statusRepository.GetListAsync().Result.FirstOrDefault(r => r.Name.ToUpper() == StatusConsts.OpenStatus.ToUpper()).Id;
var query = (await GetDbContextAsync()).PurchaseOrders
.Where(x => x.DeliveryDueDate.Date >= CurrentDate.Date && x.StatusId == statusId);
return await query.Take(DashboardConsts.ShowDataCount).ToListAsync();
}
to
public async Task<List<PurchaseOrder>> GetNearDueDatesAsync()
{
var CurrentDate = DateTime.Today;
var statusId = (await _statusRepository.GetListAsync()).FirstOrDefault(r => r.Name.ToUpper() == StatusConsts.OpenStatus.ToUpper()).Id;
var query = (await GetDbContextAsync()).PurchaseOrders
.Where(x => x.DeliveryDueDate.Date >= CurrentDate.Date && x.StatusId == statusId);
return await query.Take(DashboardConsts.ShowDataCount).ToListAsync();
}
``
hi
I downloaded your project, can you share the steps?
Have you tried the new database?
hi
We will release a new version soon, you can try it again. Thanks
Can you provide a project so that I can reproduce the problem? liming.ma@volosoft.com
You can send email to info@abp.io to request to change a API Key.
hi
I will check it, Please share the commercial project via email, Thanks.
Waiting your good news.