feat: do not send stocks where disabled

This commit is contained in:
2024-12-06 11:57:40 +03:00
parent 2b5c3966e5
commit cb65e48009
2 changed files with 9 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ class Marketplace(BaseSiproModel):
sell_from_price: Mapped[bool] = mapped_column()
is_deleted: Mapped[bool] = mapped_column()
is_paused: Mapped[bool] = mapped_column()
send_stocks: Mapped[bool] = mapped_column()
warehouses: Mapped[List["Warehouse"]] = relationship(secondary=marketplace_warehouses)
warehouse_id: Mapped[str] = mapped_column()