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.

Files changed (61) hide show
  1. {trex-model-1.5.7 → trex-model-1.5.8}/PKG-INFO +1 -1
  2. {trex-model-1.5.7 → trex-model-1.5.8}/setup.py +1 -1
  3. {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/PKG-INFO +1 -1
  4. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/merchant_helpers.py +20 -19
  5. {trex-model-1.5.7 → trex-model-1.5.8}/LICENSE +0 -0
  6. {trex-model-1.5.7 → trex-model-1.5.8}/MANIFEST.in +0 -0
  7. {trex-model-1.5.7 → trex-model-1.5.8}/README.md +0 -0
  8. {trex-model-1.5.7 → trex-model-1.5.8}/setup.cfg +0 -0
  9. {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/SOURCES.txt +0 -0
  10. {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/dependency_links.txt +0 -0
  11. {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/requires.txt +0 -0
  12. {trex-model-1.5.7 → trex-model-1.5.8}/trex_model.egg-info/top_level.txt +0 -0
  13. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/__init__.py +0 -0
  14. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/conf.py +0 -0
  15. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/__init__.py +0 -0
  16. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/__init__.py +0 -0
  17. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/admin_models.py +0 -0
  18. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/analytic_models.py +0 -0
  19. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/app_models.py +0 -0
  20. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/coporate_models.py +0 -0
  21. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/customer_model_helpers.py +0 -0
  22. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/customer_models.py +0 -0
  23. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/fb_subsriber_models.py +0 -0
  24. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/import_models.py +0 -0
  25. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/inventory_model.py +0 -0
  26. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/loyalty_models.py +0 -0
  27. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/lucky_draw_models.py +0 -0
  28. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/marketing_models.py +0 -0
  29. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/membership_models.py +0 -0
  30. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/merchant_models.py +0 -0
  31. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/message_model_helper.py +0 -0
  32. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/message_models.py +0 -0
  33. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/model_decorators.py +0 -0
  34. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/ndb_models.py +0 -0
  35. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/pos_models.py +0 -0
  36. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/prepaid_models.py +0 -0
  37. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/product_models.py +0 -0
  38. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/program_models.py +0 -0
  39. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/rating_models.py +0 -0
  40. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/recruit_models.py +0 -0
  41. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/redeem_models.py +0 -0
  42. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/redemption_catalogue_models.py +0 -0
  43. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/referral_program_model.py +0 -0
  44. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/reward_model_helpers.py +0 -0
  45. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/reward_models.py +0 -0
  46. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/spending_base_program_model.py +0 -0
  47. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/system_models.py +0 -0
  48. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/task_models.py +0 -0
  49. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/test_models.py +0 -0
  50. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/transaction_models.py +0 -0
  51. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/user_models.py +0 -0
  52. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/datastore/voucher_models.py +0 -0
  53. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/model_decorator.py +0 -0
  54. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/models/prepaid_helpers.py +0 -0
  55. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/pos_conf.py +0 -0
  56. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/program_conf.py +0 -0
  57. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/__init__.py +0 -0
  58. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/gcloud/__init__.py +0 -0
  59. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/gcloud/datastore_util.py +0 -0
  60. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/model/__init__.py +0 -0
  61. {trex-model-1.5.7 → trex-model-1.5.8}/trexmodel/utils/model/model_util.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trex-model
3
- Version: 1.5.7
3
+ Version: 1.5.8
4
4
  Summary: TRex database module package
5
5
  Home-page: https://bitbucket.org/lokjac/trex-model
6
6
  Author: Jack Lok
@@ -3,7 +3,7 @@ with open("README.md", "r") as fh:
3
3
  long_description = fh.read()
4
4
  setuptools.setup(
5
5
  name='trex-model',
6
- version='1.5.7',
6
+ version='1.5.8',
7
7
  author="Jack Lok",
8
8
  author_email="sglok77@gmail.com",
9
9
  description="TRex database module package",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trex-model
3
- Version: 1.5.7
3
+ Version: 1.5.8
4
4
  Summary: TRex database module package
5
5
  Home-page: https://bitbucket.org/lokjac/trex-model
6
6
  Author: Jack Lok
@@ -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 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
- })
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