Merge Invoice and Bill into Document
This commit is contained in:
		
							
								
								
									
										24
									
								
								resources/assets/js/mixins/global.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								resources/assets/js/mixins/global.js
									
									
									
									
										vendored
									
									
								
							| @@ -3,6 +3,10 @@ import Vue from 'vue'; | ||||
| import axios from 'axios'; | ||||
|  | ||||
| import DropzoneFileUpload from './../components/Inputs/DropzoneFileUpload'; | ||||
| import AkauntingContactCard from './../components/AkauntingContactCard'; | ||||
| import AkauntingCompanyEdit from './../components/AkauntingCompanyEdit'; | ||||
| import AkauntingEditItemColumns from './../components/AkauntingEditItemColumns'; | ||||
| import AkauntingItemButton from './../components/AkauntingItemButton'; | ||||
| import AkauntingSearch from './../components/AkauntingSearch'; | ||||
| import AkauntingModal from './../components/AkauntingModal'; | ||||
| import AkauntingMoney from './../components/AkauntingMoney'; | ||||
| @@ -27,6 +31,10 @@ import { concat } from 'lodash'; | ||||
| export default { | ||||
|     components: { | ||||
|         DropzoneFileUpload, | ||||
|         AkauntingContactCard, | ||||
|         AkauntingCompanyEdit, | ||||
|         AkauntingEditItemColumns, | ||||
|         AkauntingItemButton, | ||||
|         AkauntingSearch, | ||||
|         AkauntingRadioGroup, | ||||
|         AkauntingSelect, | ||||
| @@ -51,7 +59,7 @@ export default { | ||||
|     data: function () { | ||||
|         return { | ||||
|             component: '', | ||||
|             currency: null, | ||||
|             currency: null | ||||
|         } | ||||
|     }, | ||||
|  | ||||
| @@ -391,5 +399,17 @@ export default { | ||||
|                 }) | ||||
|             }); | ||||
|         }, | ||||
|  | ||||
|         // Change Contact Card set form fields.. | ||||
|         onChangeContactCard(contact) { | ||||
|             this.form.contact_id = contact.id; | ||||
|             this.form.contact_name = contact.name; | ||||
|             this.form.contact_email = contact.email; | ||||
|             this.form.contact_tax_number = contact.tax_number; | ||||
|             this.form.contact_phone = contact.phone; | ||||
|             this.form.contact_address = contact.address; | ||||
|  | ||||
|             this.form.currency_code = contact.currency_code; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user