feature: payment instruction & cashier case cicilan dan downpayment

This commit is contained in:
2026-07-21 15:22:18 +07:00
parent d92fb57751
commit a12a34f073
7 changed files with 128 additions and 19 deletions

View File

@@ -19,7 +19,6 @@ export async function lookup_type(token) {
}
}
export async function lookup_banks(token) {
try {
var resp = await axios.post(URL + 'payment/lookup_banks',{token:token});
@@ -39,7 +38,6 @@ export async function lookup_banks(token) {
}
}
export async function lookup_accounts(token) {
try {
var resp = await axios.post(URL + 'payment/lookup_accounts',{token:token});
@@ -59,7 +57,6 @@ export async function lookup_accounts(token) {
}
}
export async function searchcard(token,prm) {
try {
var resp = await axios.post(URL + 'payment/searchcard',{token:token,search:prm});
@@ -117,6 +114,25 @@ export async function payDownpayment(prm) {
}
}
export async function payInstallment(prm) {
try {
var resp = await axios.post(URL + 'payment/payInstallment',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 editpay(prm) {
try {
var resp = await axios.post(URL + 'payment/editpaymanual',prm);