mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 11:41:09 -04:00
fix: on customer chanage remove selected invoice
This commit is contained in:
@ -514,8 +514,9 @@ function selectNewCustomer(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)
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user