From e5a30e3d6b20bdcef14f73a1f85dba829f17365f Mon Sep 17 00:00:00 2001 From: Charles-Henri Decultot Date: Mon, 20 Jan 2025 13:54:31 +0100 Subject: [PATCH] fix: Don't copy Is Down Payment Invoice --- .../doctype/sales_invoice/sales_invoice.json | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index 3c2a95f5e7..a80715cbf0 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -31,8 +31,6 @@ "update_billed_amount_in_delivery_note", "is_debit_note", "amended_from", - "down_payment_section", - "down_payment_against", "accounting_dimensions_section", "cost_center", "dimension_col_break", @@ -1639,7 +1637,9 @@ "depends_on": "eval:!doc.is_return", "fieldname": "is_down_payment_invoice", "fieldtype": "Check", - "label": "Is Down Payment Invoice" + "label": "Is Down Payment Invoice", + "no_copy": 1, + "print_hide": 1 }, { "default": "0", @@ -1649,19 +1649,6 @@ "label": "Is Consolidated", "read_only": 1 }, - { - "depends_on": "eval:doc.is_down_payment_invoice", - "fieldname": "down_payment_section", - "fieldtype": "Section Break", - "label": "Down Payment" - }, - { - "fieldname": "down_payment_against", - "fieldtype": "Link", - "label": "Down Payment Against", - "options": "Sales Invoice", - "read_only": 1 - }, { "fetch_from": "company.tax_id", "fieldname": "company_tax_id", @@ -1938,7 +1925,7 @@ "link_fieldname": "consolidated_invoice" } ], - "modified": "2024-05-23 14:02:28.549041", + "modified": "2025-01-20 11:38:30.446370", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice", -- GitLab