erp_invoicing 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/GPL-3-LICENSE +674 -0
  2. data/README.rdoc +3 -0
  3. data/Rakefile +31 -0
  4. data/app/assets/javascripts/erp_invoicing/application.js +9 -0
  5. data/app/assets/stylesheets/erp_invoicing/application.css +7 -0
  6. data/app/controllers/erp_invoicing/erp_app/organizer/bill_pay/accounts_controller.rb +108 -0
  7. data/app/controllers/erp_invoicing/erp_app/organizer/bill_pay/base_controller.rb +22 -0
  8. data/app/helpers/erp_invoicing/application_helper.rb +4 -0
  9. data/app/models/extensions/financial_txn_account.rb +7 -0
  10. data/app/models/extensions/product_instance.rb +10 -0
  11. data/app/models/extensions/product_type.rb +10 -0
  12. data/app/models/extensions/work_effort.rb +10 -0
  13. data/app/models/invoice.rb +16 -0
  14. data/app/models/invoice_item.rb +13 -0
  15. data/app/models/invoice_item_type.rb +2 -0
  16. data/app/models/invoice_party_role.rb +7 -0
  17. data/app/models/invoice_type.rb +2 -0
  18. data/app/models/payment_application.rb +6 -0
  19. data/app/views/layouts/erp_invoicing/application.html.erb +14 -0
  20. data/app/widgets/bill_pay/base.rb +230 -0
  21. data/app/widgets/bill_pay/helpers/controller/bill_pay_controller_helper.rb +3 -0
  22. data/app/widgets/bill_pay/helpers/view/bill_pay_view_helper.rb +3 -0
  23. data/app/widgets/bill_pay/javascript/bill_pay.js +11 -0
  24. data/app/widgets/bill_pay/views/_menu.html.erb +63 -0
  25. data/app/widgets/bill_pay/views/_payment_history_table.html.erb +115 -0
  26. data/app/widgets/bill_pay/views/_statement_table.html.erb +117 -0
  27. data/app/widgets/bill_pay/views/account_home.html.erb +10 -0
  28. data/app/widgets/bill_pay/views/index.html.erb +4 -0
  29. data/app/widgets/bill_pay/views/make_payment.html.erb +24 -0
  30. data/app/widgets/bill_pay/views/payment_account_forms/bank_account.html.erb +28 -0
  31. data/app/widgets/bill_pay/views/payment_account_forms/credit_card.html.erb +48 -0
  32. data/app/widgets/bill_pay/views/payment_accounts.html.erb +120 -0
  33. data/app/widgets/bill_pay/views/payment_history.html.erb +104 -0
  34. data/app/widgets/bill_pay/views/pdf/layout.pdf.erb +35 -0
  35. data/app/widgets/bill_pay/views/statements.html.erb +4 -0
  36. data/config/routes.rb +6 -0
  37. data/db/data_migrations/20111121153349_create_bill_pay_organizer_application.rb +14 -0
  38. data/db/migrate/20111121000000_invoicing_services.rb +197 -0
  39. data/lib/erp_invoicing/engine.rb +10 -0
  40. data/lib/erp_invoicing/version.rb +3 -0
  41. data/lib/erp_invoicing.rb +4 -0
  42. data/lib/tasks/erp_invoicing_tasks.rake +4 -0
  43. data/public/javascripts/erp_app/organizer/applications/bill_pay/accounts_grid_panel.js +182 -0
  44. data/public/javascripts/erp_app/organizer/applications/bill_pay/base.js +134 -0
  45. data/public/javascripts/erp_app/organizer/applications/bill_pay/extensions.js +112 -0
  46. data/public/javascripts/erp_app/organizer/applications/bill_pay/make_payment_window.js +103 -0
  47. data/public/javascripts/erp_app/organizer/applications/bill_pay/payment_accounts_grid_panel.js +104 -0
  48. data/public/javascripts/erp_app/organizer/applications/bill_pay/transactions_grid_panel.js +84 -0
  49. metadata +187 -0
@@ -0,0 +1,84 @@
1
+ Ext.define("Compass.ErpApp.Organizer.Applications.BillPay.TransactionsGridPanel",{
2
+ extend:"Ext.grid.Panel",
3
+ alias:'widget.billpay_transactionsgridpanel',
4
+
5
+ generateStatement : function(){
6
+ window.open('/erp_invoicing/erp_app/organizer/bill_pay/accounts/generate_statement','mywindow','width=400,height=200');
7
+ },
8
+
9
+ initComponent : function(){
10
+ this.bbar = Ext.create("Ext.PagingToolbar",{
11
+ pageSize: this.initialConfig['pageSize'] || 50,
12
+ store:this.store,
13
+ displayInfo: true,
14
+ displayMsg: '{0} - {1} of {2}',
15
+ emptyMsg: "Empty"
16
+ });
17
+
18
+ this.callParent(arguments);
19
+ },
20
+
21
+ constructor : function(config) {
22
+ var store = Ext.create("Ext.data.Store",{
23
+ proxy:{
24
+ type:'ajax',
25
+ url: '/erp_invoicing/erp_app/organizer/bill_pay/accounts/transactions',
26
+ reader:{
27
+ type:'json',
28
+ root: 'transactions'
29
+ }
30
+ },
31
+ extraParams:{
32
+ account_id:null
33
+ },
34
+ totalProperty: 'totalCount',
35
+ idProperty: 'id',
36
+ fields:[
37
+ 'date',
38
+ 'description',
39
+ 'amount'
40
+ ]
41
+ });
42
+
43
+ config = Ext.apply({
44
+ title:'Transactions',
45
+ columns: [
46
+ {
47
+ header:'Transaction Date',
48
+ sortable: true,
49
+ dataIndex: 'date'
50
+ },
51
+ {
52
+ header:'Description',
53
+ sortable: true,
54
+ width:150,
55
+ dataIndex: 'description'
56
+ },
57
+ {
58
+ header:'Amount',
59
+ sortable: true,
60
+ width:150,
61
+ dataIndex: 'amount'
62
+ },
63
+ ],
64
+ loadMask: true,
65
+ autoScroll:true,
66
+ stripeRows: true,
67
+ store:store,
68
+ tbar:{
69
+ items:[
70
+ {
71
+ text: 'Generate Statement',
72
+ xtype:'button',
73
+ iconCls: 'icon-document',
74
+ handler: function(btn) {
75
+ btn.findParentByType('billpay_transactionsgridpanel').generateStatement();
76
+ }
77
+ },
78
+ ]
79
+ }
80
+ }, config);
81
+
82
+ this.callParent([config]);
83
+ }
84
+ });
metadata ADDED
@@ -0,0 +1,187 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: erp_invoicing
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Rick Koloski, Russell Holmes
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-01-06 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: erp_app
16
+ requirement: &2157341040 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *2157341040
25
+ - !ruby/object:Gem::Dependency
26
+ name: erp_agreements
27
+ requirement: &2157340140 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :runtime
34
+ prerelease: false
35
+ version_requirements: *2157340140
36
+ - !ruby/object:Gem::Dependency
37
+ name: erp_txns_and_accts
38
+ requirement: &2157339500 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: *2157339500
47
+ - !ruby/object:Gem::Dependency
48
+ name: erp_orders
49
+ requirement: &2157337700 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :runtime
56
+ prerelease: false
57
+ version_requirements: *2157337700
58
+ - !ruby/object:Gem::Dependency
59
+ name: erp_products
60
+ requirement: &2157337020 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :runtime
67
+ prerelease: false
68
+ version_requirements: *2157337020
69
+ - !ruby/object:Gem::Dependency
70
+ name: erp_inventory
71
+ requirement: &2157336260 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ! '>='
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: *2157336260
80
+ - !ruby/object:Gem::Dependency
81
+ name: erp_commerce
82
+ requirement: &2157335180 !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :runtime
89
+ prerelease: false
90
+ version_requirements: *2157335180
91
+ - !ruby/object:Gem::Dependency
92
+ name: sqlite3
93
+ requirement: &2157334160 !ruby/object:Gem::Requirement
94
+ none: false
95
+ requirements:
96
+ - - ! '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ type: :development
100
+ prerelease: false
101
+ version_requirements: *2157334160
102
+ description: ErpInvoicing adds models and services to the CompassAE core to handle
103
+ invoicing and billing functions. It includes extensions to the core ERP classes
104
+ for accounts and things that are 'billable' (products, work efforts), and additional
105
+ models for the invoices/items, payments and the application of payments to invoices
106
+ or invoice items. It also includes application hooks to make it easy to add electronic
107
+ bill pay functionality to Web applications.
108
+ email:
109
+ - russonrails@gmail.com
110
+ executables: []
111
+ extensions: []
112
+ extra_rdoc_files: []
113
+ files:
114
+ - public/javascripts/erp_app/organizer/applications/bill_pay/accounts_grid_panel.js
115
+ - public/javascripts/erp_app/organizer/applications/bill_pay/base.js
116
+ - public/javascripts/erp_app/organizer/applications/bill_pay/extensions.js
117
+ - public/javascripts/erp_app/organizer/applications/bill_pay/make_payment_window.js
118
+ - public/javascripts/erp_app/organizer/applications/bill_pay/payment_accounts_grid_panel.js
119
+ - public/javascripts/erp_app/organizer/applications/bill_pay/transactions_grid_panel.js
120
+ - app/assets/javascripts/erp_invoicing/application.js
121
+ - app/assets/stylesheets/erp_invoicing/application.css
122
+ - app/controllers/erp_invoicing/erp_app/organizer/bill_pay/accounts_controller.rb
123
+ - app/controllers/erp_invoicing/erp_app/organizer/bill_pay/base_controller.rb
124
+ - app/helpers/erp_invoicing/application_helper.rb
125
+ - app/models/extensions/financial_txn_account.rb
126
+ - app/models/extensions/product_instance.rb
127
+ - app/models/extensions/product_type.rb
128
+ - app/models/extensions/work_effort.rb
129
+ - app/models/invoice.rb
130
+ - app/models/invoice_item.rb
131
+ - app/models/invoice_item_type.rb
132
+ - app/models/invoice_party_role.rb
133
+ - app/models/invoice_type.rb
134
+ - app/models/payment_application.rb
135
+ - app/views/layouts/erp_invoicing/application.html.erb
136
+ - app/widgets/bill_pay/base.rb
137
+ - app/widgets/bill_pay/helpers/controller/bill_pay_controller_helper.rb
138
+ - app/widgets/bill_pay/helpers/view/bill_pay_view_helper.rb
139
+ - app/widgets/bill_pay/javascript/bill_pay.js
140
+ - app/widgets/bill_pay/views/_menu.html.erb
141
+ - app/widgets/bill_pay/views/_payment_history_table.html.erb
142
+ - app/widgets/bill_pay/views/_statement_table.html.erb
143
+ - app/widgets/bill_pay/views/account_home.html.erb
144
+ - app/widgets/bill_pay/views/index.html.erb
145
+ - app/widgets/bill_pay/views/make_payment.html.erb
146
+ - app/widgets/bill_pay/views/payment_account_forms/bank_account.html.erb
147
+ - app/widgets/bill_pay/views/payment_account_forms/credit_card.html.erb
148
+ - app/widgets/bill_pay/views/payment_accounts.html.erb
149
+ - app/widgets/bill_pay/views/payment_history.html.erb
150
+ - app/widgets/bill_pay/views/pdf/layout.pdf.erb
151
+ - app/widgets/bill_pay/views/statements.html.erb
152
+ - config/routes.rb
153
+ - db/data_migrations/20111121153349_create_bill_pay_organizer_application.rb
154
+ - db/migrate/20111121000000_invoicing_services.rb
155
+ - lib/erp_invoicing/engine.rb
156
+ - lib/erp_invoicing/version.rb
157
+ - lib/erp_invoicing.rb
158
+ - lib/tasks/erp_invoicing_tasks.rake
159
+ - GPL-3-LICENSE
160
+ - Rakefile
161
+ - README.rdoc
162
+ homepage: http://development.compassagile.com
163
+ licenses: []
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ none: false
176
+ requirements:
177
+ - - ! '>='
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ requirements: []
181
+ rubyforge_project:
182
+ rubygems_version: 1.8.10
183
+ signing_key:
184
+ specification_version: 3
185
+ summary: ErpInvoicing adds models and services to the CompassAE core to handle invoicing
186
+ and billing functions.
187
+ test_files: []