feature: payment instruction & cashier case cicilan dan downpayment
This commit is contained in:
@@ -457,7 +457,13 @@
|
||||
return `${year}-${month.padStart(2, '0')}-${day.padStart(2, '0')}`
|
||||
},
|
||||
isSelected(p) {
|
||||
return p.SupplierInvoiceID == this.$store.state.bill.selected_bill.SupplierInvoiceID
|
||||
const sel = this.$store.state.bill.selected_bill;
|
||||
if (!sel || !sel.type) return false;
|
||||
return p.type === sel.type && (
|
||||
(sel.type === 'INVOICE' && p.SupplierInvoiceID == sel.SupplierInvoiceID) ||
|
||||
(sel.type === 'DP' && p.DownpaymentID == sel.DownpaymentID) ||
|
||||
(sel.type === 'INSTALLMENT' && p.InstallmentID == sel.InstallmentID)
|
||||
);
|
||||
},
|
||||
closeDialogPaySuccess() {
|
||||
this.$store.commit("bill/update_dialog_pay_success", false)
|
||||
|
||||
Reference in New Issue
Block a user