open box bug

This commit is contained in:
2025-02-10 20:35:26 -05:00
parent c896a6ea0f
commit c7686fb239
4 changed files with 12 additions and 14 deletions

View File

@@ -150,6 +150,7 @@ class BoxService:
date_opened=datetime.strptime(box_data.date_opened, "%Y-%m-%d") if box_data.date_opened else datetime.now()
)
self.db.add(open_box)
self.db.flush()
staged_product_data = self.get_staged_product_data(box_data.file_ids)
product_data = self.aggregate_staged_product_data(staged_product_data)