Fix Invoice/Estimate template issues and Add Payment Receipt, Custom Payment Modes and Item units

This commit is contained in:
Jay Makwana
2020-01-05 07:22:36 +00:00
committed by Mohit Panjwani
parent 56a955befd
commit 4c33a5d88c
112 changed files with 5050 additions and 331 deletions

View File

@ -85,7 +85,8 @@
</div>
<div class="customer-content mb-1">
<label class="email">{{ selectedCustomer.name }}</label>
<label class="action" @click="removeCustomer">{{ $t('general.remove') }}</label>
<label class="action" @click="editCustomer">{{ $t('general.edit') }}</label>
<label class="action" @click="removeCustomer">{{ $t('general.deselect') }}</label>
</div>
</div>
@ -195,6 +196,7 @@
:index="index"
:item-data="item"
:currency="currency"
:estimate-items="newEstimate.items"
:tax-per-item="taxPerItem"
:discount-per-item="discountPerItem"
@remove="removeItem"
@ -589,6 +591,14 @@ export default {
removeCustomer () {
this.resetSelectedCustomer()
},
editCustomer () {
this.openModal({
'title': this.$t('customers.edit_customer'),
'componentName': 'CustomerModal',
'id': this.selectedCustomer.id,
'data': this.selectedCustomer
})
},
openTemplateModal () {
this.openModal({
'title': this.$t('general.choose_template'),