From 159134a8506cfeccf444918df03e96ddca2e63e6 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Wed, 11 Dec 2019 14:40:27 +0530 Subject: [PATCH] fix(InvoiceForm): Move customer field to left - and Date to right - Remove party address information --- src/pages/InvoiceForm.vue | 62 +++++++++++---------------------------- 1 file changed, 17 insertions(+), 45 deletions(-) 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'); },