add modules folder based on s_menu

This commit is contained in:
2026-06-30 10:16:11 +07:00
parent 315b657ee3
commit a1aab09ac9
625 changed files with 192283 additions and 794 deletions

View File

@@ -0,0 +1,101 @@
const URL = "/one-api/mockup/purchase/cashier/PurchaseRequestDirectAdjusment/";
export async function search(params) {
try {
var resp = await axios.post(URL + "search", params)
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function searchDetail(params) {
try {
var resp = await axios.post(URL + "searchDetail", params)
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function updateAdjusment(params) {
try {
var resp = await axios.post(URL + "updateAdjustment", params)
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function approveRealisasi(params) {
try {
var resp = await axios.post(URL + "approveRealisasi", params);
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function getListAccount(params) {
try {
var resp = await axios.post(URL + "getListAccount", params);
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}