117 lines
4.1 KiB
Python
117 lines
4.1 KiB
Python
from app.models.order_models import *
|
|
from app.models.order_cart_models import *
|
|
from app.models.product_models import *
|
|
from app.models.order_cfg_models import *
|
|
|
|
order_obj_li = {
|
|
'order': {
|
|
'tbl': 'order',
|
|
'tbl_default': 'v_order',
|
|
'tbl_update': 'order',
|
|
'mdl': Order_Base,
|
|
'mdl_default': Order_Base,
|
|
'mdl_in': Order_DB_Base,
|
|
'mdl_out': Order_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_order',
|
|
'tbl_name_update': 'order',
|
|
'base_name': Order_Base,
|
|
# V3 Search Security:
|
|
'searchable_fields': [
|
|
'order_id_random', 'account_id_random', 'organization_id_random',
|
|
'contact_id_random', 'person_id_random', 'user_id_random',
|
|
'order_status_id', 'order_status_name', 'payment_status_id',
|
|
'payment_status_name', 'external_id', 'source_code', 'notes',
|
|
'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'order_line': {
|
|
'tbl': 'order_line',
|
|
'tbl_default': 'v_order_line',
|
|
'tbl_update': 'order_line',
|
|
'mdl': Order_Line_Base,
|
|
'mdl_default': Order_Line_Base,
|
|
'mdl_in': Order_Line_Base,
|
|
'mdl_out': Order_Line_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_order_line',
|
|
'tbl_name_update': 'order_line',
|
|
'base_name': Order_Line_Base,
|
|
# V3 Search Security:
|
|
'searchable_fields': [
|
|
'order_line_id_random', 'order_id_random', 'product_id_random',
|
|
'name', 'description', 'enable', 'hide', 'priority', 'group',
|
|
'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'order_cart': {
|
|
'tbl': 'order_cart',
|
|
'tbl_default': 'v_order_cart',
|
|
'tbl_update': 'order_cart',
|
|
'mdl': Order_Cart_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_order_cart',
|
|
'tbl_name_update': 'order_cart',
|
|
'base_name': Order_Cart_Base,
|
|
# V3 Search Security:
|
|
'searchable_fields': [
|
|
'order_cart_id_random', 'account_id_random', 'person_id_random',
|
|
'user_id_random', 'session_id', 'enable', 'hide', 'priority',
|
|
'group', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'order_cart_line': {
|
|
'tbl': 'order_cart_line',
|
|
'tbl_default': 'v_order_cart_line',
|
|
'tbl_update': 'order_cart_line',
|
|
'mdl': Order_Cart_Line_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_order_cart_line',
|
|
'tbl_name_update': 'order_cart_line',
|
|
'base_name': Order_Cart_Line_Base,
|
|
# V3 Search Security:
|
|
'searchable_fields': [
|
|
'order_cart_line_id_random', 'order_cart_id_random', 'product_id_random',
|
|
'enable', 'hide', 'priority', 'group', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'product': {
|
|
'tbl': 'product',
|
|
'tbl_default': 'v_product',
|
|
'tbl_update': 'product',
|
|
'mdl': Product_Base,
|
|
'mdl_default': Product_Base,
|
|
'mdl_in': Product_Base,
|
|
'mdl_out': Product_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'v_product',
|
|
'tbl_name_update': 'product',
|
|
'base_name': Product_Base,
|
|
# V3 Search Security:
|
|
'searchable_fields': [
|
|
'product_id_random', 'account_id_random', 'for_type', 'for_id_random',
|
|
'type_code', 'type_name', 'name', 'description', 'unit_price',
|
|
'tax_rate', 'vat_rate', 'max_quantity', 'recurring', 'enable',
|
|
'hide', 'priority', 'group', 'created_on', 'updated_on'
|
|
],
|
|
},
|
|
'order_cfg': {
|
|
'tbl': 'order_cfg',
|
|
'tbl_default': 'order_cfg',
|
|
'tbl_update': 'order_cfg',
|
|
'mdl': Order_Cfg_Base,
|
|
'mdl_default': Order_Cfg_Base,
|
|
'mdl_in': Order_Cfg_Base,
|
|
'mdl_out': Order_Cfg_Base,
|
|
# Legacy V2 keys:
|
|
'table_name': 'order_cfg',
|
|
'tbl_name_update': 'order_cfg',
|
|
'base_name': Order_Cfg_Base,
|
|
# V3 Search Security:
|
|
'searchable_fields': [
|
|
'account_id_random', 'account_name', 'default_no_reply_email',
|
|
'confirm_email'
|
|
],
|
|
},
|
|
}
|