Checking the permission for next status in payment request not current

This commit is contained in:
ashutosh.nehete 2025-11-06 15:10:54 +05:30
parent 1e7363ea2f
commit 9ee9d30121

View File

@ -1862,7 +1862,7 @@ namespace Marco.Pms.Services.Service
{
await using var dbContext = await _dbContextFactory.CreateDbContextAsync();
return await dbContext.StatusPermissionMapping
.Where(spm => spm.StatusId == paymentRequest.ExpenseStatusId)
.Where(spm => spm.StatusId == model.StatusId)
.ToListAsync();
});