This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"""Give existing bib allocations their edition, so bib numbers are checked per edition."""
|
||||
|
||||
import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
frappe.db.sql(
|
||||
"""update `tabBib Allocation` b
|
||||
join `tabRegistration` r on r.name = b.registration
|
||||
set b.event_edition = r.event_edition
|
||||
where b.event_edition is null or b.event_edition = ''"""
|
||||
)
|
||||
Reference in New Issue
Block a user