refactor: maintain report type on each date

(cherry picked from commit 186d540502)
This commit is contained in:
ruthra kumar
2025-10-17 11:27:03 +05:30
committed by Mergify
parent d911e1dab2
commit 6c94ca664f
2 changed files with 11 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"processing_date", "processing_date",
"report_type",
"status", "status",
"closing_balance" "closing_balance"
], ],
@@ -29,13 +30,21 @@
"fieldtype": "JSON", "fieldtype": "JSON",
"in_list_view": 1, "in_list_view": 1,
"label": "Closing Balance" "label": "Closing Balance"
},
{
"default": "Profit and Loss",
"fieldname": "report_type",
"fieldtype": "Select",
"in_list_view": 1,
"label": "Report Type",
"options": "Profit and Loss\nBalance Sheet"
} }
], ],
"grid_page_length": 50, "grid_page_length": 50,
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"istable": 1, "istable": 1,
"links": [], "links": [],
"modified": "2025-10-09 16:46:37.778199", "modified": "2025-10-17 11:28:34.775743",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Process Period Closing Voucher Detail", "name": "Process Period Closing Voucher Detail",

View File

@@ -19,6 +19,7 @@ class ProcessPeriodClosingVoucherDetail(Document):
parentfield: DF.Data parentfield: DF.Data
parenttype: DF.Data parenttype: DF.Data
processing_date: DF.Date | None processing_date: DF.Date | None
report_type: DF.Literal["Profit and Loss", "Balance Sheet"]
status: DF.Literal["Queued", "Running", "Paused", "Completed"] status: DF.Literal["Queued", "Running", "Paused", "Completed"]
# end: auto-generated types # end: auto-generated types