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

@@ -348,6 +348,37 @@ export default {
}
},
async payInstallment(context, prm) {
context.commit("update_lookup_status", 1)
try {
prm.token = one_token()
let resp = await api.payInstallment(prm)
if (resp.status != "OK") {
context.commit("update_lookup_status", 3)
context.commit("update_lookup_error_message", resp.message)
} else {
context.commit("update_lookup_status", 2)
context.commit("update_lookup_error_message", "")
let data = {
records: resp.data.records.types,
total: resp.data.total
}
let xnumber = resp.data.records.data.numberx
let id = resp.data.records.data.idx
context.commit("update_disable_btn_pay", 'Y')
context.commit("update_idx", id)
context.commit("update_total_payment", 0)
context.commit("update_paynumber", "Payment Instruction nomor <span style='color:red'>" + xnumber + "</span> telah berhasil")
context.commit("update_dialog_pay_success", true)
context.commit("update_in_saving", false)
context.commit("update_xbayar", 0)
}
} catch (e) {
context.commit("update_lookup_status", 3)
context.commit("update_lookup_error_message", e.message)
}
},
async editpay(context, prm) {
context.commit("update_lookup_status", 1)
try {