erp_orders 3.1.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/app/models/order_line_item.rb +6 -0
  3. data/app/models/order_line_item_pty_role.rb +1 -1
  4. data/app/models/order_txn.rb +6 -3
  5. data/config/routes.rb +0 -10
  6. data/db/migrate/20131005232344_update_order_line_pty_role_indexes.erp_orders.rb +19 -0
  7. data/db/migrate/20131005232611_remove_order_line_specific_rtype.rb +32 -0
  8. data/db/migrate/20140129200040_add_uom_to_order_line_item.rb +13 -0
  9. data/db/migrate/20140930152140_add_custom_fields_to_order_txn.rb +12 -0
  10. data/lib/erp_orders/engine.rb +2 -1
  11. data/lib/erp_orders/extensions/active_record/acts_as_order_line_item.rb +71 -0
  12. data/lib/erp_orders/extensions/active_record/acts_as_order_txn.rb +62 -61
  13. data/lib/erp_orders/extensions.rb +2 -1
  14. data/lib/erp_orders/version.rb +7 -3
  15. metadata +33 -144
  16. data/app/assets/javascripts/erp_orders/application.js +0 -9
  17. data/app/assets/stylesheets/erp_orders/application.css +0 -7
  18. data/app/controllers/erp_orders/erp_app/desktop/order_manager/base_controller.rb +0 -147
  19. data/app/controllers/erp_orders/erp_app/organizer/order_management/base_controller.rb +0 -19
  20. data/app/helpers/erp_orders/application_helper.rb +0 -4
  21. data/app/models/line_item_role_type.rb +0 -6
  22. data/app/views/layouts/erp_orders/application.html.erb +0 -14
  23. data/db/data_migrations/20110728201731_create_desktop_app_order_manager.rb +0 -25
  24. data/db/data_migrations/20110728201732_create_organizer_app_order_management.rb +0 -14
  25. data/db/data_migrations/20120229174343_add_orders_widget.rb +0 -28
  26. data/public/javascripts/erp_app/desktop/applications/order_manager/line_items_grid_panel.js +0 -100
  27. data/public/javascripts/erp_app/desktop/applications/order_manager/module.js +0 -85
  28. data/public/javascripts/erp_app/desktop/applications/order_manager/orders_grid_panel.js +0 -162
  29. data/public/javascripts/erp_app/desktop/applications/order_manager/payments_grid_panel.js +0 -109
  30. data/public/javascripts/erp_app/organizer/applications/order_management/base.js +0 -124
  31. data/public/javascripts/erp_app/organizer/applications/order_management/extensions.js +0 -113
  32. data/public/javascripts/erp_app/organizer/applications/order_management/line_items_grid_panel.js +0 -99
  33. data/public/javascripts/erp_app/organizer/applications/order_management/orders_grid_panel.1.js +0 -209
  34. data/public/javascripts/erp_app/organizer/applications/order_management/payments_grid_panel.js +0 -93
  35. data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +0 -28
  36. data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +0 -16
  37. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
  38. data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +0 -24
  39. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
  40. data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +0 -27
  41. data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +0 -24
  42. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
  43. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +0 -252
  44. data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +0 -26
  45. data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +0 -26
  46. data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +0 -15
  47. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +0 -53
  48. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
  49. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +0 -21
  50. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +0 -32
  51. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
  52. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +0 -23
  53. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +0 -42
  54. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
  55. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +0 -29
  56. data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +0 -29
  57. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
  58. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +0 -19
  59. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +0 -23
  60. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
  61. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
  62. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
  63. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +0 -23
  64. data/spec/dummy/db/migrate/20130107205931_base_erp_services.erp_base_erp_svcs.rb +0 -461
  65. data/spec/dummy/db/migrate/20130107205932_base_orders.erp_orders.rb +0 -178
  66. data/spec/dummy/db/migrate/20130107205933_base_tech_services.erp_tech_svcs.rb +0 -271
  67. data/spec/dummy/db/migrate/20130107205934_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
  68. data/spec/dummy/db/migrate/20130107205935_create_groups.erp_tech_svcs.rb +0 -19
  69. data/spec/dummy/db/migrate/20130107205936_upgrade_security.erp_tech_svcs.rb +0 -54
  70. data/spec/dummy/db/migrate/20130107205937_upgrade_security2.erp_tech_svcs.rb +0 -270
  71. data/spec/dummy/db/migrate/20130107205938_base_products.erp_products.rb +0 -234
  72. data/spec/dummy/db/migrate/20130107205939_base_products_indexes.erp_products.rb +0 -59
  73. data/spec/dummy/db/migrate/20130107205940_base_txns_and_accts.erp_txns_and_accts.rb +0 -364
  74. data/spec/dummy/db/migrate/20130107205941_agreements_services.erp_agreements.rb +0 -160
  75. data/spec/dummy/db/migrate/20130107205942_agreements_services_indexes.erp_agreements.rb +0 -52
  76. data/spec/dummy/db/migrate/20130107205943_base_app_framework.erp_app.rb +0 -276
  77. data/spec/dummy/db/migrate/20130107205944_erp_commerce_base.erp_commerce.rb +0 -442
  78. data/spec/dummy/db/schema.rb +0 -1821
  79. data/spec/dummy/db/spec.sqlite3 +0 -0
metadata CHANGED
@@ -1,64 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
5
- prerelease:
4
+ version: 4.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Rick Koloski, Russell Holmes
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-26 00:00:00.000000000 Z
11
+ date: 2014-11-19 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: erp_products
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '3.1'
19
+ version: '4.0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '3.1'
26
+ version: '4.0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: erp_txns_and_accts
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ~>
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '3.1'
33
+ version: '4.0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ~>
38
+ - - "~>"
44
39
  - !ruby/object:Gem::Version
45
- version: '3.1'
40
+ version: '4.0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: erp_dev_svcs
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
- version: '3.1'
47
+ version: '4.0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
- version: '3.1'
54
+ version: '4.0'
62
55
  description: The Orders Engine in CompassAE implements models for Orders, Order Items
63
56
  and Order status tracking. It also houses models for charge lines associated with
64
57
  Orders (although it could be argued that this functionality should reside in Commerce).
@@ -68,20 +61,9 @@ executables: []
68
61
  extensions: []
69
62
  extra_rdoc_files: []
70
63
  files:
71
- - public/javascripts/erp_app/desktop/applications/order_manager/line_items_grid_panel.js
72
- - public/javascripts/erp_app/desktop/applications/order_manager/module.js
73
- - public/javascripts/erp_app/desktop/applications/order_manager/orders_grid_panel.js
74
- - public/javascripts/erp_app/desktop/applications/order_manager/payments_grid_panel.js
75
- - public/javascripts/erp_app/organizer/applications/order_management/base.js
76
- - public/javascripts/erp_app/organizer/applications/order_management/extensions.js
77
- - public/javascripts/erp_app/organizer/applications/order_management/line_items_grid_panel.js
78
- - public/javascripts/erp_app/organizer/applications/order_management/orders_grid_panel.1.js
79
- - public/javascripts/erp_app/organizer/applications/order_management/payments_grid_panel.js
80
- - app/assets/javascripts/erp_orders/application.js
81
- - app/assets/stylesheets/erp_orders/application.css
82
- - app/controllers/erp_orders/erp_app/desktop/order_manager/base_controller.rb
83
- - app/controllers/erp_orders/erp_app/organizer/order_management/base_controller.rb
84
- - app/helpers/erp_orders/application_helper.rb
64
+ - GPL-3-LICENSE
65
+ - README.rdoc
66
+ - Rakefile
85
67
  - app/models/charge_line.rb
86
68
  - app/models/charge_line_payment_txn.rb
87
69
  - app/models/extensions/agreement.rb
@@ -89,34 +71,33 @@ files:
89
71
  - app/models/extensions/party.rb
90
72
  - app/models/extensions/product_instance.rb
91
73
  - app/models/extensions/product_type.rb
92
- - app/models/line_item_role_type.rb
93
74
  - app/models/order_line_item.rb
94
75
  - app/models/order_line_item_pty_role.rb
95
76
  - app/models/order_line_item_type.rb
96
77
  - app/models/order_txn.rb
97
78
  - app/models/order_txn_type.rb
98
- - app/views/layouts/erp_orders/application.html.erb
99
79
  - config/routes.rb
100
80
  - db/data_migrations/20110605231556_create_order_party_roles.rb
101
- - db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
102
- - db/data_migrations/20110728201732_create_organizer_app_order_management.rb
103
- - db/data_migrations/20120229174343_add_orders_widget.rb
104
81
  - db/migrate/20080805000060_base_orders.rb
105
82
  - db/migrate/20130620203217_add_quantity_to_order_line_items.rb
83
+ - db/migrate/20131005232344_update_order_line_pty_role_indexes.erp_orders.rb
84
+ - db/migrate/20131005232611_remove_order_line_specific_rtype.rb
85
+ - db/migrate/20140129200040_add_uom_to_order_line_item.rb
86
+ - db/migrate/20140930152140_add_custom_fields_to_order_txn.rb
87
+ - lib/erp_orders.rb
106
88
  - lib/erp_orders/engine.rb
107
- - lib/erp_orders/extensions/active_record/acts_as_order_txn.rb
108
89
  - lib/erp_orders/extensions.rb
90
+ - lib/erp_orders/extensions/active_record/acts_as_order_line_item.rb
91
+ - lib/erp_orders/extensions/active_record/acts_as_order_txn.rb
109
92
  - lib/erp_orders/version.rb
110
- - lib/erp_orders.rb
111
93
  - lib/tasks/erp_orders_tasks.rake
112
- - GPL-3-LICENSE
113
- - Rakefile
114
- - README.rdoc
94
+ - spec/dummy/Rakefile
115
95
  - spec/dummy/app/assets/javascripts/application.js
116
96
  - spec/dummy/app/assets/stylesheets/application.css
117
97
  - spec/dummy/app/controllers/application_controller.rb
118
98
  - spec/dummy/app/helpers/application_helper.rb
119
99
  - spec/dummy/app/views/layouts/application.html.erb
100
+ - spec/dummy/config.ru
120
101
  - spec/dummy/config/application.rb
121
102
  - spec/dummy/config/boot.rb
122
103
  - spec/dummy/config/database.yml
@@ -130,57 +111,10 @@ files:
130
111
  - spec/dummy/config/initializers/wrap_parameters.rb
131
112
  - spec/dummy/config/locales/en.yml
132
113
  - spec/dummy/config/routes.rb
133
- - spec/dummy/config.ru
134
- - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
135
- - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
136
- - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
137
- - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
138
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
139
- - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
140
- - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
141
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
142
- - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
143
- - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
144
- - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
145
- - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
146
- - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
147
- - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
148
- - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
149
- - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
150
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
151
- - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
152
- - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
153
- - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
154
- - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
155
- - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
156
- - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
157
- - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
158
- - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
159
- - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
160
- - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
161
- - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
162
- - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
163
- - spec/dummy/db/migrate/20130107205931_base_erp_services.erp_base_erp_svcs.rb
164
- - spec/dummy/db/migrate/20130107205932_base_orders.erp_orders.rb
165
- - spec/dummy/db/migrate/20130107205933_base_tech_services.erp_tech_svcs.rb
166
- - spec/dummy/db/migrate/20130107205934_create_has_attribute_tables.erp_tech_svcs.rb
167
- - spec/dummy/db/migrate/20130107205935_create_groups.erp_tech_svcs.rb
168
- - spec/dummy/db/migrate/20130107205936_upgrade_security.erp_tech_svcs.rb
169
- - spec/dummy/db/migrate/20130107205937_upgrade_security2.erp_tech_svcs.rb
170
- - spec/dummy/db/migrate/20130107205938_base_products.erp_products.rb
171
- - spec/dummy/db/migrate/20130107205939_base_products_indexes.erp_products.rb
172
- - spec/dummy/db/migrate/20130107205940_base_txns_and_accts.erp_txns_and_accts.rb
173
- - spec/dummy/db/migrate/20130107205941_agreements_services.erp_agreements.rb
174
- - spec/dummy/db/migrate/20130107205942_agreements_services_indexes.erp_agreements.rb
175
- - spec/dummy/db/migrate/20130107205943_base_app_framework.erp_app.rb
176
- - spec/dummy/db/migrate/20130107205944_erp_commerce_base.erp_commerce.rb
177
- - spec/dummy/db/schema.rb
178
- - spec/dummy/db/spec.sqlite3
179
114
  - spec/dummy/public/404.html
180
115
  - spec/dummy/public/422.html
181
116
  - spec/dummy/public/500.html
182
117
  - spec/dummy/public/favicon.ico
183
- - spec/dummy/Rakefile
184
118
  - spec/dummy/script/rails
185
119
  - spec/models/charge_line_payment_txn_spec.rb
186
120
  - spec/models/charge_line_spec.rb
@@ -192,28 +126,28 @@ files:
192
126
  - spec/models/order_txn_type_spec.rb
193
127
  - spec/spec_helper.rb
194
128
  homepage: http://development.compassagile.com
195
- licenses: []
129
+ licenses:
130
+ - GPL-3-LICENSE
131
+ metadata: {}
196
132
  post_install_message:
197
133
  rdoc_options: []
198
134
  require_paths:
199
135
  - lib
200
136
  required_ruby_version: !ruby/object:Gem::Requirement
201
- none: false
202
137
  requirements:
203
- - - ! '>='
138
+ - - ">="
204
139
  - !ruby/object:Gem::Version
205
140
  version: '0'
206
141
  required_rubygems_version: !ruby/object:Gem::Requirement
207
- none: false
208
142
  requirements:
209
- - - ! '>='
143
+ - - ">="
210
144
  - !ruby/object:Gem::Version
211
145
  version: '0'
212
146
  requirements: []
213
147
  rubyforge_project:
214
- rubygems_version: 1.8.23
148
+ rubygems_version: 2.2.2
215
149
  signing_key:
216
- specification_version: 3
150
+ specification_version: 4
217
151
  summary: The Orders Engine in CompassAE implements models for Orders, Order Items
218
152
  and Order status tracking.
219
153
  test_files:
@@ -236,51 +170,6 @@ test_files:
236
170
  - spec/dummy/config/locales/en.yml
237
171
  - spec/dummy/config/routes.rb
238
172
  - spec/dummy/config.ru
239
- - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
240
- - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
241
- - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
242
- - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
243
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
244
- - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
245
- - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
246
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
247
- - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
248
- - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
249
- - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
250
- - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
251
- - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
252
- - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
253
- - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
254
- - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
255
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
256
- - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
257
- - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
258
- - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
259
- - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
260
- - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
261
- - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
262
- - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
263
- - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
264
- - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
265
- - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
266
- - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
267
- - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
268
- - spec/dummy/db/migrate/20130107205931_base_erp_services.erp_base_erp_svcs.rb
269
- - spec/dummy/db/migrate/20130107205932_base_orders.erp_orders.rb
270
- - spec/dummy/db/migrate/20130107205933_base_tech_services.erp_tech_svcs.rb
271
- - spec/dummy/db/migrate/20130107205934_create_has_attribute_tables.erp_tech_svcs.rb
272
- - spec/dummy/db/migrate/20130107205935_create_groups.erp_tech_svcs.rb
273
- - spec/dummy/db/migrate/20130107205936_upgrade_security.erp_tech_svcs.rb
274
- - spec/dummy/db/migrate/20130107205937_upgrade_security2.erp_tech_svcs.rb
275
- - spec/dummy/db/migrate/20130107205938_base_products.erp_products.rb
276
- - spec/dummy/db/migrate/20130107205939_base_products_indexes.erp_products.rb
277
- - spec/dummy/db/migrate/20130107205940_base_txns_and_accts.erp_txns_and_accts.rb
278
- - spec/dummy/db/migrate/20130107205941_agreements_services.erp_agreements.rb
279
- - spec/dummy/db/migrate/20130107205942_agreements_services_indexes.erp_agreements.rb
280
- - spec/dummy/db/migrate/20130107205943_base_app_framework.erp_app.rb
281
- - spec/dummy/db/migrate/20130107205944_erp_commerce_base.erp_commerce.rb
282
- - spec/dummy/db/schema.rb
283
- - spec/dummy/db/spec.sqlite3
284
173
  - spec/dummy/public/404.html
285
174
  - spec/dummy/public/422.html
286
175
  - spec/dummy/public/500.html
@@ -1,9 +0,0 @@
1
- // This is a manifest file that'll be compiled into including all the files listed below.
2
- // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
- // be included in the compiled file accessible from http://example.com/assets/application.js
4
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
- // the compiled file.
6
- //
7
- //= require jquery
8
- //= require jquery_ujs
9
- //= require_tree .
@@ -1,7 +0,0 @@
1
- /*
2
- * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
- * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
- * the top of the compiled file, but it's generally better to create a new file per style scope.
5
- *= require_self
6
- *= require_tree .
7
- */
@@ -1,147 +0,0 @@
1
- module ErpOrders
2
- module ErpApp
3
- module Desktop
4
- module OrderManager
5
- class BaseController < ::ErpApp::Desktop::BaseController
6
-
7
- class Helper
8
- include Singleton
9
- include ActionView::Helpers::NumberHelper
10
- end
11
-
12
- def help
13
- Helper.instance
14
- end
15
-
16
- def index
17
- payor_role = BizTxnPartyRoleType.find_by_internal_identifier('payor')
18
- result = {:success => true, :orders => [], :totalCount => 0, :results => 0}
19
-
20
- sort_hash = params[:sort].blank? ? {} : Hash.symbolize_keys(JSON.parse(params[:sort]).first)
21
- sort = sort_hash[:sort] || 'created_at'
22
- dir = sort_hash[:dir] || 'DESC'
23
- limit = params[:limit] || 50
24
- start = params[:start] || 0
25
- party_id = params[:party_id]
26
- order_id = params[:order_id]
27
- order_number = params[:order_number]
28
-
29
- if order_id.blank? and party_id.blank? and order_number.blank?
30
- orders = OrderTxn.order("#{sort} #{dir}").limit(limit).offset(start)
31
- result[:totalCount] = OrderTxn.all.count
32
- elsif !order_number.blank?
33
- orders = OrderTxn.find_by_order_number(order_number).nil? ? [] : [OrderTxn.find_by_order_number(order_number)]
34
- result[:totalCount] = orders.count
35
- elsif !order_id.blank?
36
- orders = [OrderTxn.find(order_id)]
37
- result[:totalCount] = orders.count
38
- elsif !party_id.blank?
39
- sort = "order_txns.#{sort}"
40
- orders = OrderTxn.joins("join biz_txn_events bte on bte.biz_txn_record_id = order_txns.id and bte.biz_txn_record_type = 'OrderTxn'
41
- join biz_txn_party_roles btpr on btpr.biz_txn_event_id = bte.id and btpr.party_id = #{party_id} and biz_txn_party_role_type_id = #{payor_role.id}").order("#{sort} #{dir}").limit(limit).offset(start)
42
- result[:totalCount] = OrderTxn.joins("join biz_txn_events bte on bte.biz_txn_record_id = order_txns.id and bte.biz_txn_record_type = 'OrderTxn'
43
- join biz_txn_party_roles btpr on btpr.biz_txn_event_id = bte.id and btpr.party_id = #{party_id} and biz_txn_party_role_type_id = #{payor_role.id}").count
44
- end
45
-
46
- result[:results] = orders.count
47
-
48
- orders.each do |order|
49
-
50
- #get payor party if it exists
51
- payor_party_id = nil
52
- unless order.root_txn.biz_txn_party_roles.empty?
53
- payor_party_id = order.root_txn.biz_txn_party_roles.where('biz_txn_party_role_type_id = ?', payor_role.id).first.party.id
54
- end
55
-
56
- result[:orders] << {
57
- :total_price => help.number_to_currency(order.get_total_charges.sum{|money| money.amount}),
58
- :order_number => order.order_number,
59
- :status => order.status,
60
- :first_name => order.bill_to_first_name,
61
- :last_name => order.bill_to_last_name,
62
- :email => order.email,
63
- :phone => order.phone_number,
64
- :id => order.id,
65
- :created_at => order.created_at,
66
- :payor_party_id => payor_party_id
67
- }
68
- end
69
-
70
- render :json => result
71
- end
72
-
73
- def delete
74
- result = {}
75
-
76
- if OrderTxn.find(params[:id]).destroy
77
- result[:success] = true
78
- else
79
- result[:success] = false
80
- end
81
-
82
- render :json => result
83
- end
84
-
85
- def line_items
86
- result = {:success => true, :lineItems => [], :totalCount => 0, :results => 0}
87
-
88
- limit = params[:limit] || 10
89
- start = params[:start] || 0
90
-
91
- line_items = OrderLineItem.where('order_txn_id = ?',params[:order_id]).limit(limit).offset(start)
92
-
93
- result[:results] = line_items.count
94
- result[:totalCount] = OrderLineItem.count("order_txn_id = #{params[:order_id]}")
95
-
96
- line_items.each do |line_item|
97
- price = 0
98
- currency_display = nil
99
- line_item.get_total_charges.each do |money|
100
- price += money.amount
101
- currency_display = money.currency.internal_identifier
102
- end
103
-
104
- result[:lineItems] << {
105
- :id => line_item.id,
106
- :product => (line_item.product_type.description rescue 'N/A'),
107
- :quantity => 1,
108
- :price => price,
109
- :currency_display => currency_display,
110
- :sku => (line_item.product_type.inventory_entries.first.sku rescue 'N/A')
111
- }
112
- end
113
-
114
- render :json => result
115
- end
116
-
117
- def payments
118
- result = {:success => true, :payments => []}
119
-
120
- financial_txns = OrderTxn.find(params[:order_id]).line_items.first.charge_lines.first.financial_txns
121
-
122
- financial_txns.each do |financial_txn|
123
- amount = financial_txn.money.amount
124
- currency_display = financial_txn.money.currency.internal_identifier
125
-
126
- financial_txn.payments.each do |payment|
127
- result[:payments] << {
128
- :id => payment.id,
129
- :authorization => payment.authorization_code,
130
- :status => payment.current_state,
131
- :created_at => payment.created_at,
132
- :amount => amount,
133
- :success => payment.success ? 'Yes' : 'No',
134
- :currency_display => currency_display
135
- }
136
- end
137
-
138
- end
139
-
140
- render :json => result
141
- end
142
-
143
- end#BaseController
144
- end#OrderManager
145
- end#Desktop
146
- end#ErpApp
147
- end#ErpOrders
@@ -1,19 +0,0 @@
1
- module ErpOrders
2
- module ErpApp
3
- module Organizer
4
- module OrderManagement
5
- class BaseController < ::ErpApp::Organizer::BaseController
6
-
7
- def menu
8
- menu = []
9
-
10
- menu << {:text => 'Orders', :leaf => true, :iconCls => 'icon-package', :applicationCardId => "orders_layout"}
11
-
12
- render :inline => menu.to_json
13
- end
14
-
15
- end#BaseController
16
- end#OrderManagement
17
- end#Organizer
18
- end#ErpApp
19
- end#ErpOrders
@@ -1,4 +0,0 @@
1
- module ErpOrders
2
- module ApplicationHelper
3
- end
4
- end
@@ -1,6 +0,0 @@
1
- class LineItemRoleType < ActiveRecord::Base
2
- attr_protected :created_at, :updated_at
3
-
4
- acts_as_nested_set
5
- include ErpTechSvcs::Utils::DefaultNestedSetMethods
6
- end
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>ErpOrders</title>
5
- <%= stylesheet_link_tag "erp_orders/application" %>
6
- <%= javascript_include_tag "erp_orders/application" %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,25 +0,0 @@
1
- class CreateDesktopAppOrderManager
2
- def self.up
3
- app = DesktopApplication.create(
4
- :description => 'Orders',
5
- :icon => 'icon-package',
6
- :javascript_class_name => 'Compass.ErpApp.Desktop.Applications.OrderManager',
7
- :internal_identifier => 'order_manager',
8
- :shortcut_id => 'order_manager-win'
9
- )
10
-
11
- pt = PreferenceType.iid('desktop_shortcut')
12
- pt.preferenced_records << app
13
- pt.save
14
-
15
- pt = PreferenceType.iid('autoload_application')
16
- pt.preferenced_records << app
17
- pt.save
18
-
19
- app.save
20
- end
21
-
22
- def self.down
23
- DesktopApplication.destroy_all(:conditions => ['internal_identifier = ?','hello_world'])
24
- end
25
- end
@@ -1,14 +0,0 @@
1
- class CreateOrganizerAppOrderManagement
2
- def self.up
3
- OrganizerApplication.create(
4
- :description => 'Orders',
5
- :icon => 'icon-package',
6
- :javascript_class_name => 'Compass.ErpApp.Organizer.Applications.OrderManagement.Base',
7
- :internal_identifier => 'order_management'
8
- )
9
- end
10
-
11
- def self.down
12
- OrganizerApplication.destroy_all(:conditions => ['internal_identifier = ?','order_management'])
13
- end
14
- end
@@ -1,28 +0,0 @@
1
- class AddOrdersWidget
2
-
3
- def self.up
4
- #insert data here
5
- if Widget.find_by_internal_identifier('order_management').nil?
6
- app = Application.find_by_internal_identifier('crm')
7
-
8
- orders = Widget.create(
9
- :description => 'Order Managament',
10
- :internal_identifier => 'order_management',
11
- :icon => 'icon-grid',
12
- :xtype => 'partyorderstab'
13
- )
14
-
15
- unless app.nil?
16
- app.widgets << orders
17
- app.save
18
- end
19
-
20
- end
21
- end
22
-
23
- def self.down
24
- #remove data here
25
- Widget.find_by_internal_identifier('order_management').destroy
26
- end
27
-
28
- end