diff --git a/src/pages/InvoiceForm.vue b/src/pages/InvoiceForm.vue index ce7e2d5a..89bb0462 100644 --- a/src/pages/InvoiceForm.vue +++ b/src/pages/InvoiceForm.vue @@ -80,23 +80,24 @@
-
+

+ {{ doc._notInserted ? _('New Invoice') : doc.name }} +

+
-

- {{ doc._notInserted ? _('New Invoice') : doc.name }} -

-
- {{ partyDoc.addressDisplay }} -
-
- GSTIN: {{ partyDoc.gstin }} -
@@ -204,7 +191,6 @@ export default { data() { return { doc: null, - partyDoc: null, printSettings: null, companyName: null }; @@ -276,12 +262,6 @@ export default { } throw error; } - this.doc.on('change', ({ changed }) => { - if (changed === this.partyField.fieldname) { - this.fetchPartyDoc(); - } - }); - this.fetchPartyDoc(); this.printSettings = await frappe.getSingle('PrintSettings'); this.companyName = ( await frappe.getSingle('AccountingSettings') @@ -309,14 +289,6 @@ export default { handleError(e) { handleErrorWithDialog(e, this.doc); }, - async fetchPartyDoc() { - if (this.doc[this.partyField.fieldname]) { - this.partyDoc = await frappe.getDoc( - 'Party', - this.doc[this.partyField.fieldname] - ); - } - }, openInvoiceSettings() { openSettings('Invoice'); },