erp_products 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -104,18 +104,18 @@ module ErpProducts
104
104
  result = {}
105
105
 
106
106
  begin
107
- name = request.env['HTTP_X_FILE_NAME'].blank? ? params[:file_data].original_filename : request.env['HTTP_X_FILE_NAME']
108
- data = request.env['HTTP_X_FILE_NAME'].blank? ? params[:file_data] : request.raw_post
107
+ name = params[:name]
108
+ data = request.raw_post
109
109
 
110
110
  product_type = ProductType.find(params[:product_type_id])
111
111
  #build path
112
112
  path = File.join(product_type.images_path,name)
113
-
113
+ Rails.logger.info "@@@@@@@@ #{path}"
114
114
  product_type.add_file(data, path)
115
115
  result = {:success => true}
116
116
  rescue Exception=>ex
117
- logger.error ex.message
118
- logger.error ex.backtrace.join("\n")
117
+ Rails.logger.error ex.message
118
+ Rails.logger.error ex.backtrace.join("\n")
119
119
  result = {:success => false, :error => "Error uploading #{name}"}
120
120
  end
121
121
 
@@ -69,7 +69,7 @@ class BaseProducts < ActiveRecord::Migration
69
69
  create_table :simple_product_offers do |t|
70
70
  t.column :description, :string
71
71
  t.column :product_id, :integer
72
- t.column :base_price, :float
72
+ t.column :base_price, :decimal, :precision => 8, :scale => 2
73
73
  t.column :uom, :integer
74
74
  t.timestamps
75
75
  end
@@ -2,7 +2,7 @@ module ErpProducts
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
8
  end
@@ -98,7 +98,7 @@ Ext.define("Compass.ErpApp.Desktop.Applications.ProductManager.ProductDescriptio
98
98
  ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl'],
99
99
  ['BidiLtr', 'BidiRtl' ],
100
100
  ['Link','Unlink','Anchor'],
101
- ['jwplayer','Flash','Table','HorizontalRule',,'SpecialChar','PageBreak',],
101
+ ['jwplayer','Flash','Table','HorizontalRule','SpecialChar','PageBreak',],
102
102
  [ 'Styles','Format','Font','FontSize' ],
103
103
  ['Maximize', 'ShowBlocks','-','About']
104
104
  ]
@@ -240,8 +240,6 @@ Ext.define("Compass.ErpApp.Desktop.Applications.ProductManager.ProductImagesPane
240
240
  handler:function(btn){
241
241
  var uploadWindow = Ext.create("Compass.ErpApp.Shared.UploadWindow",{
242
242
  standardUploadUrl:uploadUrl,
243
- flashUploadUrl:uploadUrl,
244
- xhrUploadUrl:uploadUrl,
245
243
  extraPostData:{
246
244
  product_type_id:productTypeId
247
245
  },
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.0.3
4
+ version: 3.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
12
+ date: 2012-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_app
16
- requirement: &70179786697380 !ruby/object:Gem::Requirement
16
+ requirement: &70211132069280 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70179786697380
24
+ version_requirements: *70211132069280
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: erp_dev_svcs
27
- requirement: &70179786695080 !ruby/object:Gem::Requirement
27
+ requirement: &70211132068780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70179786695080
35
+ version_requirements: *70211132068780
36
36
  description: ! 'The Products Engine implements ProductType and ProductInstance, as
37
37
  well as a number of classes to support product catalog-type functions and search/shopping
38
38
  scenarios. '