From 676ed6b881fcd02f10cb7e207e46119189ed55ca Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Fri, 17 Sep 2021 12:16:23 +0200 Subject: [PATCH] feat: hide fields in print --- erpnext/accounts/doctype/dunning/dunning.json | 18 ++++++++++++------ .../overdue_payment/overdue_payment.json | 5 ++++- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/erpnext/accounts/doctype/dunning/dunning.json b/erpnext/accounts/doctype/dunning/dunning.json index 85c73a8a74..2f880d115d 100644 --- a/erpnext/accounts/doctype/dunning/dunning.json +++ b/erpnext/accounts/doctype/dunning/dunning.json @@ -126,13 +126,15 @@ "fieldname": "language", "fieldtype": "Link", "label": "Print Language", - "options": "Language" + "options": "Language", + "print_hide": 1 }, { "fieldname": "letter_head", "fieldtype": "Link", "label": "Letter Head", - "options": "Letter Head" + "options": "Letter Head", + "print_hide": 1 }, { "fieldname": "column_break_22", @@ -294,13 +296,15 @@ "fieldname": "customer_address", "fieldtype": "Link", "label": "Customer Address", - "options": "Address" + "options": "Address", + "print_hide": 1 }, { "fieldname": "contact_person", "fieldtype": "Link", "label": "Contact Person", - "options": "Contact" + "options": "Contact", + "print_hide": 1 }, { "fieldname": "dunning_amount", @@ -319,7 +323,8 @@ "fieldname": "cost_center", "fieldtype": "Link", "label": "Cost Center", - "options": "Cost Center" + "options": "Cost Center", + "print_hide": 1 }, { "collapsible": 1, @@ -352,7 +357,8 @@ "fieldname": "company_address", "fieldtype": "Link", "label": "Company Address", - "options": "Address" + "options": "Address", + "print_hide": 1 } ], "is_submittable": 1, diff --git a/erpnext/accounts/doctype/overdue_payment/overdue_payment.json b/erpnext/accounts/doctype/overdue_payment/overdue_payment.json index e5253bd12f..bc351d835a 100644 --- a/erpnext/accounts/doctype/overdue_payment/overdue_payment.json +++ b/erpnext/accounts/doctype/overdue_payment/overdue_payment.json @@ -113,6 +113,7 @@ "fieldname": "discounted_amount", "fieldtype": "Currency", "label": "Discounted Amount", + "print_hide": 1, "read_only": 1 }, { @@ -124,6 +125,7 @@ "fieldtype": "Currency", "label": "Payment Amount (Company Currency)", "options": "Company:company:default_currency", + "print_hide": 1, "read_only": 1 }, { @@ -138,6 +140,7 @@ "fieldname": "payment_schedule", "fieldtype": "Data", "label": "Payment Schedule", + "print_hide": 1, "read_only": 1 }, { @@ -158,7 +161,7 @@ "index_web_pages_for_search": 1, "istable": 1, "links": [], - "modified": "2021-09-15 19:04:54.082880", + "modified": "2021-09-17 12:10:42.278923", "modified_by": "Administrator", "module": "Accounts", "name": "Overdue Payment",