mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
chore: rename some internal variables
This commit is contained in:
@@ -666,8 +666,9 @@ def cancel_exchange_gain_loss_journal(parent_doc: dict | object) -> None:
|
|||||||
fields=["parent"],
|
fields=["parent"],
|
||||||
as_list=1,
|
as_list=1,
|
||||||
)
|
)
|
||||||
|
|
||||||
if journals:
|
if journals:
|
||||||
exchange_journals = frappe.db.get_all(
|
gain_loss_journals = frappe.db.get_all(
|
||||||
"Journal Entry",
|
"Journal Entry",
|
||||||
filters={
|
filters={
|
||||||
"name": ["in", [x[0] for x in journals]],
|
"name": ["in", [x[0] for x in journals]],
|
||||||
@@ -676,7 +677,7 @@ def cancel_exchange_gain_loss_journal(parent_doc: dict | object) -> None:
|
|||||||
},
|
},
|
||||||
as_list=1,
|
as_list=1,
|
||||||
)
|
)
|
||||||
for doc in exchange_journals:
|
for doc in gain_loss_journals:
|
||||||
frappe.get_doc("Journal Entry", doc[0]).cancel()
|
frappe.get_doc("Journal Entry", doc[0]).cancel()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user