mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-02 08:03:21 +00:00
chore: linter fix
This commit is contained in:
@@ -128,7 +128,7 @@ def initialize_parallel_threads(docname: str):
|
|||||||
# keep transaction on PPCV and PPCVD short
|
# keep transaction on PPCV and PPCVD short
|
||||||
# prevents concurrency errors - REPEATABLE READ
|
# prevents concurrency errors - REPEATABLE READ
|
||||||
if not frappe.in_test:
|
if not frappe.in_test:
|
||||||
frappe.db.commit()
|
frappe.db.commit() # nosemgrep
|
||||||
else:
|
else:
|
||||||
frappe.db.set_value("Process Period Closing Voucher", docname, "status", "Completed")
|
frappe.db.set_value("Process Period Closing Voucher", docname, "status", "Completed")
|
||||||
|
|
||||||
@@ -276,7 +276,7 @@ def schedule_next_date(docname: str):
|
|||||||
# keep transaction on PPCV and PPCVD short
|
# keep transaction on PPCV and PPCVD short
|
||||||
# prevents concurrency errors - REPEATABLE READ
|
# prevents concurrency errors - REPEATABLE READ
|
||||||
if not frappe.in_test:
|
if not frappe.in_test:
|
||||||
frappe.db.commit()
|
frappe.db.commit() # nosemgrep
|
||||||
|
|
||||||
frappe.enqueue(
|
frappe.enqueue(
|
||||||
method="erpnext.accounts.doctype.process_period_closing_voucher.process_period_closing_voucher.process_individual_date",
|
method="erpnext.accounts.doctype.process_period_closing_voucher.process_period_closing_voucher.process_individual_date",
|
||||||
@@ -453,7 +453,7 @@ def summarize_and_post_ledger_entries(docname):
|
|||||||
# keep transaction on PPCV and PPCVD short
|
# keep transaction on PPCV and PPCVD short
|
||||||
# prevents concurrency errors - REPEATABLE READ
|
# prevents concurrency errors - REPEATABLE READ
|
||||||
if not frappe.in_test:
|
if not frappe.in_test:
|
||||||
frappe.db.commit()
|
frappe.db.commit() # nosemgrep
|
||||||
|
|
||||||
frappe.db.set_value("Period Closing Voucher", pcv.name, "gle_processing_status", "Completed")
|
frappe.db.set_value("Period Closing Voucher", pcv.name, "gle_processing_status", "Completed")
|
||||||
frappe.db.set_value("Process Period Closing Voucher", docname, "status", "Completed")
|
frappe.db.set_value("Process Period Closing Voucher", docname, "status", "Completed")
|
||||||
@@ -604,7 +604,7 @@ def process_individual_date(docname: str, row_name, date, report_type, parentfie
|
|||||||
)
|
)
|
||||||
# commit heavy computation before touching PPCV or PPCVD
|
# commit heavy computation before touching PPCV or PPCVD
|
||||||
if not frappe.in_test:
|
if not frappe.in_test:
|
||||||
frappe.db.commit()
|
frappe.db.commit() # nosemgrep
|
||||||
|
|
||||||
# chain call
|
# chain call
|
||||||
schedule_next_date(docname)
|
schedule_next_date(docname)
|
||||||
|
|||||||
Reference in New Issue
Block a user