feat: some stuff
This commit is contained in:
@@ -49,7 +49,7 @@ async def get_stocks_data(
|
||||
sell_blocks: bool = marketplace.sell_blocks
|
||||
sell_warehouse_products: bool = marketplace.sell_warehouse_products
|
||||
sell_from_price: int = marketplace.sell_from_price
|
||||
|
||||
is_paused = marketplace.is_paused
|
||||
supplier_stock_subquery = (
|
||||
select(
|
||||
func.greatest(
|
||||
@@ -302,7 +302,7 @@ async def get_stocks_data(
|
||||
slaves_stock,
|
||||
price_recommended,
|
||||
is_archived) in marketplace_products:
|
||||
if is_archived or (sell_from_price > price_recommended):
|
||||
if is_archived or (sell_from_price > price_recommended) or is_paused:
|
||||
response.append({
|
||||
'article': denco_article,
|
||||
'full_stock': 0,
|
||||
|
||||
Reference in New Issue
Block a user