feature: payment instruction & cashier case cicilan dan downpayment
This commit is contained in:
@@ -1231,8 +1231,14 @@
|
||||
},
|
||||
closeDialogDelete() {
|
||||
let arrbill = this.$store.state.bill.bills
|
||||
var idx = _.findIndex(arrbill, item => item.SupplierInvoiceID === this.$store.state.bill.selected_bill
|
||||
.SupplierInvoiceID)
|
||||
const sel = this.$store.state.bill.selected_bill;
|
||||
var idx = _.findIndex(arrbill, item =>
|
||||
item.type === sel.type && (
|
||||
(sel.type === 'INVOICE' && item.SupplierInvoiceID == sel.SupplierInvoiceID) ||
|
||||
(sel.type === 'DP' && item.DownpaymentID == sel.DownpaymentID) ||
|
||||
(sel.type === 'INSTALLMENT' && item.InstallmentID == sel.InstallmentID)
|
||||
)
|
||||
);
|
||||
this.$store.commit("paymentmanual/update_dialog_delete", false)
|
||||
this.$store.commit("bill/update_selected_bill", {})
|
||||
this.$store.dispatch("bill/search", {
|
||||
@@ -1246,8 +1252,14 @@
|
||||
},
|
||||
closeDialogEdit() {
|
||||
let arrbill = this.$store.state.bill.bills
|
||||
var idx = _.findIndex(arrbill, item => item.SupplierInvoiceID === this.$store.state.bill.selected_bill
|
||||
.SupplierInvoiceID)
|
||||
const sel = this.$store.state.bill.selected_bill;
|
||||
var idx = _.findIndex(arrbill, item =>
|
||||
item.type === sel.type && (
|
||||
(sel.type === 'INVOICE' && item.SupplierInvoiceID == sel.SupplierInvoiceID) ||
|
||||
(sel.type === 'DP' && item.DownpaymentID == sel.DownpaymentID) ||
|
||||
(sel.type === 'INSTALLMENT' && item.InstallmentID == sel.InstallmentID)
|
||||
)
|
||||
);
|
||||
this.$store.commit("paymentmanual/update_dialog_edit", false)
|
||||
this.$store.commit("bill/update_selected_bill", {})
|
||||
this.$store.dispatch("bill/search", {
|
||||
|
||||
Reference in New Issue
Block a user