From 3f53af8b1fe73b92344db95967385c9933c3c689 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Sun, 21 Jun 2026 17:30:20 +0530 Subject: [PATCH] fix: placement of fields (#56257) --- .../purchase_taxes_and_charges.json | 21 ++++++++++++++----- .../purchase_taxes_and_charges.py | 1 + 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.json b/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.json index 8a4d95c6421..57bb6971fde 100644 --- a/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.json +++ b/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.json @@ -11,14 +11,16 @@ "add_deduct_tax", "charge_type", "row_id", - "allocate_full_amount_to_stock_items", - "included_in_print_rate", - "included_in_paid_amount", "col_break1", "account_head", "description", + "section_break_mvae", "is_tax_withholding_account", "set_by_item_tax_template", + "allocate_full_amount_to_stock_items", + "column_break_odzz", + "included_in_print_rate", + "included_in_paid_amount", "section_break_10", "rate", "accounting_dimensions_section", @@ -85,7 +87,8 @@ "description": "If checked, the entire amount (e.g. Freight) is allocated to the valuation of stock & asset items only. If unchecked, the amount is distributed across all items and the portion belonging to non-stock items is not added to valuation.", "fieldname": "allocate_full_amount_to_stock_items", "fieldtype": "Check", - "label": "Allocate Full Amount to Stock Items" + "label": "Allocate Full Amount to Stock Items", + "show_description_on_click": 1 }, { "default": "0", @@ -281,13 +284,21 @@ "label": "Don't Recompute Tax", "print_hide": 1, "read_only": 1 + }, + { + "fieldname": "section_break_mvae", + "fieldtype": "Section Break" + }, + { + "fieldname": "column_break_odzz", + "fieldtype": "Column Break" } ], "grid_page_length": 50, "idx": 1, "istable": 1, "links": [], - "modified": "2025-11-24 18:22:56.886010", + "modified": "2026-06-21 17:08:57.096729", "modified_by": "Administrator", "module": "Accounts", "name": "Purchase Taxes and Charges", diff --git a/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.py b/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.py index 4e054593455..9426fa5cc02 100644 --- a/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.py +++ b/erpnext/accounts/doctype/purchase_taxes_and_charges/purchase_taxes_and_charges.py @@ -17,6 +17,7 @@ class PurchaseTaxesandCharges(Document): account_currency: DF.Link | None account_head: DF.Link add_deduct_tax: DF.Literal["Add", "Deduct"] + allocate_full_amount_to_stock_items: DF.Check base_net_amount: DF.Currency base_tax_amount: DF.Currency base_tax_amount_after_discount_amount: DF.Currency