From 5f6a47f99d9006115a523c8820572d391c102968 Mon Sep 17 00:00:00 2001 From: AGHILES667 Date: Mon, 27 Oct 2025 11:36:47 +0100 Subject: [PATCH] FEAT: Add Grant Commission field in Quotation Item --- .../doctype/quotation_item/quotation_item.json | 11 ++++++++++- .../selling/doctype/quotation_item/quotation_item.py | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/erpnext/selling/doctype/quotation_item/quotation_item.json b/erpnext/selling/doctype/quotation_item/quotation_item.json index de4bbaa7a0..c43d0947d4 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.json +++ b/erpnext/selling/doctype/quotation_item/quotation_item.json @@ -56,6 +56,7 @@ "is_free_item", "is_alternative", "has_alternative_item", + "grant_commission", "costs_section", "valuation_rate", "last_purchase_rate", @@ -822,12 +823,20 @@ "label": "Product Bundle", "options": "Product Bundle", "read_only": 1 + }, + { + "default": "0", + "fetch_from": "item_code.grant_commission", + "fieldname": "grant_commission", + "fieldtype": "Check", + "label": "Grant Commission", + "read_only": 1 } ], "idx": 1, "istable": 1, "links": [], - "modified": "2025-02-14 14:53:07.282841", + "modified": "2025-10-27 11:23:03.466883", "modified_by": "Administrator", "module": "Selling", "name": "Quotation Item", diff --git a/erpnext/selling/doctype/quotation_item/quotation_item.py b/erpnext/selling/doctype/quotation_item/quotation_item.py index 27949a4991..932d110ffb 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.py +++ b/erpnext/selling/doctype/quotation_item/quotation_item.py @@ -37,6 +37,7 @@ class QuotationItem(Document): description: DF.TextEditor | None discount_amount: DF.Currency discount_percentage: DF.Percent + grant_commission: DF.Check gross_profit: DF.Currency gross_profit_calculation_rule: DF.Literal[ "Valuation Rate", "Last Purchase Rate", "Supplier Cost Price" -- GitLab