Skip to content

Commit

Permalink
fix: add accounting dimensions section in sales order item
Browse files Browse the repository at this point in the history
(cherry picked from commit 7d47869)

# Conflicts:
#	erpnext/selling/doctype/sales_order_item/sales_order_item.json
  • Loading branch information
Sugesh393 authored and mergify[bot] committed Feb 18, 2025
1 parent 8da1348 commit b32e4da
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
40 changes: 39 additions & 1 deletion erpnext/selling/doctype/sales_order_item/sales_order_item.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@
"purchase_order",
"column_break_89",
"material_request_item",
"purchase_order_item"
"purchase_order_item",
"accounting_dimensions_section",
"cost_center",
"column_break_ihdh",
"project"
],
"fields": [
{
Expand Down Expand Up @@ -926,12 +930,46 @@
"fieldname": "available_quantity_section",
"fieldtype": "Section Break",
"label": "Available Quantity"
},
{
"collapsible": 1,
"fieldname": "accounting_dimensions_section",
"fieldtype": "Section Break",
"label": "Accounting Dimensions"
},
{
"allow_on_submit": 1,
"default": ":Company",
"fieldname": "cost_center",
"fieldtype": "Link",
"label": "Cost Center",
"options": "Cost Center",
"print_hide": 1,
"print_width": "120px",
"reqd": 1,
"width": "120px"
},
{
"fieldname": "column_break_ihdh",
"fieldtype": "Column Break"
},
{
"allow_on_submit": 1,
"fieldname": "project",
"fieldtype": "Link",
"label": "Project",
"options": "Project",
"search_index": 1
}
],
"idx": 1,
"istable": 1,
"links": [],
<<<<<<< HEAD
"modified": "2024-11-21 14:21:29.743474",
=======
"modified": "2025-02-06 13:29:24.619850",
>>>>>>> 7d47869f4b (fix: add accounting dimensions section in sales order item)
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order Item",
Expand Down
2 changes: 2 additions & 0 deletions erpnext/selling/doctype/sales_order_item/sales_order_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class SalesOrderItem(Document):
brand: DF.Link | None
company_total_stock: DF.Float
conversion_factor: DF.Float
cost_center: DF.Link
customer_item_code: DF.Data | None
delivered_by_supplier: DF.Check
delivered_qty: DF.Float
Expand Down Expand Up @@ -68,6 +69,7 @@ class SalesOrderItem(Document):
pricing_rules: DF.SmallText | None
produced_qty: DF.Float
production_plan_qty: DF.Float
project: DF.Link | None
projected_qty: DF.Float
purchase_order: DF.Link | None
purchase_order_item: DF.Data | None
Expand Down

0 comments on commit b32e4da

Please sign in to comment.