mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-13 11:55:11 +00:00
fix: process on background based on number of invoices on POS Closing Entry (#42417)
* fix: process on background based on number of invoices on POS Closing Entry * fix: process on background based on number of invoices on POS Closing Entry
This commit is contained in:
@@ -400,7 +400,7 @@ def unconsolidate_pos_invoices(closing_entry):
|
||||
"POS Invoice Merge Log", filters={"pos_closing_entry": closing_entry.name}, pluck="name"
|
||||
)
|
||||
|
||||
if len(merge_logs) >= 10:
|
||||
if len(closing_entry.pos_transactions) >= 10:
|
||||
closing_entry.set_status(update=True, status="Queued")
|
||||
enqueue_job(cancel_merge_logs, merge_logs=merge_logs, closing_entry=closing_entry)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user