mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
chore: rename closing balance field
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
"field_order": [
|
"field_order": [
|
||||||
"parent_pcv",
|
"parent_pcv",
|
||||||
"status",
|
"status",
|
||||||
"total",
|
"p_l_closing_balance",
|
||||||
"dates_to_process",
|
"dates_to_process",
|
||||||
"amended_from"
|
"amended_from"
|
||||||
],
|
],
|
||||||
@@ -46,9 +46,9 @@
|
|||||||
"search_index": 1
|
"search_index": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "total",
|
"fieldname": "p_l_closing_balance",
|
||||||
"fieldtype": "JSON",
|
"fieldtype": "JSON",
|
||||||
"label": "Total",
|
"label": "P&L Closing Balance",
|
||||||
"no_copy": 1
|
"no_copy": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
"index_web_pages_for_search": 1,
|
"index_web_pages_for_search": 1,
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2025-10-15 12:46:03.627166",
|
"modified": "2025-10-17 13:04:26.353250",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Accounts",
|
"module": "Accounts",
|
||||||
"name": "Process Period Closing Voucher",
|
"name": "Process Period Closing Voucher",
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ class ProcessPeriodClosingVoucher(Document):
|
|||||||
|
|
||||||
amended_from: DF.Link | None
|
amended_from: DF.Link | None
|
||||||
dates_to_process: DF.Table[ProcessPeriodClosingVoucherDetail]
|
dates_to_process: DF.Table[ProcessPeriodClosingVoucherDetail]
|
||||||
|
p_l_closing_balance: DF.JSON | None
|
||||||
parent_pcv: DF.Link
|
parent_pcv: DF.Link
|
||||||
status: DF.Literal["Queued", "Running", "Completed"]
|
status: DF.Literal["Queued", "Running", "Completed"]
|
||||||
total: DF.JSON | None
|
|
||||||
# end: auto-generated types
|
# end: auto-generated types
|
||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
@@ -264,7 +264,9 @@ def summarize_and_post_ledger_entries(docname):
|
|||||||
json_dict[str_key] = v
|
json_dict[str_key] = v
|
||||||
|
|
||||||
# save
|
# 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
|
# build gl map
|
||||||
pcv = frappe.get_doc("Period Closing Voucher", ppcv.parent_pcv)
|
pcv = frappe.get_doc("Period Closing Voucher", ppcv.parent_pcv)
|
||||||
|
|||||||
Reference in New Issue
Block a user