Browse Source

fix: uom search

pull/2/head
wahyun 6 months ago
parent
commit
e4b90a626e
  1. 12
      edit-mode/function/function.js

12
edit-mode/function/function.js

@ -191,15 +191,9 @@ function getSatuan() {
const payload = { const payload = {
"columns": [], "columns": [],
} }
if (role_name !== "Super Admin") { payload.columns.push(
payload.columns.push( { "name": "company_id", "logic_operator": "is null", "value": "", "operator": "AND" },
{ "name": "company_id", "logic_operator": "=", "value": company_id, "operator": "AND" }, )
)
} else {
payload.columns.push(
{ "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`,

Loading…
Cancel
Save