unblock hangfire completed
This commit is contained in:
@@ -84,7 +84,7 @@ public class JobSchedulerRegistrator
|
||||
RecurringJob.AddOrUpdate(
|
||||
"InstitutionContract.UnBlock",
|
||||
() => UnBlock(),
|
||||
"*/1 * * * *"
|
||||
"*/10 * * * *"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -1234,8 +1234,7 @@ public class InstitutionContractSmsServiceRepository : RepositoryBase<long, Inst
|
||||
|
||||
|
||||
var balance = debtor - creditor;
|
||||
if (balance > 0)
|
||||
{
|
||||
|
||||
var jobRelation = "بابت قرارداد مابین (روابط کار)";
|
||||
var taxAndFinancial = "بابت قرارداد مابین (حسابداری و مالیات)";
|
||||
|
||||
@@ -1258,9 +1257,9 @@ public class InstitutionContractSmsServiceRepository : RepositoryBase<long, Inst
|
||||
var res = _personalContractingPartyRepository.Get(item.ContractingPartyId);
|
||||
var blockTime = res.BlockTimes + 1;
|
||||
res.DisableBlock(blockTime);
|
||||
await _context.SaveChangesAsync();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1291,8 +1290,7 @@ public class InstitutionContractSmsServiceRepository : RepositoryBase<long, Inst
|
||||
var creditor = transactions.FinancialTransactionList.Sum(x => x.Creditor);
|
||||
|
||||
var balance = debtor - creditor;
|
||||
if (balance > 0)
|
||||
{
|
||||
|
||||
|
||||
var instalment = item.InstallmentList
|
||||
.FirstOrDefault()!.AmountDouble;
|
||||
@@ -1306,7 +1304,7 @@ public class InstitutionContractSmsServiceRepository : RepositoryBase<long, Inst
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1289,7 +1289,7 @@
|
||||
تمدید قرارداد
|
||||
</p>
|
||||
</a>
|
||||
<a permission="30715" class="btn btn-inverse pull-left rad" style="background-color: #f57373;border: 1px solid #f57373;margin-left:5px;"
|
||||
<a class="btn btn-inverse pull-left rad" style="background-color: #f57373;border: 1px solid #f57373;margin-left:5px;"
|
||||
asp-page="./FinancialStatments" asp-route-name="@item.ContractingPartyName" asp-route-id="@item.ContractingPartyId" asp-route-pageNumber="0">
|
||||
<i class="fa fa-file-text-o faSize"></i>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user