erp_orders 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,7 +62,7 @@ class BaseOrders < ActiveRecord::Migration
62
62
  t.column :product_instance_description, :string
63
63
  t.column :product_type_id, :integer
64
64
  t.column :product_type_description, :string
65
- t.column :sold_price, :float
65
+ t.column :sold_price, :decimal, :precision => 8, :scale => 2
66
66
  t.column :sold_price_uom, :integer
67
67
  t.column :sold_amount, :integer
68
68
  t.column :sold_amount_uom, :integer
@@ -1,21 +1,21 @@
1
1
  module ErpOrders
2
- module Extensions
3
- module ActiveRecord
4
- module ActsAsOrderTxn
5
- def self.included(base)
6
- base.extend(ClassMethods)
2
+ module Extensions
3
+ module ActiveRecord
4
+ module ActsAsOrderTxn
5
+ def self.included(base)
6
+ base.extend(ClassMethods)
7
7
  end
8
8
 
9
- module ClassMethods
9
+ module ClassMethods
10
10
 
11
- def acts_as_order_txn
11
+ def acts_as_order_txn
12
12
  extend ActsAsOrderTxn::SingletonMethods
13
- include ActsAsOrderTxn::InstanceMethods
14
-
15
- after_initialize :initialize_order_txn
16
- after_create :save_order_txn
17
- after_update :save_order_txn
18
- after_destroy :destroy_order_txn
13
+ include ActsAsOrderTxn::InstanceMethods
14
+
15
+ after_initialize :initialize_order_txn
16
+ after_create :save_order_txn
17
+ after_update :save_order_txn
18
+ after_destroy :destroy_order_txn
19
19
 
20
20
  has_one :order_txn, :as => :order_txn_record
21
21
 
@@ -52,6 +52,7 @@ module ErpOrders
52
52
  :ship_to_last_name,:ship_to_last_name=,
53
53
  :ship_to_postal_code,:ship_to_postal_code=,
54
54
  :ship_to_state,:ship_to_state=,
55
+ :ship_to_fax,:ship_to_fax=,
55
56
  :state_machine,:state_machine=,
56
57
  :status,:status=,
57
58
  :add_line_item,
@@ -79,13 +80,13 @@ module ErpOrders
79
80
  :biz_txn_type_id,:biz_txn_type_id=,
80
81
  :external_id_source,:external_id_source=,
81
82
  :account,:account=].each { |m| delegate m, :to => :order_txn }
82
- end
83
- end
83
+ end
84
+ end
84
85
 
85
- module SingletonMethods
86
- end
86
+ module SingletonMethods
87
+ end
87
88
 
88
- module InstanceMethods
89
+ module InstanceMethods
89
90
  def order
90
91
  self.order_txn
91
92
  end
@@ -106,8 +107,8 @@ module ErpOrders
106
107
  end
107
108
  end
108
109
 
109
- end
110
- end
110
+ end
111
+ end
111
112
  end
112
113
  end
113
114
  end
@@ -2,7 +2,7 @@ module ErpOrders
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
metadata CHANGED
@@ -1,58 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: erp_orders
3
- version: !ruby/object:Gem::Version
4
- version: 3.0.3
3
+ version: !ruby/object:Gem::Version
5
4
  prerelease:
5
+ version: 3.0.4
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Rick Koloski, Russell Holmes
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-26 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
12
+
13
+ date: 2012-08-07 00:00:00 -04:00
14
+ default_executable:
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
15
17
  name: erp_products
16
- requirement: &70329771459640 !ruby/object:Gem::Requirement
18
+ prerelease: false
19
+ requirement: &id001 !ruby/object:Gem::Requirement
17
20
  none: false
18
- requirements:
21
+ requirements:
19
22
  - - ~>
20
- - !ruby/object:Gem::Version
21
- version: '3.0'
23
+ - !ruby/object:Gem::Version
24
+ version: "3.0"
22
25
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70329771459640
25
- - !ruby/object:Gem::Dependency
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
26
28
  name: erp_txns_and_accts
27
- requirement: &70329771474820 !ruby/object:Gem::Requirement
29
+ prerelease: false
30
+ requirement: &id002 !ruby/object:Gem::Requirement
28
31
  none: false
29
- requirements:
32
+ requirements:
30
33
  - - ~>
31
- - !ruby/object:Gem::Version
32
- version: '3.0'
34
+ - !ruby/object:Gem::Version
35
+ version: "3.0"
33
36
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70329771474820
36
- - !ruby/object:Gem::Dependency
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
37
39
  name: erp_dev_svcs
38
- requirement: &70329771470240 !ruby/object:Gem::Requirement
40
+ prerelease: false
41
+ requirement: &id003 !ruby/object:Gem::Requirement
39
42
  none: false
40
- requirements:
41
- - - =
42
- - !ruby/object:Gem::Version
43
+ requirements:
44
+ - - "="
45
+ - !ruby/object:Gem::Version
43
46
  version: 3.0.1
44
47
  type: :development
45
- prerelease: false
46
- version_requirements: *70329771470240
47
- description: The Orders Engine in CompassAE implements models for Orders, Order Items
48
- and Order status tracking. It also houses models for charge lines associated with
49
- Orders (although it could be argued that this functionality should reside in Commerce).
50
- email:
48
+ version_requirements: *id003
49
+ description: The Orders Engine in CompassAE implements models for Orders, Order Items and Order status tracking. It also houses models for charge lines associated with Orders (although it could be argued that this functionality should reside in Commerce).
50
+ email:
51
51
  - russonrails@gmail.com
52
52
  executables: []
53
+
53
54
  extensions: []
55
+
54
56
  extra_rdoc_files: []
55
- files:
57
+
58
+ files:
56
59
  - public/javascripts/erp_app/desktop/applications/order_manager/line_items_grid_panel.js
57
60
  - public/javascripts/erp_app/desktop/applications/order_manager/module.js
58
61
  - public/javascripts/erp_app/desktop/applications/order_manager/orders_grid_panel.js
@@ -131,32 +134,35 @@ files:
131
134
  - spec/models/order_txn_spec.rb
132
135
  - spec/models/order_txn_type_spec.rb
133
136
  - spec/spec_helper.rb
137
+ has_rdoc: true
134
138
  homepage: http://development.compassagile.com
135
139
  licenses: []
140
+
136
141
  post_install_message:
137
142
  rdoc_options: []
138
- require_paths:
143
+
144
+ require_paths:
139
145
  - lib
140
- required_ruby_version: !ruby/object:Gem::Requirement
146
+ required_ruby_version: !ruby/object:Gem::Requirement
141
147
  none: false
142
- requirements:
143
- - - ! '>='
144
- - !ruby/object:Gem::Version
145
- version: '0'
146
- required_rubygems_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: "0"
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
147
153
  none: false
148
- requirements:
149
- - - ! '>='
150
- - !ruby/object:Gem::Version
151
- version: '0'
154
+ requirements:
155
+ - - ">="
156
+ - !ruby/object:Gem::Version
157
+ version: "0"
152
158
  requirements: []
159
+
153
160
  rubyforge_project:
154
- rubygems_version: 1.8.11
161
+ rubygems_version: 1.6.2
155
162
  signing_key:
156
163
  specification_version: 3
157
- summary: The Orders Engine in CompassAE implements models for Orders, Order Items
158
- and Order status tracking.
159
- test_files:
164
+ summary: The Orders Engine in CompassAE implements models for Orders, Order Items and Order status tracking.
165
+ test_files:
160
166
  - spec/dummy/app/assets/javascripts/application.js
161
167
  - spec/dummy/app/assets/stylesheets/application.css
162
168
  - spec/dummy/app/controllers/application_controller.rb