const URL = "/one-api/cpone/masterdata/"; export async function lookupbyname(prm) { try { var resp = await axios.post(URL + 'maplocaltest/lookupbranchbyname', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function addfisik(prm) { try { var resp = await axios.post(URL + 'maplocaltest/addfisik', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } }