Skip to content

Commit

Permalink
refactor: flag to differentiate generated and default values
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Dec 1, 2023
1 parent ca14ae8 commit 0925706
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions erpnext/accounts/doctype/bisect_nodes/bisect_nodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"period_to_date",
"difference",
"balance_sheet_summary",
"profit_loss_summary"
"profit_loss_summary",
"generated"
],
"fields": [
{
Expand Down Expand Up @@ -59,11 +60,17 @@
"fieldname": "profit_loss_summary",
"fieldtype": "Float",
"label": "Profit and Loss Summary"
},
{
"default": "0",
"fieldname": "generated",
"fieldtype": "Check",
"label": "Generated"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-12-01 16:49:57.146867",
"modified": "2023-12-01 17:46:12.437996",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Bisect Nodes",
Expand Down
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/bisect_nodes/bisect_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class BisectNodes(Document):

balance_sheet_summary: DF.Float
difference: DF.Float
generated: DF.Check
left_child: DF.Link | None
name: DF.Int | None
period_from_date: DF.Datetime | None
Expand Down

0 comments on commit 0925706

Please sign in to comment.