refactor: temporarily save balances in JSON

(cherry picked from commit f44c908a8d)
This commit is contained in:
ruthra kumar
2025-10-08 10:23:24 +05:30
committed by Mergify
parent b484db3ffd
commit bc07de8c12
2 changed files with 9 additions and 2 deletions

View File

@@ -6,7 +6,8 @@
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"processing_date", "processing_date",
"status" "status",
"closing_balance"
], ],
"fields": [ "fields": [
{ {
@@ -20,13 +21,18 @@
"fieldtype": "Select", "fieldtype": "Select",
"label": "Status", "label": "Status",
"options": "Queued\nRunning\nCompleted" "options": "Queued\nRunning\nCompleted"
},
{
"fieldname": "closing_balance",
"fieldtype": "JSON",
"label": "Closing Balance"
} }
], ],
"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-01 16:00:02.221411", "modified": "2025-10-08 10:19:29.928526",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Process Period Closing Voucher Detail", "name": "Process Period Closing Voucher Detail",

View File

@@ -14,6 +14,7 @@ class ProcessPeriodClosingVoucherDetail(Document):
if TYPE_CHECKING: if TYPE_CHECKING:
from frappe.types import DF from frappe.types import DF
closing_balance: DF.JSON | None
parent: DF.Data parent: DF.Data
parentfield: DF.Data parentfield: DF.Data
parenttype: DF.Data parenttype: DF.Data