fix: on customer chanage remove selected invoice

This commit is contained in:
yogesh_gohil
2021-12-02 11:57:33 +05:30
parent faf8c804a9
commit 0545cdbe6f

View File

@ -514,8 +514,9 @@ function selectNewCustomer(id) {
if (route.params.id) params.model_id = route.params.id if (route.params.id) params.model_id = route.params.id
paymentStore.currentPayment.invoice_id = null paymentStore.currentPayment.invoice_id = selectedInvoice.value = null
paymentStore.currentPayment.amount = 100
invoiceList.value = []
paymentStore.getNextNumber(params, true) paymentStore.getNextNumber(params, true)
} }
</script> </script>