erp_orders 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/GPL-3-LICENSE +0 -0
  2. data/app/controllers/erp_orders/erp_app/desktop/order_manager/base_controller.rb +0 -0
  3. data/app/controllers/erp_orders/erp_app/organizer/order_management/base_controller.rb +0 -0
  4. data/app/models/charge_line.rb +1 -1
  5. data/app/models/charge_line_payment_txn.rb +0 -1
  6. data/app/models/extensions/agreement.rb +0 -0
  7. data/app/models/extensions/party.rb +0 -0
  8. data/app/models/extensions/product_instance.rb +0 -0
  9. data/app/models/extensions/product_type.rb +0 -0
  10. data/app/models/line_item_role_type.rb +0 -0
  11. data/app/models/order_line_item.rb +0 -0
  12. data/app/models/order_line_item_pty_role.rb +0 -0
  13. data/app/models/order_line_item_type.rb +0 -0
  14. data/app/models/order_txn.rb +2 -6
  15. data/app/models/order_txn_type.rb +0 -0
  16. data/config/routes.rb +0 -0
  17. data/db/data_migrations/20110605231556_create_order_party_roles.rb +0 -0
  18. data/db/data_migrations/20110728201731_create_desktop_app_order_manager.rb +0 -0
  19. data/db/data_migrations/20110728201732_create_organizer_app_order_management.rb +0 -0
  20. data/db/data_migrations/20120229174343_add_orders_widget.rb +30 -0
  21. data/db/migrate/20080805000060_base_orders.rb +0 -0
  22. data/db/migrate/20110602194707_update_order_txn_ship_to_bill_to.rb +0 -0
  23. data/lib/erp_orders/engine.rb +7 -0
  24. data/lib/erp_orders/extensions/active_record/acts_as_order_txn.rb +1 -4
  25. data/lib/erp_orders/version.rb +8 -2
  26. data/lib/erp_orders.rb +1 -0
  27. data/public/javascripts/erp_app/desktop/applications/order_manager/line_items_grid_panel.js +0 -0
  28. data/public/javascripts/erp_app/desktop/applications/order_manager/module.js +0 -0
  29. data/public/javascripts/erp_app/desktop/applications/order_manager/orders_grid_panel.js +152 -153
  30. data/public/javascripts/erp_app/desktop/applications/order_manager/payments_grid_panel.js +0 -0
  31. data/public/javascripts/erp_app/organizer/applications/order_management/base.js +0 -3
  32. data/public/javascripts/erp_app/organizer/applications/order_management/extensions.js +5 -7
  33. data/public/javascripts/erp_app/organizer/applications/order_management/line_items_grid_panel.js +0 -0
  34. data/public/javascripts/erp_app/organizer/applications/order_management/{orders_grid_panel.js → orders_grid_panel.1.js} +43 -39
  35. data/public/javascripts/erp_app/organizer/applications/order_management/payments_grid_panel.js +0 -0
  36. data/spec/dummy/Rakefile +0 -0
  37. data/spec/dummy/app/assets/javascripts/application.js +0 -0
  38. data/spec/dummy/app/assets/stylesheets/application.css +0 -0
  39. data/spec/dummy/app/controllers/application_controller.rb +0 -0
  40. data/spec/dummy/app/helpers/application_helper.rb +0 -0
  41. data/spec/dummy/app/views/layouts/application.html.erb +0 -0
  42. data/spec/dummy/config/application.rb +0 -0
  43. data/spec/dummy/config/boot.rb +0 -0
  44. data/spec/dummy/config/database.yml +0 -0
  45. data/spec/dummy/config/environment.rb +0 -0
  46. data/spec/dummy/config/environments/spec.rb +0 -0
  47. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
  48. data/spec/dummy/config/initializers/inflections.rb +0 -0
  49. data/spec/dummy/config/initializers/mime_types.rb +0 -0
  50. data/spec/dummy/config/initializers/secret_token.rb +0 -0
  51. data/spec/dummy/config/initializers/session_store.rb +0 -0
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
  53. data/spec/dummy/config/locales/en.yml +0 -0
  54. data/spec/dummy/config/routes.rb +0 -0
  55. data/spec/dummy/config.ru +0 -0
  56. data/spec/dummy/public/404.html +0 -0
  57. data/spec/dummy/public/422.html +0 -0
  58. data/spec/dummy/public/500.html +0 -0
  59. data/spec/dummy/public/favicon.ico +0 -0
  60. data/spec/dummy/script/rails +0 -0
  61. data/spec/models/charge_line_payment_txn_spec.rb +0 -0
  62. data/spec/models/charge_line_spec.rb +0 -0
  63. data/spec/models/line_item_role_type_spec.rb +0 -0
  64. data/spec/models/order_line_item_pty_role_spec.rb +0 -0
  65. data/spec/models/order_line_item_spec.rb +0 -0
  66. data/spec/models/order_line_item_type_spec.rb +0 -0
  67. data/spec/models/order_txn_spec.rb +0 -0
  68. data/spec/models/order_txn_type_spec.rb +0 -0
  69. metadata +92 -91
data/GPL-3-LICENSE CHANGED
File without changes
@@ -1,7 +1,7 @@
1
1
  class ChargeLine < ActiveRecord::Base
2
2
 
3
3
  belongs_to :charged_item, :polymorphic => true
4
- belongs_to :money, :dependent => :destroy
4
+ belongs_to :money
5
5
  has_many :charge_line_payment_txns, :dependent => :destroy
6
6
 
7
7
  def payment_txns
@@ -1,5 +1,4 @@
1
1
  class ChargeLinePaymentTxn < ActiveRecord::Base
2
2
  belongs_to :charge_line
3
3
  belongs_to :payment_txn, :polymorphic => true
4
-
5
4
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  class OrderTxn < ActiveRecord::Base
2
2
  acts_as_biz_txn_event
3
3
 
4
- belongs_to :order_txn_record, :polymorphic => true, :dependent => :destroy
4
+ belongs_to :order_txn_record, :polymorphic => true
5
5
  has_many :order_line_items, :dependent => :destroy
6
6
  has_many :charge_lines, :as => :charged_item
7
7
 
@@ -12,11 +12,7 @@ class OrderTxn < ActiveRecord::Base
12
12
 
13
13
  #find a order by given biz txn party role iid and party
14
14
  def self.find_by_party_role(biz_txn_party_role_type_iid, party)
15
- biz_txn_party_roles = BizTxnPartyRole.find(
16
- :all,
17
- :conditions => ['party_id = ? and biz_txn_party_role_type_id = ?', party.id, BizTxnPartyRoleType.find_by_internal_identifier(biz_txn_party_role_type_iid).id])
18
-
19
- biz_txn_party_roles.collect{|item| item.biz_txn_event.biz_txn_record}
15
+ BizTxnPartyRole.where('party_id = ? and biz_txn_party_role_type_id = ?', party.id, BizTxnPartyRoleType.find_by_internal_identifier(biz_txn_party_role_type_iid).id).all.collect{|item| item.biz_txn_event.biz_txn_record}
20
16
  end
21
17
 
22
18
  # get the total charges for an order.
File without changes
data/config/routes.rb CHANGED
File without changes
@@ -0,0 +1,30 @@
1
+ class AddOrdersWidget
2
+
3
+ def self.up
4
+ #insert data here
5
+ if Widget.find_by_internal_identifier('order_management').nil?
6
+ app = Application.find_by_internal_identifier('crm')
7
+
8
+ orders = Widget.create(
9
+ :description => 'Order Managament',
10
+ :internal_identifier => 'order_management',
11
+ :icon => 'icon-grid',
12
+ :xtype => 'partyorderstab'
13
+ )
14
+
15
+ unless app.nil?
16
+ app.widgets << orders
17
+ app.save
18
+ end
19
+
20
+ orders.roles << Role.find_by_internal_identifier('admin')
21
+ orders.save
22
+ end
23
+ end
24
+
25
+ def self.down
26
+ #remove data here
27
+ Widget.find_by_internal_identifier('order_management').destroy
28
+ end
29
+
30
+ end
File without changes
@@ -9,5 +9,12 @@ module ErpOrders
9
9
  ActiveSupport.on_load(:active_record) do
10
10
  include ErpOrders::Extensions::ActiveRecord::ActsAsOrderTxn
11
11
  end
12
+
13
+ #TODO
14
+ #this will be removed once rails 3.2 adds the ability to set the order of engine loading
15
+ engine = self
16
+ config.to_prepare do
17
+ ErpBaseErpSvcs.register_compass_ae_engine(engine)
18
+ end
12
19
  end
13
20
  end
@@ -63,7 +63,7 @@ module ErpOrders
63
63
  :authorize_payments,
64
64
  :capture_payments,
65
65
  :rollback_authorizations,
66
- :submit
66
+ :submit,:get_total_charges
67
67
  ].each { |m| delegate m, :to => :order_txn }
68
68
 
69
69
  #from OrderTxn And BizTxnEvent
@@ -74,9 +74,6 @@ module ErpOrders
74
74
  :txn_type,:txn_type=,
75
75
  :txn_type_iid,:txn_type_iid=,:create_dependent_txns,
76
76
  :account,:account=].each { |m| delegate m, :to => :order_txn }
77
-
78
-
79
-
80
77
  end
81
78
  end
82
79
 
@@ -1,3 +1,9 @@
1
1
  module ErpOrders
2
- VERSION = "3.0.0"
3
- end
2
+ module VERSION #:nodoc:
3
+ MAJOR = 3
4
+ MINOR = 0
5
+ TINY = 1
6
+
7
+ STRING = [MAJOR, MINOR, TINY].compact.join('.')
8
+ end
9
+ end
data/lib/erp_orders.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require "erp_orders/version"
1
2
  require "erp_orders/extensions"
2
3
  require "erp_orders/engine"
3
4
 
@@ -1,163 +1,162 @@
1
1
  Ext.define("Compass.ErpApp.Desktop.Applications.OrderManager.OrdersGridPanel",{
2
- extend:"Ext.grid.Panel",
3
- alias:'widget.ordermanager_ordersgridpanel',
4
- deleteOrder : function(rec){
5
- var self = this;
6
- Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this order?', function(btn){
7
- if(btn == 'no'){
8
- return false;
2
+ extend:"Ext.grid.Panel",
3
+ alias:'widget.ordermanager_ordersgridpanel',
4
+ deleteOrder : function(rec){
5
+ var self = this;
6
+ Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this order?', function(btn){
7
+ if(btn == 'no'){
8
+ return false;
9
+ }
10
+ else
11
+ {
12
+ Ext.Ajax.request({
13
+ url: './order_manager/delete/'+rec.get('id'),
14
+ success: function(response) {
15
+ var obj = Ext.decode(response.responseText);
16
+ if(obj.success){
17
+ self.getStore().load();
9
18
  }
10
- else
11
- {
12
- var conn = new Ext.data.Connection();
13
- conn.request({
14
- url: './order_manager/delete/'+rec.get('id'),
15
- success: function(response) {
16
- var obj = Ext.decode(response.responseText);
17
- if(obj.success){
18
- self.getStore().load();
19
- }
20
- else{
21
- Ext.Msg.alert('Error', 'Error deleting order.');
22
- }
23
- },
24
- failure: function(response) {
25
- Ext.Msg.alert('Error', 'Error deleting order.');
26
- }
27
- });
19
+ else{
20
+ Ext.Msg.alert('Error', 'Error deleting order.');
28
21
  }
22
+ },
23
+ failure: function(response) {
24
+ Ext.Msg.alert('Error', 'Error deleting order.');
25
+ }
29
26
  });
30
- },
27
+ }
28
+ });
29
+ },
31
30
 
32
- initComponent : function(){
33
- this.bbar = Ext.create("Ext.PagingToolbar",{
34
- pageSize: this.initialConfig['pageSize'] || 50,
35
- store:this.store,
36
- displayInfo: true,
37
- displayMsg: '{0} - {1} of {2}',
38
- emptyMsg: "Empty"
39
- });
31
+ initComponent : function(){
32
+ this.bbar = Ext.create("Ext.PagingToolbar",{
33
+ pageSize: this.initialConfig['pageSize'] || 50,
34
+ store:this.store,
35
+ displayInfo: true,
36
+ displayMsg: '{0} - {1} of {2}',
37
+ emptyMsg: "Empty"
38
+ });
40
39
 
41
- Compass.ErpApp.Desktop.Applications.OrderManager.OrdersGridPanel.superclass.initComponent.call(this, arguments);
42
- },
40
+ Compass.ErpApp.Desktop.Applications.OrderManager.OrdersGridPanel.superclass.initComponent.call(this, arguments);
41
+ },
43
42
 
44
- constructor : function(config) {
45
- var store = Ext.create("Ext.data.Store",{
46
- autoLoad: true,
47
- proxy:{
48
- type:'ajax',
49
- url: '/erp_orders/erp_app/desktop/order_manager',
50
- reader:{
51
- type:'json',
52
- root: 'orders'
53
- }
54
- },
55
- extraParams:{
56
- order_number:null
57
- },
58
- totalProperty: 'totalCount',
59
- fields:['total_price','order_number', 'status', 'first_name', 'last_name', 'email','phone','id','created_at']
60
- });
43
+ constructor : function(config) {
44
+ var store = Ext.create("Ext.data.Store",{
45
+ autoLoad: true,
46
+ proxy:{
47
+ type:'ajax',
48
+ url: '/erp_orders/erp_app/desktop/order_manager',
49
+ reader:{
50
+ type:'json',
51
+ root: 'orders'
52
+ }
53
+ },
54
+ extraParams:{
55
+ order_number:null
56
+ },
57
+ totalProperty: 'totalCount',
58
+ fields:['total_price','order_number', 'status', 'first_name', 'last_name', 'email','phone','id','created_at']
59
+ });
61
60
 
62
- config = Ext.apply({
63
- layout:'fit',
64
- columns: [
65
- {
66
- header:'Order Number',
67
- sortable: true,
68
- dataIndex: 'order_number'
69
- },
70
- {
71
- header:'Status',
72
- sortable: true,
73
- dataIndex: 'status'
74
- },
75
- {
76
- header:'Total Price',
77
- sortable: true,
78
- dataIndex: 'total_price'
79
- },
80
- {
81
- header:'First Name',
82
- sortable: true,
83
- width:150,
84
- dataIndex: 'first_name'
85
- },
86
- {
87
- header:'Last Name',
88
- sortable: true,
89
- width:150,
90
- dataIndex: 'last_name'
91
- },
92
- {
93
- header:'Email',
94
- sortable: true,
95
- dataIndex: 'email'
96
- },
97
- {
98
- header:'Phone',
99
- sortable: true,
100
- dataIndex: 'phone'
101
- },
102
- {
103
- header:'Created At',
104
- sortable: true,
105
- dataIndex: 'created_at',
106
- width:150,
107
- renderer: Ext.util.Format.dateRenderer('m/d/Y H:i:s')
108
- },
109
- {
110
- menuDisabled:true,
111
- resizable:false,
112
- xtype:'actioncolumn',
113
- header:'Delete',
114
- align:'center',
115
- width:60,
116
- items:[{
117
- icon:'/images/icons/delete/delete_16x16.png',
118
- tooltip:'Delete',
119
- handler :function(grid, rowIndex, colIndex){
120
- var rec = grid.getStore().getAt(rowIndex);
121
- grid.deleteOrder(rec);
122
- }
123
- }]
124
- }
125
- ],
126
- store:store,
127
- loadMask: true,
128
- autoScroll:true,
129
- stripeRows: true,
130
- tbar:{
131
- items:[
132
- '<span class="x-btn-inner">Order Number:</span>',
133
- {
134
- xtype:'numberfield',
135
- hideLabel:true,
136
- id:'orderNumberSearchTextField'
137
- },
138
- {
139
- text:'Search',
140
- iconCls:'icon-search',
141
- handler:function(btn){
142
- var orderNumber = Ext.getCmp('orderNumberSearchTextField').getValue();
143
- btn.findParentByType('ordermanager_ordersgridpanel').store.proxy.extraParams.order_number = orderNumber;
144
- btn.findParentByType('ordermanager_ordersgridpanel').store.load();
145
- }
146
- },
147
- '|',
148
- {
149
- text: 'All',
150
- xtype:'button',
151
- iconCls: 'icon-eye',
152
- handler: function(btn) {
153
- btn.findParentByType('ordermanager_ordersgridpanel').store.proxy.extraParams.order_number = null;
154
- btn.findParentByType('ordermanager_ordersgridpanel').store.load();
155
- }
156
- },
157
- ]
158
- }
159
- }, config);
61
+ config = Ext.apply({
62
+ layout:'fit',
63
+ columns: [
64
+ {
65
+ header:'Order Number',
66
+ sortable: true,
67
+ dataIndex: 'order_number'
68
+ },
69
+ {
70
+ header:'Status',
71
+ sortable: true,
72
+ dataIndex: 'status'
73
+ },
74
+ {
75
+ header:'Total Price',
76
+ sortable: true,
77
+ dataIndex: 'total_price'
78
+ },
79
+ {
80
+ header:'First Name',
81
+ sortable: true,
82
+ width:150,
83
+ dataIndex: 'first_name'
84
+ },
85
+ {
86
+ header:'Last Name',
87
+ sortable: true,
88
+ width:150,
89
+ dataIndex: 'last_name'
90
+ },
91
+ {
92
+ header:'Email',
93
+ sortable: true,
94
+ dataIndex: 'email'
95
+ },
96
+ {
97
+ header:'Phone',
98
+ sortable: true,
99
+ dataIndex: 'phone'
100
+ },
101
+ {
102
+ header:'Created At',
103
+ sortable: true,
104
+ dataIndex: 'created_at',
105
+ width:150,
106
+ renderer: Ext.util.Format.dateRenderer('m/d/Y H:i:s')
107
+ },
108
+ {
109
+ menuDisabled:true,
110
+ resizable:false,
111
+ xtype:'actioncolumn',
112
+ header:'Delete',
113
+ align:'center',
114
+ width:60,
115
+ items:[{
116
+ icon:'/images/icons/delete/delete_16x16.png',
117
+ tooltip:'Delete',
118
+ handler :function(grid, rowIndex, colIndex){
119
+ var rec = grid.getStore().getAt(rowIndex);
120
+ grid.deleteOrder(rec);
121
+ }
122
+ }]
123
+ }
124
+ ],
125
+ store:store,
126
+ loadMask: true,
127
+ autoScroll:true,
128
+ stripeRows: true,
129
+ tbar:{
130
+ items:[
131
+ '<span class="x-btn-inner">Order Number:</span>',
132
+ {
133
+ xtype:'numberfield',
134
+ hideLabel:true,
135
+ id:'orderNumberSearchTextField'
136
+ },
137
+ {
138
+ text:'Search',
139
+ iconCls:'icon-search',
140
+ handler:function(btn){
141
+ var orderNumber = Ext.getCmp('orderNumberSearchTextField').getValue();
142
+ btn.findParentByType('ordermanager_ordersgridpanel').store.proxy.extraParams.order_number = orderNumber;
143
+ btn.findParentByType('ordermanager_ordersgridpanel').store.load();
144
+ }
145
+ },
146
+ '|',
147
+ {
148
+ text: 'All',
149
+ xtype:'button',
150
+ iconCls: 'icon-eye',
151
+ handler: function(btn) {
152
+ btn.findParentByType('ordermanager_ordersgridpanel').store.proxy.extraParams.order_number = null;
153
+ btn.findParentByType('ordermanager_ordersgridpanel').store.load();
154
+ }
155
+ },
156
+ ]
157
+ }
158
+ }, config);
160
159
 
161
- Compass.ErpApp.Desktop.Applications.OrderManager.OrdersGridPanel.superclass.constructor.call(this, config);
162
- }
160
+ Compass.ErpApp.Desktop.Applications.OrderManager.OrdersGridPanel.superclass.constructor.call(this, config);
161
+ }
163
162
  });
@@ -72,9 +72,6 @@ Ext.define("Compass.ErpApp.Organizer.Applications.OrderManagement.Layout",{
72
72
 
73
73
  Compass.ErpApp.Organizer.Applications.OrderManagement.Base = function(config){
74
74
 
75
- //setup extensions
76
- Compass.ErpApp.Organizer.Applications.OrderManagement.loadExtensions();
77
-
78
75
  var treeMenuStore = Ext.create('Compass.ErpApp.Organizer.DefaultMenuTreeStore', {
79
76
  url:'/erp_orders/erp_app/organizer/order_management/menu',
80
77
  rootText:'Menu',
@@ -1,9 +1,7 @@
1
- Compass.ErpApp.Organizer.Applications.OrderManagement.loadExtensions = function(){
2
- //add orders tab to individuals tab panel
3
- var individualsTabPanel = Ext.getCmp('individualsTabPanel');
4
- individualsTabPanel.add({
1
+ Ext.define("Compass.ErpApp.Organizer.Applications.OrderManagement.PartyOrdersTab",{
2
+ extend:"Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPanel",
3
+ alias:'widget.partyorderstab',
5
4
  title:'Orders',
6
- xtype:'ordermanager_ordersgridpanel',
7
5
  columns: [
8
6
  {
9
7
  header:'Order Number',
@@ -111,5 +109,5 @@ Compass.ErpApp.Organizer.Applications.OrderManagement.loadExtensions = function(
111
109
  }
112
110
  }
113
111
  }
114
- });
115
- };
112
+
113
+ });
@@ -1,45 +1,49 @@
1
1
  Ext.define("Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPanel",{
2
- extend:"Ext.grid.Panel",
3
- alias:'widget.ordermanager_ordersgridpanel',
4
- deleteOrder : function(rec){
5
- var self = this;
6
- Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this order?', function(btn){
7
- if(btn == 'no'){
8
- return false;
2
+ extend:"Ext.grid.Panel",
3
+ alias:'widget.ordermanager_ordersgridpanel',
4
+ deleteOrder : function(rec){
5
+ var self = this;
6
+ Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete this order?', function(btn){
7
+ if(btn == 'no'){
8
+ return false;
9
+ }
10
+ else
11
+ {
12
+ Ext.Ajax.request({
13
+ url: '/erp_orders/erp_app/desktop/order_manager/delete/'+rec.get('id'),
14
+ success: function(response) {
15
+ var obj = Ext.util.JSON.decode(response.responseText);
16
+ if(obj.success){
17
+ self.getStore().load();
9
18
  }
10
- else
11
- {
12
- var conn = new Ext.data.Connection();
13
- conn.request({
14
- url: '/erp_orders/erp_app/desktop/order_manager/delete/'+rec.get('id'),
15
- success: function(response) {
16
- var obj = Ext.util.JSON.decode(response.responseText);
17
- if(obj.success){
18
- self.getStore().load();
19
- }
20
- else{
21
- Ext.Msg.alert('Error', 'Error deleting order.');
22
- }
23
- },
24
- failure: function(response) {
25
- Ext.Msg.alert('Error', 'Error deleting order.');
26
- }
27
- });
19
+ else{
20
+ Ext.Msg.alert('Error', 'Error deleting order.');
28
21
  }
22
+ },
23
+ failure: function(response) {
24
+ Ext.Msg.alert('Error', 'Error deleting order.');
25
+ }
29
26
  });
30
- },
27
+ }
28
+ });
29
+ },
31
30
 
32
- initComponent : function(){
33
- this.bbar = Ext.create("Ext.PagingToolbar",{
34
- pageSize: this.initialConfig['pageSize'] || 50,
35
- store:this.store,
36
- displayInfo: true,
37
- displayMsg: '{0} - {1} of {2}',
38
- emptyMsg: "Empty"
39
- });
31
+ initComponent : function(){
32
+ this.setParams = function(params) {
33
+ this.partyId = params.partyId;
34
+ this.store.proxy.extraParams.party_id = params.partyId;
35
+ };
36
+
37
+ this.bbar = Ext.create("Ext.PagingToolbar",{
38
+ pageSize: this.initialConfig['pageSize'] || 50,
39
+ store:this.store,
40
+ displayInfo: true,
41
+ displayMsg: '{0} - {1} of {2}',
42
+ emptyMsg: "Empty"
43
+ });
40
44
 
41
- Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPanel.superclass.initComponent.call(this, arguments);
42
- },
45
+ Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPanel.superclass.initComponent.call(this, arguments);
46
+ },
43
47
 
44
48
  constructor : function(config) {
45
49
  var store = Ext.create("Ext.data.Store",{
@@ -133,7 +137,7 @@ Ext.define("Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPane
133
137
  return false;
134
138
  }
135
139
 
136
- var individualsGrid = Ext.getCmp('individualSearchGrid');
140
+ var individualsGrid = Ext.getCmp('individualSearchGrid');
137
141
 
138
142
  var index = individualsGrid.getStore().find("id", payorPartyId);
139
143
  var record = individualsGrid.getStore().getAt(index);
@@ -200,6 +204,6 @@ Ext.define("Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPane
200
204
  }
201
205
  }, config);
202
206
 
203
- Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPanel.superclass.constructor.call(this, config);
204
- }
207
+ Compass.ErpApp.Organizer.Applications.OrderManagement.OrdersGridPanel.superclass.constructor.call(this, config);
208
+ }
205
209
  });
data/spec/dummy/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/spec/dummy/config.ru CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erp_orders
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,52 +9,52 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000Z
12
+ date: 2012-05-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: erp_app
16
- requirement: &2157186520 !ruby/object:Gem::Requirement
16
+ requirement: &82396800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - =
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 3.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157186520
24
+ version_requirements: *82396800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: erp_agreements
27
- requirement: &2157185500 !ruby/object:Gem::Requirement
27
+ requirement: &82421180 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
- - - ! '>='
30
+ - - =
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: 3.0.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2157185500
35
+ version_requirements: *82421180
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: erp_products
38
- requirement: &2157183820 !ruby/object:Gem::Requirement
38
+ requirement: &82420340 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ! '>='
41
+ - - =
42
42
  - !ruby/object:Gem::Version
43
- version: '0'
43
+ version: 3.0.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2157183820
46
+ version_requirements: *82420340
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: erp_dev_svcs
49
- requirement: &2157183200 !ruby/object:Gem::Requirement
49
+ requirement: &82419610 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ! '>='
52
+ - - =
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 3.0.1
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2157183200
57
+ version_requirements: *82419610
58
58
  description: The Orders Engine in CompassAE implements models for Orders, Order Items
59
59
  and Order status tracking. It also houses models for charge lines associated with
60
60
  Orders (although it could be argued that this functionality should reside in Commerce).
@@ -65,82 +65,83 @@ extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
67
  - public/javascripts/erp_app/desktop/applications/order_manager/line_items_grid_panel.js
68
+ - public/javascripts/erp_app/desktop/applications/order_manager/payments_grid_panel.js
68
69
  - public/javascripts/erp_app/desktop/applications/order_manager/module.js
69
70
  - public/javascripts/erp_app/desktop/applications/order_manager/orders_grid_panel.js
70
- - public/javascripts/erp_app/desktop/applications/order_manager/payments_grid_panel.js
71
- - public/javascripts/erp_app/organizer/applications/order_management/base.js
72
- - public/javascripts/erp_app/organizer/applications/order_management/extensions.js
73
71
  - public/javascripts/erp_app/organizer/applications/order_management/line_items_grid_panel.js
74
- - public/javascripts/erp_app/organizer/applications/order_management/orders_grid_panel.js
75
72
  - public/javascripts/erp_app/organizer/applications/order_management/payments_grid_panel.js
76
- - app/assets/javascripts/erp_orders/application.js
73
+ - public/javascripts/erp_app/organizer/applications/order_management/extensions.js
74
+ - public/javascripts/erp_app/organizer/applications/order_management/orders_grid_panel.1.js
75
+ - public/javascripts/erp_app/organizer/applications/order_management/base.js
77
76
  - app/assets/stylesheets/erp_orders/application.css
78
- - app/controllers/erp_orders/erp_app/desktop/order_manager/base_controller.rb
79
- - app/controllers/erp_orders/erp_app/organizer/order_management/base_controller.rb
80
- - app/helpers/erp_orders/application_helper.rb
81
- - app/models/charge_line.rb
82
- - app/models/charge_line_payment_txn.rb
83
- - app/models/extensions/agreement.rb
84
- - app/models/extensions/money.rb
85
- - app/models/extensions/party.rb
86
- - app/models/extensions/product_instance.rb
87
- - app/models/extensions/product_type.rb
77
+ - app/assets/javascripts/erp_orders/application.js
78
+ - app/views/layouts/erp_orders/application.html.erb
88
79
  - app/models/line_item_role_type.rb
80
+ - app/models/charge_line_payment_txn.rb
81
+ - app/models/order_txn_type.rb
89
82
  - app/models/order_line_item.rb
90
83
  - app/models/order_line_item_pty_role.rb
91
- - app/models/order_line_item_type.rb
92
84
  - app/models/order_txn.rb
93
- - app/models/order_txn_type.rb
94
- - app/views/layouts/erp_orders/application.html.erb
85
+ - app/models/charge_line.rb
86
+ - app/models/extensions/product_type.rb
87
+ - app/models/extensions/party.rb
88
+ - app/models/extensions/money.rb
89
+ - app/models/extensions/product_instance.rb
90
+ - app/models/extensions/agreement.rb
91
+ - app/models/order_line_item_type.rb
92
+ - app/helpers/erp_orders/application_helper.rb
93
+ - app/controllers/erp_orders/erp_app/desktop/order_manager/base_controller.rb
94
+ - app/controllers/erp_orders/erp_app/organizer/order_management/base_controller.rb
95
95
  - config/routes.rb
96
- - db/data_migrations/20110605231556_create_order_party_roles.rb
96
+ - db/migrate/20110602194707_update_order_txn_ship_to_bill_to.rb
97
+ - db/migrate/20080805000060_base_orders.rb
97
98
  - db/data_migrations/20110728201731_create_desktop_app_order_manager.rb
99
+ - db/data_migrations/20120229174343_add_orders_widget.rb
98
100
  - db/data_migrations/20110728201732_create_organizer_app_order_management.rb
99
- - db/migrate/20080805000060_base_orders.rb
100
- - db/migrate/20110602194707_update_order_txn_ship_to_bill_to.rb
101
+ - db/data_migrations/20110605231556_create_order_party_roles.rb
102
+ - lib/erp_orders.rb
101
103
  - lib/erp_orders/engine.rb
102
- - lib/erp_orders/extensions/active_record/acts_as_order_txn.rb
103
104
  - lib/erp_orders/extensions.rb
105
+ - lib/erp_orders/extensions/active_record/acts_as_order_txn.rb
104
106
  - lib/erp_orders/version.rb
105
- - lib/erp_orders.rb
106
107
  - lib/tasks/erp_orders_tasks.rake
107
108
  - GPL-3-LICENSE
108
109
  - Rakefile
109
110
  - README.rdoc
110
- - spec/dummy/app/assets/javascripts/application.js
111
+ - spec/spec_helper.rb
112
+ - spec/models/order_line_item_type_spec.rb
113
+ - spec/models/order_line_item_pty_role_spec.rb
114
+ - spec/models/line_item_role_type_spec.rb
115
+ - spec/models/order_txn_type_spec.rb
116
+ - spec/models/charge_line_spec.rb
117
+ - spec/models/charge_line_payment_txn_spec.rb
118
+ - spec/models/order_txn_spec.rb
119
+ - spec/models/order_line_item_spec.rb
120
+ - spec/dummy/public/422.html
121
+ - spec/dummy/public/404.html
122
+ - spec/dummy/public/500.html
123
+ - spec/dummy/public/favicon.ico
124
+ - spec/dummy/config.ru
111
125
  - spec/dummy/app/assets/stylesheets/application.css
112
- - spec/dummy/app/controllers/application_controller.rb
113
- - spec/dummy/app/helpers/application_helper.rb
126
+ - spec/dummy/app/assets/javascripts/application.js
114
127
  - spec/dummy/app/views/layouts/application.html.erb
115
- - spec/dummy/config/application.rb
128
+ - spec/dummy/app/helpers/application_helper.rb
129
+ - spec/dummy/app/controllers/application_controller.rb
130
+ - spec/dummy/config/routes.rb
131
+ - spec/dummy/config/locales/en.yml
116
132
  - spec/dummy/config/boot.rb
117
- - spec/dummy/config/database.yml
118
- - spec/dummy/config/environment.rb
133
+ - spec/dummy/config/application.rb
119
134
  - spec/dummy/config/environments/spec.rb
120
- - spec/dummy/config/initializers/backtrace_silencers.rb
121
- - spec/dummy/config/initializers/inflections.rb
122
135
  - spec/dummy/config/initializers/mime_types.rb
123
- - spec/dummy/config/initializers/secret_token.rb
124
136
  - spec/dummy/config/initializers/session_store.rb
137
+ - spec/dummy/config/initializers/backtrace_silencers.rb
125
138
  - spec/dummy/config/initializers/wrap_parameters.rb
126
- - spec/dummy/config/locales/en.yml
127
- - spec/dummy/config/routes.rb
128
- - spec/dummy/config.ru
129
- - spec/dummy/public/404.html
130
- - spec/dummy/public/422.html
131
- - spec/dummy/public/500.html
132
- - spec/dummy/public/favicon.ico
139
+ - spec/dummy/config/initializers/inflections.rb
140
+ - spec/dummy/config/initializers/secret_token.rb
141
+ - spec/dummy/config/environment.rb
142
+ - spec/dummy/config/database.yml
133
143
  - spec/dummy/Rakefile
134
144
  - spec/dummy/script/rails
135
- - spec/models/charge_line_payment_txn_spec.rb
136
- - spec/models/charge_line_spec.rb
137
- - spec/models/line_item_role_type_spec.rb
138
- - spec/models/order_line_item_pty_role_spec.rb
139
- - spec/models/order_line_item_spec.rb
140
- - spec/models/order_line_item_type_spec.rb
141
- - spec/models/order_txn_spec.rb
142
- - spec/models/order_txn_type_spec.rb
143
- - spec/spec_helper.rb
144
145
  homepage: http://development.compassagile.com
145
146
  licenses: []
146
147
  post_install_message:
@@ -167,37 +168,37 @@ specification_version: 3
167
168
  summary: The Orders Engine in CompassAE implements models for Orders, Order Items
168
169
  and Order status tracking.
169
170
  test_files:
170
- - spec/dummy/app/assets/javascripts/application.js
171
+ - spec/spec_helper.rb
172
+ - spec/models/order_line_item_type_spec.rb
173
+ - spec/models/order_line_item_pty_role_spec.rb
174
+ - spec/models/line_item_role_type_spec.rb
175
+ - spec/models/order_txn_type_spec.rb
176
+ - spec/models/charge_line_spec.rb
177
+ - spec/models/charge_line_payment_txn_spec.rb
178
+ - spec/models/order_txn_spec.rb
179
+ - spec/models/order_line_item_spec.rb
180
+ - spec/dummy/public/422.html
181
+ - spec/dummy/public/404.html
182
+ - spec/dummy/public/500.html
183
+ - spec/dummy/public/favicon.ico
184
+ - spec/dummy/config.ru
171
185
  - spec/dummy/app/assets/stylesheets/application.css
172
- - spec/dummy/app/controllers/application_controller.rb
173
- - spec/dummy/app/helpers/application_helper.rb
186
+ - spec/dummy/app/assets/javascripts/application.js
174
187
  - spec/dummy/app/views/layouts/application.html.erb
175
- - spec/dummy/config/application.rb
188
+ - spec/dummy/app/helpers/application_helper.rb
189
+ - spec/dummy/app/controllers/application_controller.rb
190
+ - spec/dummy/config/routes.rb
191
+ - spec/dummy/config/locales/en.yml
176
192
  - spec/dummy/config/boot.rb
177
- - spec/dummy/config/database.yml
178
- - spec/dummy/config/environment.rb
193
+ - spec/dummy/config/application.rb
179
194
  - spec/dummy/config/environments/spec.rb
180
- - spec/dummy/config/initializers/backtrace_silencers.rb
181
- - spec/dummy/config/initializers/inflections.rb
182
195
  - spec/dummy/config/initializers/mime_types.rb
183
- - spec/dummy/config/initializers/secret_token.rb
184
196
  - spec/dummy/config/initializers/session_store.rb
197
+ - spec/dummy/config/initializers/backtrace_silencers.rb
185
198
  - spec/dummy/config/initializers/wrap_parameters.rb
186
- - spec/dummy/config/locales/en.yml
187
- - spec/dummy/config/routes.rb
188
- - spec/dummy/config.ru
189
- - spec/dummy/public/404.html
190
- - spec/dummy/public/422.html
191
- - spec/dummy/public/500.html
192
- - spec/dummy/public/favicon.ico
199
+ - spec/dummy/config/initializers/inflections.rb
200
+ - spec/dummy/config/initializers/secret_token.rb
201
+ - spec/dummy/config/environment.rb
202
+ - spec/dummy/config/database.yml
193
203
  - spec/dummy/Rakefile
194
204
  - spec/dummy/script/rails
195
- - spec/models/charge_line_payment_txn_spec.rb
196
- - spec/models/charge_line_spec.rb
197
- - spec/models/line_item_role_type_spec.rb
198
- - spec/models/order_line_item_pty_role_spec.rb
199
- - spec/models/order_line_item_spec.rb
200
- - spec/models/order_line_item_type_spec.rb
201
- - spec/models/order_txn_spec.rb
202
- - spec/models/order_txn_type_spec.rb
203
- - spec/spec_helper.rb