erp_products 3.1.0 → 3.1.1

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.
@@ -27,6 +27,9 @@ class BaseProductsIndexes < ActiveRecord::Migration
27
27
 
28
28
  add_index :prod_type_relns, :prod_type_reln_type_id
29
29
  add_index :prod_type_relns, :status_type_id
30
+
31
+ add_index :product_instances, :lft, :name => 'lft_index' unless indexes(:product_instances).collect {|i| i.name}.include?('lft_index')
32
+ add_index :product_instances, :rgt, :name => 'rgt_index' unless indexes(:product_instances).collect {|i| i.name}.include?('rgt_index')
30
33
  end
31
34
 
32
35
  def self.down
@@ -0,0 +1,9 @@
1
+ class AddProductInstancesNestedSetIndexes < ActiveRecord::Migration
2
+ def up
3
+ add_index :product_instances, :lft, :name => 'lft_index' unless indexes(:product_instances).collect {|i| i.name}.include?('lft_index')
4
+ add_index :product_instances, :rgt, :name => 'rgt_index' unless indexes(:product_instances).collect {|i| i.name}.include?('rgt_index')
5
+ end
6
+
7
+ def down
8
+ end
9
+ end
@@ -2,7 +2,7 @@ module ErpProducts
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
@@ -284,12 +284,12 @@ Ext.define("Compass.ErpApp.Desktop.Applications.ProductManager.AddProductWindow"
284
284
  url:'/erp_products/erp_app/desktop/product_manager/new',
285
285
  listeners:{
286
286
  saved:function(form, newId){
287
- Ext.getCmp('productListPanel').loadProducts();
288
- var win = new Compass.ErpApp.Desktop.Applications.ProductManager.UpdateProductWindow({
289
- productTypeId:newId
290
- });
291
- win.show();
292
287
  self.close();
288
+ Ext.getCmp('productListPanel').loadProducts();
289
+
290
+ var win = Ext.create('Compass.ErpApp.Desktop.Applications.ProductManager.UpdateProductWindow',{
291
+ productTypeId:newId
292
+ }).show();
293
293
  }
294
294
  }
295
295
  }
@@ -133,8 +133,8 @@ Ext.define("Compass.ErpApp.Desktop.Applications.ProductManager.ProductsPanel",{
133
133
  ]
134
134
  }
135
135
  }, config);
136
-
137
- Compass.ErpApp.Desktop.Applications.ProductManager.ProductsPanel.superclass.constructor.call(this, config);
136
+
137
+ this.callParent([config]);
138
138
  }
139
139
 
140
140
  });
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
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-01-11 00:00:00.000000000 Z
12
+ date: 2013-02-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_app
@@ -77,6 +77,7 @@ files:
77
77
  - db/data_migrations/20110728201730_create_desktop_app_product_manager.rb
78
78
  - db/migrate/20080805000040_base_products.rb
79
79
  - db/migrate/20080805000041_base_products_indexes.rb
80
+ - db/migrate/20130131204335_add_product_instances_nested_set_indexes.rb
80
81
  - lib/erp_products/engine.rb
81
82
  - lib/erp_products/extensions/active_record/acts_as_product_instance.rb
82
83
  - lib/erp_products/extensions/active_record/acts_as_product_offer.rb
@@ -185,18 +186,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
186
  - - ! '>='
186
187
  - !ruby/object:Gem::Version
187
188
  version: '0'
188
- segments:
189
- - 0
190
- hash: 1497917790902497929
191
189
  required_rubygems_version: !ruby/object:Gem::Requirement
192
190
  none: false
193
191
  requirements:
194
192
  - - ! '>='
195
193
  - !ruby/object:Gem::Version
196
194
  version: '0'
197
- segments:
198
- - 0
199
- hash: 1497917790902497929
200
195
  requirements: []
201
196
  rubyforge_project:
202
197
  rubygems_version: 1.8.24