mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-17 00:25:01 +00:00
chore: rename closing balance field
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user