diff --git a/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.json b/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.json index 5db50764153..aebdfd1fb75 100644 --- a/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.json +++ b/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.json @@ -7,7 +7,7 @@ "field_order": [ "parent_pcv", "status", - "total", + "p_l_closing_balance", "dates_to_process", "amended_from" ], @@ -46,9 +46,9 @@ "search_index": 1 }, { - "fieldname": "total", + "fieldname": "p_l_closing_balance", "fieldtype": "JSON", - "label": "Total", + "label": "P&L Closing Balance", "no_copy": 1 } ], @@ -56,7 +56,7 @@ "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2025-10-15 12:46:03.627166", + "modified": "2025-10-17 13:04:26.353250", "modified_by": "Administrator", "module": "Accounts", "name": "Process Period Closing Voucher", diff --git a/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.py b/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.py index bb31b2fdcca..523a3b23bf5 100644 --- a/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.py +++ b/erpnext/accounts/doctype/process_period_closing_voucher/process_period_closing_voucher.py @@ -28,9 +28,9 @@ class ProcessPeriodClosingVoucher(Document): amended_from: DF.Link | None dates_to_process: DF.Table[ProcessPeriodClosingVoucherDetail] + p_l_closing_balance: DF.JSON | None parent_pcv: DF.Link status: DF.Literal["Queued", "Running", "Completed"] - total: DF.JSON | None # end: auto-generated types def validate(self): @@ -264,7 +264,9 @@ def summarize_and_post_ledger_entries(docname): json_dict[str_key] = v # save - frappe.db.set_value("Process Period Closing Voucher", docname, "total", frappe.json.dumps(json_dict)) + frappe.db.set_value( + "Process Period Closing Voucher", docname, "p_l_closing_balance", frappe.json.dumps(json_dict) + ) # build gl map pcv = frappe.get_doc("Period Closing Voucher", ppcv.parent_pcv)