trex-model 1.5.7__tar.gz → 1.5.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of trex-model might be problematic. Click here for more details.
- {trex-model-1.5.7 → trex-model-1.5.8}/PKG-INFO +1 -1
- {trex-model-1.5.7 → trex-model-1.5.8}/setup.py +1 -1
- {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/PKG-INFO +1 -1
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/merchant_helpers.py +20 -19
- {trex-model-1.5.7 → trex-model-1.5.8}/LICENSE +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/MANIFEST.in +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/README.md +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/setup.cfg +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/SOURCES.txt +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/dependency_links.txt +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/requires.txt +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/top_level.txt +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/__init__.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/conf.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/__init__.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/__init__.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/admin_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/analytic_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/app_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/coporate_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/customer_model_helpers.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/customer_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/fb_subsriber_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/import_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/inventory_model.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/loyalty_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/lucky_draw_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/marketing_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/membership_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/merchant_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/message_model_helper.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/message_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/model_decorators.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/ndb_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/pos_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/prepaid_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/product_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/program_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/rating_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/recruit_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/redeem_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/redemption_catalogue_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/referral_program_model.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/reward_model_helpers.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/reward_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/spending_base_program_model.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/system_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/task_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/test_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/transaction_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/user_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/voucher_models.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/model_decorator.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/prepaid_helpers.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/pos_conf.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/program_conf.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/__init__.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/gcloud/__init__.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/gcloud/datastore_util.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/model/__init__.py +0 -0
- {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/model/model_util.py +0 -0
|
@@ -141,7 +141,7 @@ def construct_outlet_info(outlet):
|
|
|
141
141
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
def construct_setting_by_outlet(outlet, device_setting=None):
|
|
144
|
+
def construct_setting_by_outlet(outlet, device_setting=None, is_pos_device=False):
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
merchant_acct = outlet.merchant_acct_entity
|
|
@@ -156,25 +156,26 @@ def construct_setting_by_outlet(outlet, device_setting=None):
|
|
|
156
156
|
'currency' : merchant_acct.currency_code,
|
|
157
157
|
'locale' : merchant_acct.locale,
|
|
158
158
|
}
|
|
159
|
+
if is_pos_device:
|
|
160
|
+
if dinning_option_list:
|
|
161
|
+
for d in dinning_option_list:
|
|
162
|
+
dinning_option_json.append({
|
|
163
|
+
'option_key' : d.key_in_str,
|
|
164
|
+
'option_name' : d.name,
|
|
165
|
+
'option_prefix' : d.prefix,
|
|
166
|
+
'is_default' : d.is_default,
|
|
167
|
+
'is_dinning_input' : d.is_dinning_input,
|
|
168
|
+
'is_delivery_input' : d.is_delivery_input,
|
|
169
|
+
'is_takeaway_input' : d.is_takeaway_input,
|
|
170
|
+
'is_self_order_input' : d.is_self_order_input,
|
|
171
|
+
'is_self_payment_mandatory' : d.is_self_payment_mandatory,
|
|
172
|
+
'dinning_table_is_required' : d.dinning_table_is_required,
|
|
173
|
+
'assign_queue' : d.assign_queue,
|
|
174
|
+
})
|
|
159
175
|
|
|
160
|
-
if
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
'option_key' : d.key_in_str,
|
|
164
|
-
'option_name' : d.name,
|
|
165
|
-
'option_prefix' : d.prefix,
|
|
166
|
-
'is_default' : d.is_default,
|
|
167
|
-
'is_dinning_input' : d.is_dinning_input,
|
|
168
|
-
'is_delivery_input' : d.is_delivery_input,
|
|
169
|
-
'is_takeaway_input' : d.is_takeaway_input,
|
|
170
|
-
'is_self_order_input' : d.is_self_order_input,
|
|
171
|
-
'is_self_payment_mandatory' : d.is_self_payment_mandatory,
|
|
172
|
-
'dinning_table_is_required' : d.dinning_table_is_required,
|
|
173
|
-
'assign_queue' : d.assign_queue,
|
|
174
|
-
})
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
account_settings['dinning_option_list'] = dinning_option_json
|
|
176
|
+
if is_pos_device:
|
|
177
|
+
account_settings['dinning_option_list'] = dinning_option_json
|
|
178
|
+
|
|
178
179
|
if invoice_no_generation:
|
|
179
180
|
account_settings['invoice_settings'] = {
|
|
180
181
|
'invoice_no_generators' : invoice_no_generation.generators_list,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/redemption_catalogue_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/spending_base_program_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|