From 0e356dc2e3a2154e3b9f62555d43872a372f2a03 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 23 Feb 2026 13:38:28 +0530 Subject: [PATCH] fix: sales and purchase modules forms clean-up --- .../purchase_invoice/purchase_invoice.json | 12 ++--- .../doctype/sales_invoice/sales_invoice.json | 24 ++++++--- .../purchase_order/purchase_order.json | 10 ++-- .../doctype/sales_order/sales_order.json | 6 +-- .../doctype/delivery_note/delivery_note.json | 52 ++++++++++++------- .../purchase_receipt/purchase_receipt.json | 10 ++-- 6 files changed, 68 insertions(+), 46 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json index f11396d9e35..3926e27e519 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.json @@ -86,18 +86,18 @@ "taxes_and_charges_deducted", "total_taxes_and_charges", "totals_section", + "use_company_roundoff_cost_center", "grand_total", + "in_words", + "column_break8", "disable_rounded_total", "rounding_adjustment", - "column_break8", - "use_company_roundoff_cost_center", - "in_words", "rounded_total", "base_totals_section", "base_grand_total", - "base_rounding_adjustment", - "column_break_hcca", "base_in_words", + "column_break_hcca", + "base_rounding_adjustment", "base_rounded_total", "section_break_ttrv", "total_advance", @@ -1689,7 +1689,7 @@ "idx": 204, "is_submittable": 1, "links": [], - "modified": "2026-02-05 20:45:16.964500", + "modified": "2026-02-23 13:23:57.269770", "modified_by": "Administrator", "module": "Accounts", "name": "Purchase Invoice", diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json index 4fd8f9e6e79..b577d599c6e 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.json +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.json @@ -78,21 +78,23 @@ "column_break_47", "total_taxes_and_charges", "totals_section", + "use_company_roundoff_cost_center", "grand_total", - "rounding_adjustment", "in_words", "column_break5", - "rounded_total", "disable_rounded_total", - "total_advance", - "outstanding_amount", - "use_company_roundoff_cost_center", + "rounding_adjustment", + "rounded_total", "base_totals_section", "base_grand_total", - "base_rounding_adjustment", "base_in_words", "column_break_xjag", + "base_rounding_adjustment", "base_rounded_total", + "section_break_vacb", + "total_advance", + "column_break_rdks", + "outstanding_amount", "section_tax_withholding_entry", "tax_withholding_group", "ignore_tax_withholding_threshold", @@ -2307,6 +2309,14 @@ "fieldname": "utm_analytics_section", "fieldtype": "Section Break", "label": "UTM Analytics" + }, + { + "fieldname": "section_break_vacb", + "fieldtype": "Section Break" + }, + { + "fieldname": "column_break_rdks", + "fieldtype": "Column Break" } ], "grid_page_length": 50, @@ -2320,7 +2330,7 @@ "link_fieldname": "consolidated_invoice" } ], - "modified": "2026-02-10 11:59:07.819903", + "modified": "2026-02-23 13:29:00.301842", "modified_by": "Administrator", "module": "Accounts", "name": "Sales Invoice", diff --git a/erpnext/buying/doctype/purchase_order/purchase_order.json b/erpnext/buying/doctype/purchase_order/purchase_order.json index 8c5f2acd694..33e6f99626f 100644 --- a/erpnext/buying/doctype/purchase_order/purchase_order.json +++ b/erpnext/buying/doctype/purchase_order/purchase_order.json @@ -77,16 +77,16 @@ "total_taxes_and_charges", "totals_section", "grand_total", + "in_words", + "column_break4", "disable_rounded_total", "rounding_adjustment", - "column_break4", - "in_words", "rounded_total", "base_totals_section", "base_grand_total", - "base_rounding_adjustment", - "column_break_jkoz", "base_in_words", + "column_break_jkoz", + "base_rounding_adjustment", "base_rounded_total", "section_break_tnkm", "advance_paid", @@ -1318,7 +1318,7 @@ "idx": 105, "is_submittable": 1, "links": [], - "modified": "2026-02-06 17:07:24.249692", + "modified": "2026-02-23 13:22:33.323946", "modified_by": "Administrator", "module": "Buying", "name": "Purchase Order", diff --git a/erpnext/selling/doctype/sales_order/sales_order.json b/erpnext/selling/doctype/sales_order/sales_order.json index 47c2da2cc70..b217a8c67a3 100644 --- a/erpnext/selling/doctype/sales_order/sales_order.json +++ b/erpnext/selling/doctype/sales_order/sales_order.json @@ -73,14 +73,14 @@ "in_words", "disable_rounded_total", "column_break_nuxg", - "rounded_total", "rounding_adjustment", + "rounded_total", "base_totals_section", "base_grand_total", "base_in_words", "column_break_bgfw", - "base_rounded_total", "base_rounding_adjustment", + "base_rounded_total", "section_break_efew", "advance_paid", "additional_discount_section", @@ -1731,7 +1731,7 @@ "idx": 105, "is_submittable": 1, "links": [], - "modified": "2026-02-10 11:55:52.796522", + "modified": "2026-02-23 13:25:56.665392", "modified_by": "Administrator", "module": "Selling", "name": "Sales Order", diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.json b/erpnext/stock/doctype/delivery_note/delivery_note.json index 35e96aa8ce1..11c8bc7b754 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.json +++ b/erpnext/stock/doctype/delivery_note/delivery_note.json @@ -66,17 +66,19 @@ "base_total_taxes_and_charges", "column_break_47", "total_taxes_and_charges", - "totals", - "base_grand_total", - "base_rounding_adjustment", - "base_rounded_total", - "base_in_words", - "column_break3", + "totals_section", "grand_total", + "in_words", + "column_break3", + "disable_rounded_total", "rounding_adjustment", "rounded_total", - "in_words", - "disable_rounded_total", + "base_totals_section", + "base_grand_total", + "base_in_words", + "column_break_ydwe", + "base_rounding_adjustment", + "base_rounded_total", "section_break_49", "apply_discount_on", "base_discount_amount", @@ -751,17 +753,10 @@ "options": "currency", "print_hide": 1 }, - { - "fieldname": "totals", - "fieldtype": "Section Break", - "label": "Totals", - "oldfieldtype": "Section Break", - "options": "fa fa-money" - }, { "fieldname": "base_grand_total", "fieldtype": "Currency", - "label": "Grand Total (Company Currency)", + "label": "Grand Total", "oldfieldname": "grand_total", "oldfieldtype": "Currency", "options": "Company:company:default_currency", @@ -774,7 +769,7 @@ "depends_on": "eval:!doc.disable_rounded_total", "fieldname": "base_rounding_adjustment", "fieldtype": "Currency", - "label": "Rounding Adjustment (Company Currency)", + "label": "Rounding Adjustment", "no_copy": 1, "options": "Company:company:default_currency", "print_hide": 1, @@ -784,7 +779,7 @@ "depends_on": "eval:!doc.disable_rounded_total", "fieldname": "base_rounded_total", "fieldtype": "Currency", - "label": "Rounded Total (Company Currency)", + "label": "Rounded Total", "oldfieldname": "rounded_total", "oldfieldtype": "Currency", "options": "Company:company:default_currency", @@ -797,7 +792,7 @@ "description": "In Words will be visible once you save the Delivery Note.", "fieldname": "base_in_words", "fieldtype": "Data", - "label": "In Words (Company Currency)", + "label": "In Words", "length": 240, "oldfieldname": "in_words", "oldfieldtype": "Data", @@ -1435,13 +1430,30 @@ { "fieldname": "column_break_neoj", "fieldtype": "Column Break" + }, + { + "fieldname": "totals_section", + "fieldtype": "Section Break", + "label": "Totals", + "oldfieldtype": "Section Break", + "options": "fa fa-money" + }, + { + "fieldname": "base_totals_section", + "fieldtype": "Section Break", + "label": "Totals (Company Currency)", + "options": "Company:company:default_currency" + }, + { + "fieldname": "column_break_ydwe", + "fieldtype": "Column Break" } ], "icon": "fa fa-truck", "idx": 146, "is_submittable": 1, "links": [], - "modified": "2026-02-10 14:35:08.523130", + "modified": "2026-02-23 23:04:39.097097", "modified_by": "Administrator", "module": "Stock", "name": "Delivery Note", diff --git a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json index b16dc1b32e1..e13837b5f10 100755 --- a/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json +++ b/erpnext/stock/doctype/purchase_receipt/purchase_receipt.json @@ -79,16 +79,16 @@ "total_taxes_and_charges", "totals_section", "grand_total", + "in_words", + "column_break_50", "disable_rounded_total", "rounding_adjustment", - "column_break_50", - "in_words", "rounded_total", "base_totals_section", "base_grand_total", - "base_rounding_adjustment", - "column_break_ugyv", "base_in_words", + "column_break_ugyv", + "base_rounding_adjustment", "base_rounded_total", "section_break_42", "apply_discount_on", @@ -1302,7 +1302,7 @@ "idx": 261, "is_submittable": 1, "links": [], - "modified": "2026-02-04 14:36:41.087460", + "modified": "2026-02-23 16:56:41.075091", "modified_by": "Administrator", "module": "Stock", "name": "Purchase Receipt",