erp_invoicing 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/erp_invoicing/erp_app/organizer/bill_pay/accounts_controller.rb +98 -46
- data/app/controllers/erp_invoicing/erp_app/organizer/bill_pay/base_controller.rb +1 -1
- data/app/controllers/erp_invoicing/erp_app/shared/billing_accounts_controller.rb +111 -0
- data/app/controllers/erp_invoicing/erp_app/shared/files_controller.rb +52 -0
- data/app/controllers/erp_invoicing/erp_app/shared/invoices_controller.rb +208 -0
- data/app/controllers/erp_invoicing/sms_controller.rb +156 -0
- data/app/models/billing_account.rb +204 -0
- data/app/models/extensions/document.rb +5 -0
- data/app/models/extensions/financial_txn.rb +5 -0
- data/app/models/extensions/party.rb +10 -0
- data/app/models/invoice.rb +100 -7
- data/app/models/invoice_item.rb +35 -2
- data/app/models/invoice_payment_strategy_type.rb +5 -0
- data/app/models/invoice_payment_term.rb +4 -0
- data/app/models/invoice_payment_term_set.rb +6 -0
- data/app/models/invoice_payment_term_type.rb +3 -0
- data/app/models/payment_application.rb +6 -1
- data/app/models/recurring_payment.rb +40 -0
- data/config/routes.rb +8 -1
- data/db/data_migrations/20111121153349_create_bill_pay_organizer_application.rb +1 -1
- data/db/data_migrations/20120118181839_create_invoice_management_desktop_application.rb +26 -0
- data/db/data_migrations/20120229174322_add_billpay_widget.rb +28 -0
- data/db/migrate/20111121000000_invoicing_services.rb +170 -103
- data/db/migrate/20120228184317_add_text_to_pay_to_recurring_payments.rb +13 -0
- data/db/migrate/20120301155722_add_billing_date_to_billing_account.rb +13 -0
- data/lib/erp_invoicing/engine.rb +5 -0
- data/lib/erp_invoicing/version.rb +7 -1
- data/lib/erp_invoicing.rb +1 -0
- data/public/javascripts/erp_app/desktop/applications/invoice_management/billing_accounts_panel.js +80 -0
- data/public/javascripts/erp_app/desktop/applications/invoice_management/invoices_panel.js +48 -0
- data/public/javascripts/erp_app/desktop/applications/invoice_management/module.js +36 -0
- data/public/javascripts/erp_app/organizer/applications/bill_pay/base.js +88 -76
- data/public/javascripts/erp_app/organizer/applications/bill_pay/extensions.js +6 -97
- data/public/javascripts/erp_app/organizer/applications/bill_pay/make_payment_window.js +19 -13
- data/public/javascripts/erp_app/organizer/applications/bill_pay/payment_accounts_grid_panel.js +2 -1
- data/public/javascripts/erp_app/shared/add_invoice_window.js +220 -0
- data/public/javascripts/erp_app/shared/billing_accounts_grid_panel.js +318 -0
- data/public/javascripts/erp_app/shared/invoice_items_grid_panel.js +152 -0
- data/public/javascripts/erp_app/shared/invoices_grid_panel.js +363 -0
- data/public/javascripts/erp_app/shared/payments_grid_panel.js +74 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/javascripts/application.js +9 -0
- data/spec/dummy/app/assets/stylesheets/application.css +7 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/config/application.rb +50 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/database.yml +8 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/spec.rb +27 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +10 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +12 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +26 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +6 -0
- data/spec/factories/basic.rb +9 -0
- data/spec/models/billing_account_spec.rb +78 -0
- data/spec/models/invoice_item_spec.rb +22 -0
- data/spec/models/invoice_spec.rb +58 -0
- data/spec/models/payment_application_spec.rb +17 -0
- data/spec/spec_helper.rb +60 -0
- metadata +148 -67
- data/app/widgets/bill_pay/base.rb +0 -230
- data/app/widgets/bill_pay/helpers/controller/bill_pay_controller_helper.rb +0 -3
- data/app/widgets/bill_pay/helpers/view/bill_pay_view_helper.rb +0 -3
- data/app/widgets/bill_pay/javascript/bill_pay.js +0 -11
- data/app/widgets/bill_pay/views/_menu.html.erb +0 -63
- data/app/widgets/bill_pay/views/_payment_history_table.html.erb +0 -115
- data/app/widgets/bill_pay/views/_statement_table.html.erb +0 -117
- data/app/widgets/bill_pay/views/account_home.html.erb +0 -10
- data/app/widgets/bill_pay/views/index.html.erb +0 -4
- data/app/widgets/bill_pay/views/make_payment.html.erb +0 -24
- data/app/widgets/bill_pay/views/payment_account_forms/bank_account.html.erb +0 -28
- data/app/widgets/bill_pay/views/payment_account_forms/credit_card.html.erb +0 -48
- data/app/widgets/bill_pay/views/payment_accounts.html.erb +0 -120
- data/app/widgets/bill_pay/views/payment_history.html.erb +0 -104
- data/app/widgets/bill_pay/views/pdf/layout.pdf.erb +0 -35
- data/app/widgets/bill_pay/views/statements.html.erb +0 -4
- data/public/javascripts/erp_app/organizer/applications/bill_pay/accounts_grid_panel.js +0 -182
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
<p>We've been notified about this issue and we'll take a look at it shortly.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,78 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe BillingAccount do
|
4
|
+
|
5
|
+
describe 'without invoices and do not calculate' do
|
6
|
+
|
7
|
+
before(:all) do
|
8
|
+
@primary_role_type = BizTxnAcctPtyRtype.find_by_internal_identifier('primary') || BizTxnAcctPtyRtype.create(:description => 'Primary Account Holder', :internal_identifier => 'primary')
|
9
|
+
@customer = Individual.create(
|
10
|
+
:current_last_name => 'Doe',
|
11
|
+
:current_first_name => 'John',
|
12
|
+
:mothers_maiden_name => 'William'
|
13
|
+
)
|
14
|
+
|
15
|
+
@billing_account = BillingAccount.new
|
16
|
+
@billing_account = BillingAccount.create()
|
17
|
+
@billing_account.account_number = '123456789B'
|
18
|
+
@billing_account.calculate_balance = false
|
19
|
+
@billing_account.payment_due = 72.20
|
20
|
+
@billing_account.balance = 72.20
|
21
|
+
@billing_account.due_date = '2012-02-15'
|
22
|
+
@billing_account.balance_date = '2012-01-15'
|
23
|
+
@billing_account.billing_date = '2012-01-15'
|
24
|
+
@billing_account.add_party_with_role(@customer.party, @primary_role_type)
|
25
|
+
@billing_account.save
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should get balance from billing account" do
|
29
|
+
@billing_account.balance.should eq 72.20
|
30
|
+
end
|
31
|
+
|
32
|
+
it "should get due_date from financial_txn_acct" do
|
33
|
+
@billing_account.due_date.should eq '2012-02-15'.to_date
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should get billing_date from billing_account" do
|
37
|
+
@billing_account.billing_date.should eq '2012-01-15'.to_date
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should get balance_date from financial_txn_acct.balance_date" do
|
41
|
+
@billing_account.balance_date.should eq '2012-01-15'.to_date
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should get payment_due from financial_txn_acct.payment_due" do
|
45
|
+
@billing_account.payment_due.should eq 72.20
|
46
|
+
end
|
47
|
+
|
48
|
+
it "should allow to get the outstanding_balance" do
|
49
|
+
@billing_account.outstanding_balance.should eq 72.20
|
50
|
+
end
|
51
|
+
|
52
|
+
it "should allow to check for an outstanding balance" do
|
53
|
+
@billing_account.has_outstanding_balance?.should eq true
|
54
|
+
end
|
55
|
+
|
56
|
+
it "should allow you get payment applications by type" do
|
57
|
+
@billing_account.get_payment_applications(:pending).count.should eq 0
|
58
|
+
@billing_account.get_payment_applications(:successful).count.should eq 0
|
59
|
+
end
|
60
|
+
|
61
|
+
it "should allow you set payment_due with currency" do
|
62
|
+
@billing_account.payment_due = 50.25, Currency.usd
|
63
|
+
@billing_account.payment_due.should eq 50.25
|
64
|
+
end
|
65
|
+
|
66
|
+
it "should allow you set balance with currency" do
|
67
|
+
@billing_account.balance = 50.25, Currency.usd
|
68
|
+
@billing_account.balance.should eq 50.25
|
69
|
+
end
|
70
|
+
|
71
|
+
after(:all) do
|
72
|
+
@billing_account.destroy
|
73
|
+
@customer.destroy
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe InvoiceItem do
|
4
|
+
|
5
|
+
before(:all) do
|
6
|
+
@invoice_item = InvoiceItem.create(:amount => 29.99, :quantity => 25, :item_description => '7619851 BICEP II MAGNUM 2X2.5GA')
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should calculate total amount" do
|
10
|
+
@invoice_item.total_amount.should eq 749.75
|
11
|
+
end
|
12
|
+
|
13
|
+
it "should allow to check for payments by status" do
|
14
|
+
@invoice_item.has_payments?(:pending).should eq false
|
15
|
+
@invoice_item.has_payments?(:successful).should eq false
|
16
|
+
end
|
17
|
+
|
18
|
+
after(:all) do
|
19
|
+
@invoice_item.destroy
|
20
|
+
end
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Invoice do
|
4
|
+
|
5
|
+
before(:all) do
|
6
|
+
@payor_role_type = RoleType.find_by_internal_identifier('payor') || RoleType.create(:description => 'Payor', :internal_identifier => 'payor')
|
7
|
+
@customer = Individual.create(
|
8
|
+
:current_last_name => 'Doe',
|
9
|
+
:current_first_name => 'John',
|
10
|
+
:mothers_maiden_name => 'William'
|
11
|
+
)
|
12
|
+
@invoice = Invoice.create(:invoice_number => 'I123456789A',
|
13
|
+
:invoice_date => '2012-01-15',
|
14
|
+
:due_date => '2012-05-15',
|
15
|
+
:description => 'Invoice 2011-12-01 - 2011-12-31')
|
16
|
+
@invoice_item = InvoiceItem.create(:amount => 29.99, :quantity => 25, :item_description => '7619851 BICEP II MAGNUM 2X2.5GA')
|
17
|
+
@invoice.items << @invoice_item
|
18
|
+
@invoice.save
|
19
|
+
end
|
20
|
+
|
21
|
+
it "should allow you add parties by role_Type" do
|
22
|
+
@invoice.add_party_with_role_type(@customer.party, @payor_role_type)
|
23
|
+
parties = @invoice.find_parties_by_role_type(@payor_role_type)
|
24
|
+
parties.count.should eq 1
|
25
|
+
parties.first.id.should eq @customer.party.id
|
26
|
+
end
|
27
|
+
|
28
|
+
it "should allow you to transactions" do
|
29
|
+
transactions = @invoice.transactions
|
30
|
+
transactions.first[:date].should eq @invoice_item.created_at
|
31
|
+
transactions.first[:description].should eq @invoice_item.item_description
|
32
|
+
transactions.first[:quantity].should eq @invoice_item.quantity
|
33
|
+
transactions.first[:amount].should eq @invoice_item.amount
|
34
|
+
end
|
35
|
+
|
36
|
+
it "should allow you get total payment amount" do
|
37
|
+
@invoice.total_payments.should eq 0
|
38
|
+
end
|
39
|
+
|
40
|
+
it "should calculate payment_due from its items" do
|
41
|
+
@invoice.payment_due.should eq 749.75
|
42
|
+
end
|
43
|
+
|
44
|
+
it "should calculate balance from its items and payments" do
|
45
|
+
@invoice.balance.should eq 749.75
|
46
|
+
end
|
47
|
+
|
48
|
+
it "should allow to check for payments by status" do
|
49
|
+
@invoice.has_payments?(:pending).should eq false
|
50
|
+
@invoice.has_payments?(:successful).should eq false
|
51
|
+
end
|
52
|
+
|
53
|
+
after(:all) do
|
54
|
+
@invoice.destroy
|
55
|
+
@customer.destroy
|
56
|
+
end
|
57
|
+
|
58
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe PaymentApplication do
|
4
|
+
|
5
|
+
before(:all) do
|
6
|
+
@payment_application = PaymentApplication.create()
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should have to check to see if it is pending" do
|
10
|
+
@payment_application.is_pending?.should eq false
|
11
|
+
end
|
12
|
+
|
13
|
+
after(:all) do
|
14
|
+
@payment_application.destroy
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
require 'spork'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
Spork.prefork do
|
5
|
+
# Loading more in this block will cause your tests to run faster. However,
|
6
|
+
# if you change any configuration or code from libraries loaded here, you'll
|
7
|
+
# need to restart spork for it take effect.
|
8
|
+
|
9
|
+
ENGINE_RAILS_ROOT=File.join(File.dirname(__FILE__), '../')
|
10
|
+
DUMMY_APP_ROOT=File.join(File.dirname(__FILE__), '/dummy')
|
11
|
+
|
12
|
+
require 'active_support'
|
13
|
+
require 'active_model'
|
14
|
+
require 'active_record'
|
15
|
+
require 'action_controller'
|
16
|
+
|
17
|
+
# Configure Rails Envinronment
|
18
|
+
ENV["RAILS_ENV"] = "spec"
|
19
|
+
require File.expand_path(DUMMY_APP_ROOT + "/config/environment.rb", __FILE__)
|
20
|
+
|
21
|
+
ActiveRecord::Base.configurations = YAML::load(IO.read(DUMMY_APP_ROOT + "/config/database.yml"))
|
22
|
+
ActiveRecord::Base.establish_connection(ENV["DB"] || "spec")
|
23
|
+
ActiveRecord::Migration.verbose = false
|
24
|
+
|
25
|
+
#We have to execute the migrations from dummy app directory
|
26
|
+
Dir.chdir DUMMY_APP_ROOT
|
27
|
+
`rake db:drop`
|
28
|
+
Dir.chdir ENGINE_RAILS_ROOT
|
29
|
+
|
30
|
+
#We have to execute the migrations from dummy app directory
|
31
|
+
Dir.chdir DUMMY_APP_ROOT
|
32
|
+
`rake db:migrate`
|
33
|
+
Dir.chdir ENGINE_RAILS_ROOT
|
34
|
+
|
35
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
36
|
+
# in spec/support/ and its subdirectories.
|
37
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "spec/support/**/*.rb")].each {|f| require f }
|
38
|
+
|
39
|
+
require 'rspec/rails'
|
40
|
+
require 'erp_dev_svcs'
|
41
|
+
|
42
|
+
RSpec.configure do |config|
|
43
|
+
config.use_transactional_fixtures = true
|
44
|
+
config.include Sorcery::TestHelpers::Rails
|
45
|
+
config.include ErpDevSvcs
|
46
|
+
config.include ErpDevSvcs::ControllerSupport, :type => :controller
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
Spork.each_run do
|
51
|
+
ErpDevSvcs::FactorySupport.load_engine_factories
|
52
|
+
|
53
|
+
require 'simplecov'
|
54
|
+
SimpleCov.start 'rails' do
|
55
|
+
add_filter "spec/"
|
56
|
+
end
|
57
|
+
#Need to explictly load the files in lib/ until we figure out how to
|
58
|
+
#get rails to autoload them for spec like it used to...
|
59
|
+
Dir[File.join(ENGINE_RAILS_ROOT, "lib/**/*.rb")].each {|f| load f}
|
60
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: erp_invoicing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,96 +9,107 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
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: &
|
16
|
+
requirement: &77416370 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - =
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 3.0.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *77416370
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: erp_agreements
|
27
|
-
requirement: &
|
27
|
+
requirement: &77415220 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
|
-
- -
|
30
|
+
- - =
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: 3.0.1
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *77415220
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: erp_txns_and_accts
|
38
|
-
requirement: &
|
38
|
+
requirement: &77413100 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - =
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: 3.0.1
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *77413100
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: erp_orders
|
49
|
-
requirement: &
|
49
|
+
requirement: &77412300 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - =
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.0.1
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *77412300
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: erp_products
|
60
|
-
requirement: &
|
60
|
+
requirement: &77411190 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
|
-
- -
|
63
|
+
- - =
|
64
64
|
- !ruby/object:Gem::Version
|
65
|
-
version:
|
65
|
+
version: 3.0.1
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *77411190
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: erp_inventory
|
71
|
-
requirement: &
|
71
|
+
requirement: &77410210 !ruby/object:Gem::Requirement
|
72
72
|
none: false
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - =
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version:
|
76
|
+
version: 3.0.1
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
|
-
version_requirements: *
|
79
|
+
version_requirements: *77410210
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: erp_work_effort
|
82
|
+
requirement: &77435030 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
84
|
+
requirements:
|
85
|
+
- - =
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 3.0.1
|
88
|
+
type: :runtime
|
89
|
+
prerelease: false
|
90
|
+
version_requirements: *77435030
|
80
91
|
- !ruby/object:Gem::Dependency
|
81
92
|
name: erp_commerce
|
82
|
-
requirement: &
|
93
|
+
requirement: &77434180 !ruby/object:Gem::Requirement
|
83
94
|
none: false
|
84
95
|
requirements:
|
85
|
-
- -
|
96
|
+
- - =
|
86
97
|
- !ruby/object:Gem::Version
|
87
|
-
version:
|
98
|
+
version: 3.0.1
|
88
99
|
type: :runtime
|
89
100
|
prerelease: false
|
90
|
-
version_requirements: *
|
101
|
+
version_requirements: *77434180
|
91
102
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
93
|
-
requirement: &
|
103
|
+
name: erp_dev_svcs
|
104
|
+
requirement: &77433470 !ruby/object:Gem::Requirement
|
94
105
|
none: false
|
95
106
|
requirements:
|
96
|
-
- -
|
107
|
+
- - =
|
97
108
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
109
|
+
version: 3.0.1
|
99
110
|
type: :development
|
100
111
|
prerelease: false
|
101
|
-
version_requirements: *
|
112
|
+
version_requirements: *77433470
|
102
113
|
description: ErpInvoicing adds models and services to the CompassAE core to handle
|
103
114
|
invoicing and billing functions. It includes extensions to the core ERP classes
|
104
115
|
for accounts and things that are 'billable' (products, work efforts), and additional
|
@@ -111,47 +122,55 @@ executables: []
|
|
111
122
|
extensions: []
|
112
123
|
extra_rdoc_files: []
|
113
124
|
files:
|
114
|
-
- public/javascripts/erp_app/
|
115
|
-
- public/javascripts/erp_app/
|
116
|
-
- public/javascripts/erp_app/
|
125
|
+
- public/javascripts/erp_app/desktop/applications/invoice_management/invoices_panel.js
|
126
|
+
- public/javascripts/erp_app/desktop/applications/invoice_management/module.js
|
127
|
+
- public/javascripts/erp_app/desktop/applications/invoice_management/billing_accounts_panel.js
|
117
128
|
- public/javascripts/erp_app/organizer/applications/bill_pay/make_payment_window.js
|
118
|
-
- public/javascripts/erp_app/organizer/applications/bill_pay/
|
129
|
+
- public/javascripts/erp_app/organizer/applications/bill_pay/extensions.js
|
119
130
|
- public/javascripts/erp_app/organizer/applications/bill_pay/transactions_grid_panel.js
|
120
|
-
-
|
131
|
+
- public/javascripts/erp_app/organizer/applications/bill_pay/base.js
|
132
|
+
- public/javascripts/erp_app/organizer/applications/bill_pay/payment_accounts_grid_panel.js
|
133
|
+
- public/javascripts/erp_app/shared/invoice_items_grid_panel.js
|
134
|
+
- public/javascripts/erp_app/shared/payments_grid_panel.js
|
135
|
+
- public/javascripts/erp_app/shared/invoices_grid_panel.js
|
136
|
+
- public/javascripts/erp_app/shared/billing_accounts_grid_panel.js
|
137
|
+
- public/javascripts/erp_app/shared/add_invoice_window.js
|
121
138
|
- app/assets/stylesheets/erp_invoicing/application.css
|
122
|
-
- app/
|
123
|
-
- app/
|
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
|
139
|
+
- app/assets/javascripts/erp_invoicing/application.js
|
140
|
+
- app/views/layouts/erp_invoicing/application.html.erb
|
130
141
|
- app/models/invoice_item.rb
|
131
142
|
- app/models/invoice_item_type.rb
|
143
|
+
- app/models/invoice_payment_term.rb
|
144
|
+
- app/models/invoice_payment_strategy_type.rb
|
145
|
+
- app/models/billing_account.rb
|
132
146
|
- app/models/invoice_party_role.rb
|
147
|
+
- app/models/invoice.rb
|
148
|
+
- app/models/invoice_payment_term_set.rb
|
133
149
|
- app/models/invoice_type.rb
|
150
|
+
- app/models/recurring_payment.rb
|
151
|
+
- app/models/invoice_payment_term_type.rb
|
134
152
|
- app/models/payment_application.rb
|
135
|
-
- app/
|
136
|
-
- app/
|
137
|
-
- app/
|
138
|
-
- app/
|
139
|
-
- app/
|
140
|
-
- app/
|
141
|
-
- app/
|
142
|
-
- app/
|
143
|
-
- app/
|
144
|
-
- app/
|
145
|
-
- app/
|
146
|
-
- app/
|
147
|
-
- app/
|
148
|
-
- app/
|
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
|
153
|
+
- app/models/extensions/document.rb
|
154
|
+
- app/models/extensions/product_type.rb
|
155
|
+
- app/models/extensions/financial_txn_account.rb
|
156
|
+
- app/models/extensions/party.rb
|
157
|
+
- app/models/extensions/product_instance.rb
|
158
|
+
- app/models/extensions/work_effort.rb
|
159
|
+
- app/models/extensions/financial_txn.rb
|
160
|
+
- app/helpers/erp_invoicing/application_helper.rb
|
161
|
+
- app/controllers/erp_invoicing/erp_app/organizer/bill_pay/base_controller.rb
|
162
|
+
- app/controllers/erp_invoicing/erp_app/organizer/bill_pay/accounts_controller.rb
|
163
|
+
- app/controllers/erp_invoicing/erp_app/shared/invoices_controller.rb
|
164
|
+
- app/controllers/erp_invoicing/erp_app/shared/billing_accounts_controller.rb
|
165
|
+
- app/controllers/erp_invoicing/erp_app/shared/files_controller.rb
|
166
|
+
- app/controllers/erp_invoicing/sms_controller.rb
|
152
167
|
- config/routes.rb
|
153
|
-
- db/
|
168
|
+
- db/migrate/20120228184317_add_text_to_pay_to_recurring_payments.rb
|
169
|
+
- db/migrate/20120301155722_add_billing_date_to_billing_account.rb
|
154
170
|
- db/migrate/20111121000000_invoicing_services.rb
|
171
|
+
- db/data_migrations/20120229174322_add_billpay_widget.rb
|
172
|
+
- db/data_migrations/20120118181839_create_invoice_management_desktop_application.rb
|
173
|
+
- db/data_migrations/20111121153349_create_bill_pay_organizer_application.rb
|
155
174
|
- lib/erp_invoicing/engine.rb
|
156
175
|
- lib/erp_invoicing/version.rb
|
157
176
|
- lib/erp_invoicing.rb
|
@@ -159,6 +178,37 @@ files:
|
|
159
178
|
- GPL-3-LICENSE
|
160
179
|
- Rakefile
|
161
180
|
- README.rdoc
|
181
|
+
- spec/factories/basic.rb
|
182
|
+
- spec/spec_helper.rb
|
183
|
+
- spec/models/billing_account_spec.rb
|
184
|
+
- spec/models/payment_application_spec.rb
|
185
|
+
- spec/models/invoice_spec.rb
|
186
|
+
- spec/models/invoice_item_spec.rb
|
187
|
+
- spec/dummy/public/422.html
|
188
|
+
- spec/dummy/public/404.html
|
189
|
+
- spec/dummy/public/500.html
|
190
|
+
- spec/dummy/public/favicon.ico
|
191
|
+
- spec/dummy/config.ru
|
192
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
193
|
+
- spec/dummy/app/assets/javascripts/application.js
|
194
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
195
|
+
- spec/dummy/app/helpers/application_helper.rb
|
196
|
+
- spec/dummy/app/controllers/application_controller.rb
|
197
|
+
- spec/dummy/config/routes.rb
|
198
|
+
- spec/dummy/config/locales/en.yml
|
199
|
+
- spec/dummy/config/boot.rb
|
200
|
+
- spec/dummy/config/application.rb
|
201
|
+
- spec/dummy/config/environments/spec.rb
|
202
|
+
- spec/dummy/config/initializers/mime_types.rb
|
203
|
+
- spec/dummy/config/initializers/session_store.rb
|
204
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
205
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
206
|
+
- spec/dummy/config/initializers/inflections.rb
|
207
|
+
- spec/dummy/config/initializers/secret_token.rb
|
208
|
+
- spec/dummy/config/environment.rb
|
209
|
+
- spec/dummy/config/database.yml
|
210
|
+
- spec/dummy/Rakefile
|
211
|
+
- spec/dummy/script/rails
|
162
212
|
homepage: http://development.compassagile.com
|
163
213
|
licenses: []
|
164
214
|
post_install_message:
|
@@ -184,4 +234,35 @@ signing_key:
|
|
184
234
|
specification_version: 3
|
185
235
|
summary: ErpInvoicing adds models and services to the CompassAE core to handle invoicing
|
186
236
|
and billing functions.
|
187
|
-
test_files:
|
237
|
+
test_files:
|
238
|
+
- spec/factories/basic.rb
|
239
|
+
- spec/spec_helper.rb
|
240
|
+
- spec/models/billing_account_spec.rb
|
241
|
+
- spec/models/payment_application_spec.rb
|
242
|
+
- spec/models/invoice_spec.rb
|
243
|
+
- spec/models/invoice_item_spec.rb
|
244
|
+
- spec/dummy/public/422.html
|
245
|
+
- spec/dummy/public/404.html
|
246
|
+
- spec/dummy/public/500.html
|
247
|
+
- spec/dummy/public/favicon.ico
|
248
|
+
- spec/dummy/config.ru
|
249
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
250
|
+
- spec/dummy/app/assets/javascripts/application.js
|
251
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
252
|
+
- spec/dummy/app/helpers/application_helper.rb
|
253
|
+
- spec/dummy/app/controllers/application_controller.rb
|
254
|
+
- spec/dummy/config/routes.rb
|
255
|
+
- spec/dummy/config/locales/en.yml
|
256
|
+
- spec/dummy/config/boot.rb
|
257
|
+
- spec/dummy/config/application.rb
|
258
|
+
- spec/dummy/config/environments/spec.rb
|
259
|
+
- spec/dummy/config/initializers/mime_types.rb
|
260
|
+
- spec/dummy/config/initializers/session_store.rb
|
261
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
262
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
263
|
+
- spec/dummy/config/initializers/inflections.rb
|
264
|
+
- spec/dummy/config/initializers/secret_token.rb
|
265
|
+
- spec/dummy/config/environment.rb
|
266
|
+
- spec/dummy/config/database.yml
|
267
|
+
- spec/dummy/Rakefile
|
268
|
+
- spec/dummy/script/rails
|