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 =
|
108
|
-
data = request.
|
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, :
|
72
|
+
t.column :base_price, :decimal, :precision => 8, :scale => 2
|
73
73
|
t.column :uom, :integer
|
74
74
|
t.timestamps
|
75
75
|
end
|
data/lib/erp_products/version.rb
CHANGED
@@ -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'
|
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.
|
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-
|
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: &
|
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: *
|
24
|
+
version_requirements: *70211132069280
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: erp_dev_svcs
|
27
|
-
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: *
|
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. '
|