erp_commerce 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/app/widgets/orders/javascript/orders.js +2 -1
  2. data/app/widgets/product_catalog/javascript/product_catalog.js +5 -5
  3. data/app/widgets/shopping_cart/javascript/shopping_cart.js +86 -83
  4. data/lib/erp_commerce/version.rb +1 -1
  5. metadata +2 -96
  6. data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +0 -28
  7. data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +0 -16
  8. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
  9. data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +0 -24
  10. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
  11. data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +0 -27
  12. data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +0 -24
  13. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
  14. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +0 -252
  15. data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +0 -26
  16. data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +0 -26
  17. data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +0 -15
  18. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +0 -53
  19. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
  20. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +0 -21
  21. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +0 -32
  22. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
  23. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +0 -23
  24. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +0 -42
  25. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
  26. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +0 -14
  27. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +0 -29
  28. data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +0 -29
  29. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
  30. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +0 -19
  31. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +0 -23
  32. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
  33. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
  34. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
  35. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +0 -23
  36. data/spec/dummy/db/migrate/20130107214952_base_erp_services.erp_base_erp_svcs.rb +0 -461
  37. data/spec/dummy/db/migrate/20130107214953_base_tech_services.erp_tech_svcs.rb +0 -271
  38. data/spec/dummy/db/migrate/20130107214954_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
  39. data/spec/dummy/db/migrate/20130107214955_create_groups.erp_tech_svcs.rb +0 -19
  40. data/spec/dummy/db/migrate/20130107214956_upgrade_security.erp_tech_svcs.rb +0 -54
  41. data/spec/dummy/db/migrate/20130107214957_upgrade_security2.erp_tech_svcs.rb +0 -270
  42. data/spec/dummy/db/migrate/20130107214958_base_app_framework.erp_app.rb +0 -276
  43. data/spec/dummy/db/migrate/20130107214959_base_txns_and_accts.erp_txns_and_accts.rb +0 -364
  44. data/spec/dummy/db/migrate/20130107214960_agreements_services.erp_agreements.rb +0 -160
  45. data/spec/dummy/db/migrate/20130107214961_agreements_services_indexes.erp_agreements.rb +0 -52
  46. data/spec/dummy/db/migrate/20130107214962_base_products.erp_products.rb +0 -234
  47. data/spec/dummy/db/migrate/20130107214963_base_products_indexes.erp_products.rb +0 -59
  48. data/spec/dummy/db/migrate/20130107214964_base_orders.erp_orders.rb +0 -178
  49. data/spec/dummy/db/migrate/20130107214965_erp_commerce_base.erp_commerce.rb +0 -442
  50. data/spec/dummy/db/schema.rb +0 -1821
  51. data/spec/dummy/db/spec.sqlite3 +0 -0
  52. data/spec/dummy/log/spec.log +0 -16021
@@ -1,6 +1,7 @@
1
1
  Compass.ErpApp.Widgets.Orders = {
2
+ template: new Ext.Template("<%= render_widget :orders %>"),
2
3
  add:function(){
3
- Ext.getCmp('knitkitCenterRegion').addContentToActiveCodeMirror("<%= render_widget :orders %>");
4
+ Ext.getCmp('knitkitCenterRegion').addContentToActiveCodeMirror(Compass.ErpApp.Widgets.Orders.template.apply());
4
5
  }
5
6
  }
6
7
 
@@ -1,4 +1,8 @@
1
1
  Compass.ErpApp.Widgets.ProductCatalog = {
2
+ template: new Ext.XTemplate("<%= render_widget :product_catalog,\n",
3
+ " :action => :index,\n",
4
+ " :params => {:cart_items_url => '{cartItemsUrl}'} %>"),
5
+
2
6
  add:function(){
3
7
  var addProductCatalogWidgetWindow = Ext.create("Ext.window.Window",{
4
8
  layout:'fit',
@@ -34,12 +38,8 @@ Compass.ErpApp.Widgets.ProductCatalog = {
34
38
  cartItemsUrl:cartItemsUrl
35
39
  };
36
40
 
37
- var tpl = new Ext.XTemplate("<%= render_widget :product_catalog,\n",
38
- " :action => :index,\n",
39
- " :params => {:cart_items_url => '{cartItemsUrl}'} %>");
40
-
41
41
  //add rendered template to center region editor
42
- Ext.getCmp('knitkitCenterRegion').addContentToActiveCodeMirror(tpl.apply(data));
42
+ Ext.getCmp('knitkitCenterRegion').addContentToActiveCodeMirror(Compass.ErpApp.Widgets.ProductCatalog.template.apply(data));
43
43
  addProductCatalogWidgetWindow.close();
44
44
  }
45
45
  },
@@ -1,99 +1,102 @@
1
1
  Compass.ErpApp.Widgets.ShoppingCart = {
2
- addShoppingCart:function(){
3
- var addShoppingCartWidget = Ext.create("Ext.window.Window",{
4
- layout:'fit',
5
- width:300,
6
- title:'Add Shopping Cart Widget',
7
- height:130,
8
- buttonAlign:'center',
9
- items: Ext.create("Ext.form.Panel",{
2
+ template: new Ext.Template("<%= render_widget :shopping_cart,\n",
3
+ " :action => {action},\n",
4
+ " :params => {:{symbol} => '{url}'} %>"),
5
+
6
+ addShoppingCart: function () {
7
+ var addShoppingCartWidget = Ext.create("Ext.window.Window", {
8
+ layout: 'fit',
9
+ width: 300,
10
+ title: 'Add Shopping Cart Widget',
11
+ height: 130,
12
+ buttonAlign: 'center',
13
+ items: Ext.create("Ext.form.Panel", {
10
14
  labelWidth: 100,
11
- frame:false,
12
- bodyStyle:'padding:5px 5px 0',
15
+ frame: false,
16
+ bodyStyle: 'padding:5px 5px 0',
13
17
  defaults: {
14
18
  width: 225
15
19
  },
16
20
  items: [
17
- {
18
- xtype: 'combo',
19
- forceSelection:true,
20
- store: [
21
- [':price_summary','Price Summary'],
22
- [':cart_items','Cart Items'],
23
- ],
24
- fieldLabel: 'Widget View',
25
- value:':price_summary',
26
- name: 'widgetLayout',
27
- allowBlank: false,
28
- triggerAction: 'all',
29
- listeners:{
30
- change:function(field, newValue, oldValue){
31
- var basicForm = field.findParentByType('form').getForm();
32
- var cartItemsUrlField = basicForm.findField('cartItemsUrl');
33
- var productsUrlField = basicForm.findField('productsUrl');
34
- if(newValue == ':price_summary'){
35
- cartItemsUrlField.show();
36
- productsUrlField.hide();
37
- cartItemsUrlField.setValue('/cart-summary');
38
- }
39
- else{
40
- productsUrlField.show();
41
- cartItemsUrlField.hide();
42
- productsUrlField.setValue('/products');
21
+ {
22
+ xtype: 'combo',
23
+ forceSelection: true,
24
+ store: [
25
+ [':price_summary', 'Price Summary'],
26
+ [':cart_items', 'Cart Items']
27
+ ],
28
+ fieldLabel: 'Widget View',
29
+ value: ':price_summary',
30
+ name: 'widgetLayout',
31
+ allowBlank: false,
32
+ triggerAction: 'all',
33
+ listeners: {
34
+ change: function (field, newValue, oldValue) {
35
+ var basicForm = field.findParentByType('form').getForm();
36
+ var cartItemsUrlField = basicForm.findField('cartItemsUrl');
37
+ var productsUrlField = basicForm.findField('productsUrl');
38
+ if (newValue == ':price_summary') {
39
+ cartItemsUrlField.show();
40
+ productsUrlField.hide();
41
+ cartItemsUrlField.setValue('/cart-summary');
42
+ }
43
+ else {
44
+ productsUrlField.show();
45
+ cartItemsUrlField.hide();
46
+ productsUrlField.setValue('/products');
47
+ }
43
48
  }
44
49
  }
50
+ },
51
+ {
52
+ xtype: 'textfield',
53
+ fieldLabel: 'Cart Items Url',
54
+ name: 'cartItemsUrl',
55
+ hidden: false,
56
+ value: '/cart-items'
57
+ },
58
+ {
59
+ xtype: 'textfield',
60
+ fieldLabel: 'Products Url',
61
+ name: 'productsUrl',
62
+ value: '/products',
63
+ hidden: true
45
64
  }
46
- },
47
- {
48
- xtype:'textfield',
49
- fieldLabel:'Cart Items Url',
50
- name:'cartItemsUrl',
51
- hidden:false,
52
- value:'/cart-items'
53
- },
54
- {
55
- xtype:'textfield',
56
- fieldLabel:'Products Url',
57
- name:'productsUrl',
58
- value:'/products',
59
- hidden:true
60
- },
61
65
  ]
62
66
  }),
63
- buttons: [{
64
- text:'Submit',
65
- listeners:{
66
- 'click':function(button){
67
- var window = button.findParentByType('window');
68
- var formPanel = window.query('form')[0];
69
- var basicForm = formPanel.getForm();
70
- var action = basicForm.findField('widgetLayout').getValue();
71
-
72
- var data = {action:action};
73
- if(action == ':price_summary'){
74
- data.symbol = 'cart_items_url';
75
- data.url = basicForm.findField('cartItemsUrl').getValue();
76
- }
77
- else{
78
- data.symbol = 'products_url';
79
- data.url = basicForm.findField('productsUrl').getValue();
80
- }
67
+ buttons: [
68
+ {
69
+ text: 'Submit',
70
+ listeners: {
71
+ 'click': function (button) {
72
+ var window = button.findParentByType('window');
73
+ var formPanel = window.query('form')[0];
74
+ var basicForm = formPanel.getForm();
75
+ var action = basicForm.findField('widgetLayout').getValue();
81
76
 
82
- var tpl = new Ext.XTemplate("<%= render_widget :shopping_cart,\n",
83
- " :action => {action},\n",
84
- " :params => {:{symbol} => '{url}'} %>");
77
+ var data = {action: action};
78
+ if (action == ':price_summary') {
79
+ data.symbol = 'cart_items_url';
80
+ data.url = basicForm.findField('cartItemsUrl').getValue();
81
+ }
82
+ else {
83
+ data.symbol = 'products_url';
84
+ data.url = basicForm.findField('productsUrl').getValue();
85
+ }
85
86
 
86
- //add rendered template to center region editor
87
- Ext.getCmp('knitkitCenterRegion').addContentToActiveCodeMirror(tpl.apply(data));
87
+ //add rendered template to center region editor
88
+ Ext.getCmp('knitkitCenterRegion').addContentToActiveCodeMirror(Compass.ErpApp.Widgets.ShoppingCart.template.apply(data));
89
+ addShoppingCartWidget.close();
90
+ }
91
+ }
92
+ },
93
+ {
94
+ text: 'Close',
95
+ handler: function () {
88
96
  addShoppingCartWidget.close();
89
97
  }
90
98
  }
91
- },{
92
- text: 'Close',
93
- handler: function(){
94
- addShoppingCartWidget.close();
95
- }
96
- }]
99
+ ]
97
100
 
98
101
  });
99
102
  addShoppingCartWidget.show();
@@ -101,7 +104,7 @@ Compass.ErpApp.Widgets.ShoppingCart = {
101
104
  }
102
105
 
103
106
  Compass.ErpApp.Widgets.AvailableWidgets.push({
104
- name:'Shopping Cart',
105
- iconUrl:'/images/icons/shoppingcart/shoppingcart_48x48.png',
106
- onClick:Compass.ErpApp.Widgets.ShoppingCart.addShoppingCart
107
+ name: 'Shopping Cart',
108
+ iconUrl: '/images/icons/shoppingcart/shoppingcart_48x48.png',
109
+ onClick: Compass.ErpApp.Widgets.ShoppingCart.addShoppingCart
107
110
  });
@@ -2,7 +2,7 @@ module ErpCommerce
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_commerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-25 00:00:00.000000000 Z
12
+ date: 2013-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm
@@ -174,53 +174,6 @@ files:
174
174
  - spec/dummy/config/locales/en.yml
175
175
  - spec/dummy/config/routes.rb
176
176
  - spec/dummy/config.ru
177
- - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
178
- - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
179
- - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
180
- - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
181
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
182
- - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
183
- - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
184
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
185
- - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
186
- - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
187
- - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
188
- - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
189
- - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
190
- - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
191
- - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
192
- - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
193
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
194
- - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
195
- - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
196
- - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
197
- - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
198
- - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
199
- - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
200
- - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
201
- - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
202
- - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
203
- - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
204
- - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
205
- - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
206
- - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
207
- - spec/dummy/db/migrate/20130107214952_base_erp_services.erp_base_erp_svcs.rb
208
- - spec/dummy/db/migrate/20130107214953_base_tech_services.erp_tech_svcs.rb
209
- - spec/dummy/db/migrate/20130107214954_create_has_attribute_tables.erp_tech_svcs.rb
210
- - spec/dummy/db/migrate/20130107214955_create_groups.erp_tech_svcs.rb
211
- - spec/dummy/db/migrate/20130107214956_upgrade_security.erp_tech_svcs.rb
212
- - spec/dummy/db/migrate/20130107214957_upgrade_security2.erp_tech_svcs.rb
213
- - spec/dummy/db/migrate/20130107214958_base_app_framework.erp_app.rb
214
- - spec/dummy/db/migrate/20130107214959_base_txns_and_accts.erp_txns_and_accts.rb
215
- - spec/dummy/db/migrate/20130107214960_agreements_services.erp_agreements.rb
216
- - spec/dummy/db/migrate/20130107214961_agreements_services_indexes.erp_agreements.rb
217
- - spec/dummy/db/migrate/20130107214962_base_products.erp_products.rb
218
- - spec/dummy/db/migrate/20130107214963_base_products_indexes.erp_products.rb
219
- - spec/dummy/db/migrate/20130107214964_base_orders.erp_orders.rb
220
- - spec/dummy/db/migrate/20130107214965_erp_commerce_base.erp_commerce.rb
221
- - spec/dummy/db/schema.rb
222
- - spec/dummy/db/spec.sqlite3
223
- - spec/dummy/log/spec.log
224
177
  - spec/dummy/public/404.html
225
178
  - spec/dummy/public/422.html
226
179
  - spec/dummy/public/500.html
@@ -290,53 +243,6 @@ test_files:
290
243
  - spec/dummy/config/locales/en.yml
291
244
  - spec/dummy/config/routes.rb
292
245
  - spec/dummy/config.ru
293
- - spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb
294
- - spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb
295
- - spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb
296
- - spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
297
- - spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb
298
- - spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb
299
- - spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb
300
- - spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb
301
- - spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb
302
- - spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb
303
- - spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb
304
- - spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb
305
- - spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb
306
- - spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb
307
- - spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb
308
- - spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb
309
- - spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb
310
- - spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb
311
- - spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb
312
- - spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb
313
- - spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb
314
- - spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb
315
- - spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb
316
- - spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb
317
- - spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb
318
- - spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb
319
- - spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb
320
- - spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb
321
- - spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb
322
- - spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb
323
- - spec/dummy/db/migrate/20130107214952_base_erp_services.erp_base_erp_svcs.rb
324
- - spec/dummy/db/migrate/20130107214953_base_tech_services.erp_tech_svcs.rb
325
- - spec/dummy/db/migrate/20130107214954_create_has_attribute_tables.erp_tech_svcs.rb
326
- - spec/dummy/db/migrate/20130107214955_create_groups.erp_tech_svcs.rb
327
- - spec/dummy/db/migrate/20130107214956_upgrade_security.erp_tech_svcs.rb
328
- - spec/dummy/db/migrate/20130107214957_upgrade_security2.erp_tech_svcs.rb
329
- - spec/dummy/db/migrate/20130107214958_base_app_framework.erp_app.rb
330
- - spec/dummy/db/migrate/20130107214959_base_txns_and_accts.erp_txns_and_accts.rb
331
- - spec/dummy/db/migrate/20130107214960_agreements_services.erp_agreements.rb
332
- - spec/dummy/db/migrate/20130107214961_agreements_services_indexes.erp_agreements.rb
333
- - spec/dummy/db/migrate/20130107214962_base_products.erp_products.rb
334
- - spec/dummy/db/migrate/20130107214963_base_products_indexes.erp_products.rb
335
- - spec/dummy/db/migrate/20130107214964_base_orders.erp_orders.rb
336
- - spec/dummy/db/migrate/20130107214965_erp_commerce_base.erp_commerce.rb
337
- - spec/dummy/db/schema.rb
338
- - spec/dummy/db/spec.sqlite3
339
- - spec/dummy/log/spec.log
340
246
  - spec/dummy/public/404.html
341
247
  - spec/dummy/public/422.html
342
248
  - spec/dummy/public/500.html
@@ -1,28 +0,0 @@
1
- # This migration comes from erp_commerce (originally 20101011152441)
2
- class PaymentGatewayActions
3
-
4
- def self.up
5
- PaymentGatewayAction.create(
6
- :internal_identifier => 'capture',
7
- :description => 'capture'
8
- )
9
-
10
- PaymentGatewayAction.create(
11
- :internal_identifier => 'authorize',
12
- :description => 'Authorize'
13
- )
14
-
15
- PaymentGatewayAction.create(
16
- :internal_identifier => 'full_reverse_of_authorization',
17
- :description => 'Full Reverse Of Authorization'
18
- )
19
- end
20
-
21
- def self.down
22
- ['sale','void_sale','authorize'].each do |iid|
23
- type = PaymentGatewayAction.find_by_internal_identifier(iid)
24
- type.destroy unless type.nil?
25
- end
26
- end
27
-
28
- end
@@ -1,16 +0,0 @@
1
- # This migration comes from erp_txns_and_accts (originally 20101014142230)
2
- class FinancialTxnTypes
3
-
4
- def self.up
5
- BizTxnType.create(
6
- :description => "Payment Transaction",
7
- :internal_identifier => 'payment_txn'
8
- )
9
- end
10
-
11
- def self.down
12
- type = BizTxnType.iid('payment_txn')
13
- type.destroy unless type.nil?
14
- end
15
-
16
- end
@@ -1,15 +0,0 @@
1
- # This migration comes from erp_tech_svcs (originally 20110109173616)
2
- class CreateCapabilityScopeTypes
3
-
4
- def self.up
5
- CapabilityType.create(:internal_identifier => 'download', :description => 'Download') if CapabilityType.where("internal_identifier = 'download'").first.nil?
6
-
7
- ScopeType.create(:description => 'Instance', :internal_identifier => 'instance') if ScopeType.where("internal_identifier = 'instance'").first.nil?
8
- ScopeType.create(:description => 'Class', :internal_identifier => 'class') if ScopeType.where("internal_identifier = 'class'").first.nil?
9
- ScopeType.create(:description => 'Query', :internal_identifier => 'query') if ScopeType.where("internal_identifier = 'query'").first.nil?
10
- end
11
-
12
- def self.down
13
- end
14
-
15
- end
@@ -1,24 +0,0 @@
1
- # This migration comes from erp_products (originally 20110324010232)
2
- class ProductRoleTypes
3
-
4
- def self.up
5
- ProdTypeRelnType.create(:internal_identifier => 'product_type_package_reln', :description => 'Product Type Package Relationship')
6
- ProdTypeRoleType.create(:internal_identifier => 'product_type_package', :description => 'Product Type Package')
7
- ProdTypeRoleType.create(:internal_identifier => 'packaged_product_type', :description => 'Packaged Product Type')
8
-
9
- ProdInstanceRelnType.create(:internal_identifier => 'product_instance_package_reln', :description => 'Product Instance Package Relantionship')
10
- ProdInstanceRoleType.create(:internal_identifier => 'product_instance_package', :description => 'Product Instance Package')
11
- ProdInstanceRoleType.create(:internal_identifier => 'packaged_product_instance', :description => 'Packaged Product Instance')
12
- end
13
-
14
- def self.down
15
- ['product_type_package_reln','product_type_package','packaged_product_type'].each do |iid|
16
- ProdTypeRelnType.iid(iid).destroy
17
- end
18
-
19
- ['product_instance_package_reln','product_instance_package','packaged_product_instance'].each do |iid|
20
- ProdInstanceRoleType.iid(iid).destroy
21
- end
22
- end
23
-
24
- end