mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
contract template obligation contract template dependency UI
This commit is contained in:
@@ -31,6 +31,7 @@ class ContractTemplateObligationModule extends BaseController
|
||||
{
|
||||
General::storeCachePerviousQuery($request->query(), 'contract_template_obligation_query');
|
||||
|
||||
$not_hash_id = $not_id = $request->get('not_id', []);
|
||||
$contract_template_hash_id = $contract_template_id = $request->get('contract_template_id', []);
|
||||
|
||||
$name = $request->get('name', null);
|
||||
@@ -40,6 +41,11 @@ class ContractTemplateObligationModule extends BaseController
|
||||
|
||||
$query = ContractTemplateObligation::query();
|
||||
|
||||
if (!empty($not_id)) {
|
||||
$not_id = Hasher::decodeArray('contract_template_obligations', $not_id);
|
||||
$query->whereNotIn('id', $not_id);
|
||||
}
|
||||
|
||||
if (!empty($contract_template_id)) {
|
||||
$contract_template_id = Hasher::decodeArray('contract_templates', $contract_template_id);
|
||||
$query->whereIn('contract_template_id', $contract_template_id);
|
||||
|
||||
Reference in New Issue
Block a user