update proses add akun pusat media jurnal & move barcode to serah terima

This commit is contained in:
2026-05-13 16:52:20 +07:00
parent 38a182641a
commit d018e85927
44 changed files with 14646 additions and 12 deletions

View File

@@ -0,0 +1,59 @@
const URL = "/one-api/mockup/supplierpaymentcashierv5/";
export async function search(prm) {
try {
var resp = await axios.post(URL + 'bill/search', 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 selectpaymenttype(prm) {
try {
var resp = await axios.post(URL + 'payment/selectpaymenttype',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 pay(prm) {
try {
// var resp = await axios.post(URL + 'payment/paymulti',prm);
var resp = await axios.post(URL + 'PaymentV2/payinvoicemulti',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
};
}
}