diff --git a/erpnext/selling/doctype/quotation_item/quotation_item.json b/erpnext/selling/doctype/quotation_item/quotation_item.json index 7cfde7954989ba16b94876647634af5a1dbeddb0..1aa86ae5391b76f4702c0397a2b7e81ad85c189e 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.json +++ b/erpnext/selling/doctype/quotation_item/quotation_item.json @@ -14,6 +14,7 @@ "is_free_item", "is_alternative", "has_alternative_item", + "grant_commission", "section_break_5", "description", "item_group", @@ -812,12 +813,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-08-26 20:31:47.775890", + "modified": "2025-10-24 16:05:10.150394", "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 19a56e9cc75709b82b5471996371e5b26c4c6f9c..480d5475435f2dc48de214751a21c579de47e528 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.py +++ b/erpnext/selling/doctype/quotation_item/quotation_item.py @@ -38,10 +38,9 @@ class QuotationItem(Document): discount_amount: DF.Currency discount_percentage: DF.Percent distributed_discount_amount: DF.Currency + grant_commission: DF.Check gross_profit: DF.Currency - gross_profit_calculation_rule: DF.Literal[ - "Valuation Rate", "Last Purchase Rate", "Supplier Cost Price" - ] + gross_profit_calculation_rule: DF.Literal["Valuation Rate", "Last Purchase Rate", "Supplier Cost Price"] gross_profit_percentage: DF.Percent has_alternative_item: DF.Check image: DF.Attach | None @@ -85,3 +84,4 @@ class QuotationItem(Document): weight_per_unit: DF.Float weight_uom: DF.Link | None # end: auto-generated types +