feat(MySQL): Get Many stored procedures created for product variations with variation types and product prices with discounts and delivery options.

This commit is contained in:
2024-10-05 13:20:00 +01:00
parent d0956ffb97
commit f2d20bca58
150 changed files with 28513 additions and 17301 deletions

View File

@@ -236,11 +236,14 @@ class Parameters_Stock_Item(Get_Many_Parameters_Base):
a_get_nonexpired_stock_item_only: bool
a_get_consumed_stock_item_only: bool
a_get_nonconsumed_stock_item_only: bool
def __init__(self, **kwargs):
super().__init__(**kwargs)
@classmethod
def get_default(cls, id_user):
def get_default(cls):
return cls(
a_id_user = id_user,
# a_id_user = id_user,
a_get_all_product_permutation = True,
a_get_inactive_product_permutation = False,
a_ids_product_permutation = '',
@@ -266,5 +269,5 @@ class Parameters_Stock_Item(Get_Many_Parameters_Base):
)
@classmethod
def from_form_stock_item(cls, id_user, form):
return cls.get_default(id_user)
def from_form_stock_item(cls, form):
return cls.get_default()