feature: payment instruction & cashier case cicilan dan downpayment
This commit is contained in:
@@ -1167,11 +1167,15 @@
|
||||
tanggalbayar: this.xtanggalbayar,
|
||||
type: this.$store.state.bill.selected_bill.type
|
||||
}
|
||||
// console.log(prm)
|
||||
|
||||
if (this.$store.state.bill.selected_bill.type == 'DP') {
|
||||
prm.orderid = this.$store.state.bill.selected_bill.DownpaymentID
|
||||
this.$store.dispatch("paymentmanual/payDownpayment", prm)
|
||||
} else if (this.$store.state.bill.selected_bill.type == 'INSTALLMENT') {
|
||||
prm.orderid = this.$store.state.bill.selected_bill.InstallmentID
|
||||
this.$store.dispatch("paymentmanual/payInstallment", prm)
|
||||
} else {
|
||||
prm.orderid = this.$store.state.bill.selected_bill.SupplierInvoiceID
|
||||
this.$store.dispatch("paymentmanual/pay", prm)
|
||||
}
|
||||
},
|
||||
@@ -1185,10 +1189,21 @@
|
||||
orderid: this.$store.state.bill.selected_bill.SupplierInvoiceID,
|
||||
headerid: this.$store.state.bill.selected_bill.SupplierPaymentID,
|
||||
xnumber: this.$store.state.bill.selected_bill.SupplierPaymentNumber,
|
||||
tanggalbayar : this.xtanggalbayar
|
||||
tanggalbayar : this.xtanggalbayar,
|
||||
type: this.$store.state.bill.selected_bill.type
|
||||
}
|
||||
//console.log(prm.amount)
|
||||
this.$store.dispatch("paymentmanual/editpay", prm)
|
||||
if (this.$store.state.bill.selected_bill.type == 'DP') {
|
||||
prm.orderid = this.$store.state.bill.selected_bill.DownpaymentID
|
||||
this.$store.dispatch("paymentmanual/editpay", prm)
|
||||
} else if (this.$store.state.bill.selected_bill.type == 'INSTALLMENT') {
|
||||
prm.orderid = this.$store.state.bill.selected_bill.InstallmentID
|
||||
this.$store.dispatch("paymentmanual/editpay", prm)
|
||||
} else {
|
||||
prm.orderid = this.$store.state.bill.selected_bill.SupplierInvoiceID
|
||||
this.$store.dispatch("paymentmanual/editpay", prm)
|
||||
}
|
||||
|
||||
},
|
||||
deleteNote(note, idx) {
|
||||
this.$store.commit("paymentmanual/update_note_delete", "")
|
||||
|
||||
Reference in New Issue
Block a user