10 lines
272 B
Python
10 lines
272 B
Python
from app.services.common import as_float
|
|
|
|
|
|
def is_multi_person_product(product) -> bool:
|
|
return bool(product) and as_float(getattr(product, "operator_count", 1)) > 1
|
|
|
|
|
|
def is_multi_person_item(item) -> bool:
|
|
return as_float(getattr(item, "operator_count", 1)) > 1
|