mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-31 13:41:09 -04:00 
			
		
		
		
	Merge branch 'record-payment' into 'master'
fix record payment from view invoice See merge request mohit.panjvani/crater-web!79
This commit is contained in:
		| @ -183,7 +183,8 @@ export default { | ||||
|       customerList: [], | ||||
|       invoiceList: [], | ||||
|       isLoading: false, | ||||
|       maxPayableAmount: Number.MAX_SAFE_INTEGER | ||||
|       maxPayableAmount: Number.MAX_SAFE_INTEGER, | ||||
|       isSettingInitialData: true | ||||
|     } | ||||
|   }, | ||||
|   validations () { | ||||
| @ -247,7 +248,12 @@ export default { | ||||
|     customer (newValue) { | ||||
|       this.formData.user_id = newValue.id | ||||
|       if (!this.isEdit) { | ||||
|         this.invoice = null | ||||
|         if (this.isSettingInitialData) { | ||||
|           this.isSettingInitialData = false | ||||
|         } else { | ||||
|           this.invoice = null | ||||
|           this.formData.invoice_id = null | ||||
|         } | ||||
|         this.formData.amount = 0 | ||||
|         this.invoiceList = [] | ||||
|         this.fetchCustomerInvoices(newValue.id) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user