|
|
@ -191,15 +191,9 @@ function getSatuan() { |
|
|
|
const payload = { |
|
|
|
const payload = { |
|
|
|
"columns": [], |
|
|
|
"columns": [], |
|
|
|
} |
|
|
|
} |
|
|
|
if (role_name !== "Super Admin") { |
|
|
|
|
|
|
|
payload.columns.push( |
|
|
|
|
|
|
|
{ "name": "company_id", "logic_operator": "=", "value": company_id, "operator": "AND" }, |
|
|
|
|
|
|
|
) |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
payload.columns.push( |
|
|
|
payload.columns.push( |
|
|
|
{ "name": "company_id", "logic_operator": "is null", "value": "", "operator": "AND" }, |
|
|
|
{ "name": "company_id", "logic_operator": "is null", "value": "", "operator": "AND" }, |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
|
|
|
|
$.ajax({ |
|
|
|
$.ajax({ |
|
|
|
data: JSON.stringify(payload), |
|
|
|
data: JSON.stringify(payload), |
|
|
|
url: `${base_url}satuan/search`, |
|
|
|
url: `${base_url}satuan/search`, |
|
|
|