erp_invoicing 3.1.0 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +7 -0
  2. data/app/models/extensions/party.rb +15 -3
  3. data/app/models/invoice.rb +33 -1
  4. data/app/models/invoice_party_role.rb +16 -0
  5. data/app/models/payment_application.rb +17 -1
  6. data/lib/erp_invoicing/engine.rb +1 -1
  7. data/lib/erp_invoicing/version.rb +6 -2
  8. metadata +31 -234
  9. data/app/assets/javascripts/erp_invoicing/application.js +0 -9
  10. data/app/assets/stylesheets/erp_invoicing/application.css +0 -7
  11. data/app/controllers/erp_invoicing/erp_app/organizer/bill_pay/accounts_controller.rb +0 -166
  12. data/app/controllers/erp_invoicing/erp_app/organizer/bill_pay/base_controller.rb +0 -22
  13. data/app/controllers/erp_invoicing/erp_app/shared/billing_accounts_controller.rb +0 -111
  14. data/app/controllers/erp_invoicing/erp_app/shared/files_controller.rb +0 -52
  15. data/app/controllers/erp_invoicing/erp_app/shared/invoices_controller.rb +0 -208
  16. data/app/controllers/erp_invoicing/sms_controller.rb +0 -156
  17. data/app/helpers/erp_invoicing/application_helper.rb +0 -4
  18. data/app/views/layouts/erp_invoicing/application.html.erb +0 -14
  19. data/db/data_migrations/20111121153349_create_bill_pay_organizer_application.rb +0 -14
  20. data/db/data_migrations/20120118181839_create_invoice_management_desktop_application.rb +0 -26
  21. data/db/data_migrations/20120229174322_add_billpay_widget.rb +0 -26
  22. data/public/javascripts/erp_app/desktop/applications/invoice_management/billing_accounts_panel.js +0 -79
  23. data/public/javascripts/erp_app/desktop/applications/invoice_management/invoices_panel.js +0 -48
  24. data/public/javascripts/erp_app/desktop/applications/invoice_management/module.js +0 -36
  25. data/public/javascripts/erp_app/organizer/applications/bill_pay/base.js +0 -146
  26. data/public/javascripts/erp_app/organizer/applications/bill_pay/extensions.js +0 -21
  27. data/public/javascripts/erp_app/organizer/applications/bill_pay/make_payment_window.js +0 -109
  28. data/public/javascripts/erp_app/organizer/applications/bill_pay/payment_accounts_grid_panel.js +0 -105
  29. data/public/javascripts/erp_app/organizer/applications/bill_pay/transactions_grid_panel.js +0 -84
  30. data/public/javascripts/erp_app/shared/add_invoice_window.js +0 -220
  31. data/public/javascripts/erp_app/shared/billing_accounts_grid_panel.js +0 -316
  32. data/public/javascripts/erp_app/shared/invoice_items_grid_panel.js +0 -152
  33. data/public/javascripts/erp_app/shared/invoices_grid_panel.js +0 -361
  34. data/public/javascripts/erp_app/shared/payments_grid_panel.js +0 -74
  35. data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +0 -28
  36. data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +0 -16
  37. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
  38. data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +0 -24
  39. data/spec/dummy/db/data_migrations/20110509223702_add_publisher_role.knitkit.rb +0 -22
  40. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
  41. data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +0 -27
  42. data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +0 -24
  43. data/spec/dummy/db/data_migrations/20110608185830_create_default_dynamic_models_and_forms.erp_forms.rb +0 -33
  44. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
  45. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +0 -252
  46. data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +0 -26
  47. data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +0 -26
  48. data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +0 -15
  49. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +0 -53
  50. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
  51. data/spec/dummy/db/data_migrations/20110816153456_add_knitkit_application.knitkit.rb +0 -32
  52. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +0 -21
  53. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +0 -32
  54. data/spec/dummy/db/data_migrations/20110828190913_create_desktop_app_dynamic_forms.erp_forms.rb +0 -19
  55. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
  56. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +0 -23
  57. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +0 -42
  58. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
  59. data/spec/dummy/db/data_migrations/20111118182910_setup_knitkit_capabilities.knitkit.rb +0 -128
  60. data/spec/dummy/db/data_migrations/20111121153349_create_bill_pay_organizer_application.erp_invoicing.rb +0 -15
  61. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +0 -14
  62. data/spec/dummy/db/data_migrations/20120118181839_create_invoice_management_desktop_application.erp_invoicing.rb +0 -27
  63. data/spec/dummy/db/data_migrations/20120127144444_create_website_role_types.knitkit.rb +0 -14
  64. data/spec/dummy/db/data_migrations/20120127150505_create_website_default_configuration.knitkit.rb +0 -73
  65. data/spec/dummy/db/data_migrations/20120127150506_add_primary_host_to_website_configuration.knitkit.rb +0 -34
  66. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +0 -29
  67. data/spec/dummy/db/data_migrations/20120229174322_add_billpay_widget.erp_invoicing.rb +0 -27
  68. data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +0 -29
  69. data/spec/dummy/db/data_migrations/20120316150424_add_is_template_to_default_website_config.knitkit.rb +0 -17
  70. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
  71. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +0 -19
  72. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +0 -23
  73. data/spec/dummy/db/data_migrations/20120605154637_add_calculate_balance_strategy_types.erp_invoicing.rb +0 -21
  74. data/spec/dummy/db/data_migrations/20120809020508_update_website_and_configuration.knitkit.rb +0 -78
  75. data/spec/dummy/db/data_migrations/20120824013449_create_ticket_form.erp_forms.rb +0 -67
  76. data/spec/dummy/db/data_migrations/20121026013449_update_ticket_form.erp_forms.rb +0 -65
  77. data/spec/dummy/db/data_migrations/20121026191738_update_contact_form.erp_forms.rb +0 -27
  78. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
  79. data/spec/dummy/db/data_migrations/20121129185611_upgrade_website_role_iid.knitkit.rb +0 -21
  80. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
  81. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
  82. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +0 -23
  83. data/spec/dummy/db/migrate/20121214000230_base_erp_services.erp_base_erp_svcs.rb +0 -461
  84. data/spec/dummy/db/migrate/20121214000231_base_tech_services.erp_tech_svcs.rb +0 -255
  85. data/spec/dummy/db/migrate/20121214000232_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
  86. data/spec/dummy/db/migrate/20121214000233_base_app_framework.erp_app.rb +0 -276
  87. data/spec/dummy/db/migrate/20121214000234_dynamic_forms.erp_forms.rb +0 -95
  88. data/spec/dummy/db/migrate/20121214000235_create_tickets.erp_forms.rb +0 -19
  89. data/spec/dummy/db/migrate/20121214000236_upgrade_dynamic_forms_table.erp_forms.rb +0 -32
  90. data/spec/dummy/db/migrate/20121214000237_setup_knitkit.knitkit.rb +0 -316
  91. data/spec/dummy/db/migrate/20121214000238_invoicing_services.erp_invoicing.rb +0 -277
  92. data/spec/dummy/db/migrate/20121214000239_base_inventory.erp_inventory.rb +0 -91
  93. data/spec/dummy/db/migrate/20121214000240_base_inventory_indexes.erp_inventory.rb +0 -48
  94. data/spec/dummy/db/migrate/20121214000241_base_txns_and_accts.erp_txns_and_accts.rb +0 -364
  95. data/spec/dummy/db/migrate/20121214000242_agreements_services.erp_agreements.rb +0 -160
  96. data/spec/dummy/db/migrate/20121214000243_agreements_services_indexes.erp_agreements.rb +0 -52
  97. data/spec/dummy/db/migrate/20121214000244_base_orders.erp_orders.rb +0 -178
  98. data/spec/dummy/db/migrate/20121214000245_base_products.erp_products.rb +0 -234
  99. data/spec/dummy/db/migrate/20121214000246_base_products_indexes.erp_products.rb +0 -59
  100. data/spec/dummy/db/migrate/20121214000247_erp_commerce_base.erp_commerce.rb +0 -442
  101. data/spec/dummy/db/migrate/20121214000248_base_work_efforts.erp_work_effort.rb +0 -211
  102. data/spec/dummy/db/migrate/20130107181155_create_groups.erp_tech_svcs.rb +0 -19
  103. data/spec/dummy/db/migrate/20130107181156_upgrade_security.erp_tech_svcs.rb +0 -54
  104. data/spec/dummy/db/migrate/20130107181157_upgrade_security2.erp_tech_svcs.rb +0 -270
  105. data/spec/dummy/db/schema.rb +0 -2569
  106. data/spec/dummy/db/spec.sqlite3 +0 -0
  107. data/spec/dummy/log/spec.log +0 -64744
@@ -1,105 +0,0 @@
1
- Ext.define("Compass.ErpApp.Organizer.Applications.BillPay.PaymentAccountsGridPanel",{
2
- extend:"Ext.grid.Panel",
3
- alias:'widget.billpay-paymentaccountsgridpanel',
4
-
5
- initComponent : function(){
6
- this.bbar = Ext.create("Ext.PagingToolbar",{
7
- pageSize: this.initialConfig['pageSize'] || 50,
8
- store:this.store,
9
- displayInfo: true,
10
- displayMsg: '{0} - {1} of {2}',
11
- emptyMsg: "Empty"
12
- });
13
-
14
- this.callParent(arguments);
15
- },
16
-
17
- constructor : function(config) {
18
- var store = Ext.create("Ext.data.Store",{
19
- autoLoad: true,
20
- proxy:{
21
- type:'ajax',
22
- url: '/erp_invoicing/erp_app/organizer/bill_pay/accounts/payment_accounts',
23
- reader:{
24
- type:'json',
25
- root: 'payment_accounts'
26
- }
27
- },
28
- extraParams:{
29
- account_id:null
30
- },
31
- totalProperty: 'totalCount',
32
- idProperty: 'id',
33
- fields:[
34
- 'id',
35
- 'description',
36
- 'account_type'
37
- ]
38
- });
39
-
40
- config = Ext.apply({
41
- title:'Payment Accounts',
42
- columns: [
43
- {
44
- header:'Description',
45
- sortable: true,
46
- dataIndex: 'description'
47
- },
48
- {
49
- header:'Account Type',
50
- sortable: true,
51
- width:150,
52
- dataIndex: 'account_type'
53
- },
54
- {
55
- menuDisabled:true,
56
- resizable:false,
57
- xtype:'actioncolumn',
58
- header:'Edit',
59
- align:'center',
60
- width:100,
61
- items:[{
62
- icon:'/images/icons/edit/edit_16x16.png',
63
- tooltip:'View Payor Info',
64
- handler :function(grid, rowIndex, colIndex){
65
-
66
- }
67
- }]
68
- },
69
- {
70
- menuDisabled:true,
71
- resizable:false,
72
- xtype:'actioncolumn',
73
- header:'Delete',
74
- align:'center',
75
- width:60,
76
- items:[{
77
- icon:'/images/icons/delete/delete_16x16.png',
78
- tooltip:'Delete',
79
- handler :function(grid, rowIndex, colIndex){
80
-
81
- }
82
- }]
83
- }
84
- ],
85
- loadMask: true,
86
- autoScroll:true,
87
- stripeRows: true,
88
- store:store,
89
- tbar:{
90
- items:[
91
- {
92
- text: 'Add',
93
- xtype:'button',
94
- iconCls: 'icon-add',
95
- handler: function(btn) {
96
-
97
- }
98
- }
99
- ]
100
- }
101
- }, config);
102
-
103
- this.callParent([config]);
104
- }
105
- });
@@ -1,84 +0,0 @@
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
- });
@@ -1,220 +0,0 @@
1
- Ext.define("Compass.ErpApp.Shared.AddInvoiceWindow",{
2
- extend:"Ext.window.Window",
3
- alias:'widget.shared-addinvoicewindow',
4
- initComponent : function() {
5
- this.addEvents(
6
- "create_success",
7
- "create_failure"
8
- );
9
-
10
- this.callParent(this.arguments);
11
- },
12
- constructor : function(config) {
13
- var form = Ext.create("Ext.form.Panel",{
14
- labelWidth:110,
15
- frame:false,
16
- bodyStyle:'padding:5px 5px 0',
17
- autoHeight:true,
18
- url:'/erp_invoicing/erp_app/shared/invoices/create_invoice',
19
- items: [{
20
- xtype: 'textfield',
21
- fieldLabel:'Invoice Number',
22
- name:'invoice_number',
23
- allowBlank:false
24
- },
25
- {
26
- xtype: 'textarea',
27
- height:100,
28
- fieldLabel:'Description',
29
- name:'description',
30
- allowBlank:false
31
- },
32
- {
33
- xtype: 'textarea',
34
- height:100,
35
- fieldLabel:'Message',
36
- name:'message',
37
- allowBlank:true
38
- },
39
- {
40
- xtype: 'datefield',
41
- fieldLabel:'Invoice Date',
42
- name:'invoice_date',
43
- allowBlank:false
44
- },
45
- {
46
- xtype: 'datefield',
47
- fieldLabel:'Due Date',
48
- name:'due_date',
49
- allowBlank:false
50
- }
51
- // {
52
- // xtype:'combo',
53
- // hiddenName:'billed_from_party_id',
54
- // name:'billed_from_party_id',
55
- // loadingText:'Retrieving Parties...',
56
- // store:Ext.create('Ext.data.Store',{
57
- // proxy:{
58
- // type:'ajax',
59
- // reader:{
60
- // type:'json',
61
- // root:'parties'
62
- // },
63
- // url:'/erp_invoicing/erp_app/desktop/invoice_management/parties'
64
- // },
65
- // fields:[
66
- // {
67
- // name:'id'
68
- // },
69
- // {
70
- // name:'description'
71
- //
72
- // }
73
- // ]
74
- // }),
75
- // forceSelection:true,
76
- // editable:true,
77
- // fieldLabel:'Billed From Party',
78
- // autoSelect:true,
79
- // typeAhead: true,
80
- // mode: 'remote',
81
- // displayField:'description',
82
- // valueField:'id',
83
- // triggerAction: 'all',
84
- // allowBlank:true
85
- // },
86
- // {
87
- // xtype:'combo',
88
- // hiddenName:'billed_to_party_id',
89
- // name:'billed_to_party_id',
90
- // loadingText:'Retrieving Parties...',
91
- // store:Ext.create('Ext.data.Store',{
92
- // proxy:{
93
- // type:'ajax',
94
- // reader:{
95
- // type:'json',
96
- // root:'parties'
97
- // },
98
- // url:'/erp_invoicing/erp_app/desktop/invoice_management/parties'
99
- // },
100
- // fields:[
101
- // {
102
- // name:'id'
103
- // },
104
- // {
105
- // name:'description'
106
- //
107
- // }
108
- // ]
109
- // }),
110
- // forceSelection:true,
111
- // editable:true,
112
- // fieldLabel:'Billed To Party',
113
- // autoSelect:true,
114
- // typeAhead: true,
115
- // mode: 'remote',
116
- // displayField:'description',
117
- // valueField:'id',
118
- // triggerAction: 'all',
119
- // allowBlank:true
120
- // }
121
- ]
122
- });
123
-
124
- if(!Compass.ErpApp.Utility.isBlank(config['billingAccountNumber'])){
125
- form.add({
126
- xtype:'displayfield',
127
- fieldLabel:'Billing Account',
128
- value:config['billingAccountNumber']
129
- });
130
- form.add({
131
- xtype:'hidden',
132
- name:'billing_account_id',
133
- value:config['billingAccountId']
134
- });
135
- }
136
- else{
137
- form.add({
138
- xtype:'combo',
139
- hiddenName:'billing_account_id',
140
- name:'billing_account_id',
141
- itemId:'billingAccountIdCombo',
142
- loadingText:'Retrieving Billing Accounts...',
143
- store:{
144
- autoLoad:true,
145
- xtype:'store',
146
- proxy:{
147
- type:'ajax',
148
- reader:{
149
- type:'json',
150
- root:'billing_accounts'
151
- },
152
- url:'/erp_invoicing/erp_app/shared/invoices/billing_accounts'
153
- },
154
- fields:[
155
- {
156
- name:'id'
157
- },
158
- {
159
- name:'account_number'
160
- }
161
- ]
162
- },
163
- forceSelection:true,
164
- editable:true,
165
- fieldLabel:'Billing Account',
166
- autoSelect:true,
167
- typeAhead: true,
168
- mode: 'remote',
169
- displayField:'account_number',
170
- valueField:'id',
171
- triggerAction: 'all',
172
- allowBlank:false
173
- });
174
- }
175
-
176
- config = Ext.apply({
177
- title:'Add Invoice',
178
- iconCls:'icon-add',
179
- buttonAlign:'center',
180
- plain: true,
181
- items: [form],
182
- buttons: [{
183
- text:'Submit',
184
- listeners:{
185
- 'click':function(button){
186
- var win = button.findParentByType('shared-addinvoicewindow');
187
- var formPanel = win.query('form')[0];
188
- formPanel.getForm().submit({
189
- method:'POST',
190
- waitMsg:'Creating...',
191
- success:function(form, action){
192
- var response = Ext.decode(action.response.responseText);
193
- win.fireEvent('create_success', win, response);
194
- win.close();
195
- },
196
- failure:function(form, action){
197
- Ext.Msg.alert('Error', 'Error creating invoice.');
198
- }
199
- });
200
- }
201
- }
202
- },
203
- {
204
- text: 'Cancel',
205
- listeners:{
206
- 'click':function(button){
207
- var win = button.findParentByType('shared-addinvoicewindow');
208
- var form = win.query('form')[0];
209
- form.getForm().reset();
210
- win.close();
211
- }
212
- }
213
- }
214
- ]
215
- }, config);
216
-
217
- this.callParent([config]);
218
- }
219
-
220
- });