Browse Source

fix: uom search

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

6
edit-mode/function/function.js

@ -191,15 +191,9 @@ function getSatuan() {
const payload = {
"columns": [],
}
if (role_name !== "Super Admin") {
payload.columns.push(
{ "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({
data: JSON.stringify(payload),
url: `${base_url}satuan/search`,

Loading…
Cancel
Save