dorsale 3.6.1 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -0
  3. data/app/controllers/concerns/dorsale/flyboy/tasks_summary_concern.rb +1 -2
  4. data/app/controllers/dorsale/customer_vault/activity_types_controller.rb +76 -0
  5. data/app/controllers/dorsale/customer_vault/origins_controller.rb +76 -0
  6. data/app/controllers/dorsale/customer_vault/people_controller.rb +2 -0
  7. data/app/controllers/dorsale/flyboy/task_comments_controller.rb +1 -1
  8. data/app/controllers/dorsale/flyboy/tasks_controller.rb +1 -1
  9. data/app/models/dorsale/alexandrie/attachment.rb +1 -1
  10. data/app/models/dorsale/comment.rb +1 -1
  11. data/app/models/dorsale/customer_vault/activity_type.rb +9 -0
  12. data/app/models/dorsale/customer_vault/individual.rb +7 -0
  13. data/app/models/dorsale/customer_vault/origin.rb +9 -0
  14. data/app/models/dorsale/customer_vault/person.rb +3 -0
  15. data/app/models/dorsale/flyboy/task.rb +1 -1
  16. data/app/models/dorsale/flyboy/task_comment.rb +1 -1
  17. data/app/policies/dorsale/customer_vault/activity_type_policy_helper.rb +7 -0
  18. data/app/policies/dorsale/customer_vault/origin_policy_helper.rb +7 -0
  19. data/app/policies/dorsale/flyboy/task_policy_helper.rb +1 -0
  20. data/app/policies/dorsale/policy_checker.rb +2 -0
  21. data/app/views/dorsale/customer_vault/activity_types/_form.html.slim +13 -0
  22. data/app/views/dorsale/customer_vault/activity_types/_index_actions.html.slim +2 -0
  23. data/app/views/dorsale/customer_vault/activity_types/_list.html.slim +17 -0
  24. data/app/views/dorsale/customer_vault/activity_types/edit.html.slim +1 -0
  25. data/app/views/dorsale/customer_vault/activity_types/index.html.slim +11 -0
  26. data/app/views/dorsale/customer_vault/activity_types/new.html.slim +1 -0
  27. data/app/views/dorsale/customer_vault/origins/_form.html.slim +13 -0
  28. data/app/views/dorsale/customer_vault/origins/_index_actions.html.slim +2 -0
  29. data/app/views/dorsale/customer_vault/origins/_list.html.slim +17 -0
  30. data/app/views/dorsale/customer_vault/origins/edit.html.slim +1 -0
  31. data/app/views/dorsale/customer_vault/origins/index.html.slim +11 -0
  32. data/app/views/dorsale/customer_vault/origins/new.html.slim +1 -0
  33. data/app/views/dorsale/customer_vault/people/_context_general.html.slim +2 -0
  34. data/app/views/dorsale/customer_vault/people/_form.html.slim +3 -0
  35. data/app/views/dorsale/flyboy/task_comments/_list.html.slim +10 -6
  36. data/app/views/dorsale/flyboy/tasks/_form.html.slim +1 -1
  37. data/config/locales/customer_vault.en.yml +26 -0
  38. data/config/locales/customer_vault.fr.yml +25 -0
  39. data/config/locales/dorsale.en.yml +2 -0
  40. data/config/locales/dorsale.fr.yml +2 -0
  41. data/config/locales/flyboy.en.yml +0 -1
  42. data/config/locales/flyboy.fr.yml +0 -1
  43. data/config/routes.rb +4 -0
  44. data/db/migrate/20170427082626_create_dorsale_customer_vault_origins.rb +8 -0
  45. data/db/migrate/20170427082920_create_dorsale_customer_vault_activity_types.rb +8 -0
  46. data/db/migrate/20170427083541_remove_useless_polymorphic_belongs_to.rb +9 -0
  47. data/db/migrate/20170427093507_add_origin_and_activity_type_to_customer_vault_people.rb +6 -0
  48. data/features/customer_vault_activity_types.feature +19 -0
  49. data/features/customer_vault_origins.feature +19 -0
  50. data/features/step_definitions/customer_vault_activity_types_steps.rb +42 -0
  51. data/features/step_definitions/customer_vault_origins_steps.rb +42 -0
  52. data/lib/dorsale/version.rb +1 -1
  53. data/spec/controllers/dorsale/flyboy/tasks_controller_spec.rb +4 -4
  54. data/spec/factories/customer_vault_activity_types.rb +5 -0
  55. data/spec/factories/customer_vault_corporations.rb +8 -6
  56. data/spec/factories/customer_vault_individuals.rb +1 -0
  57. data/spec/factories/customer_vault_origins.rb +5 -0
  58. data/spec/models/dorsale/customer_vault/activity_type_spec.rb +8 -0
  59. data/spec/models/dorsale/customer_vault/corporation_spec.rb +3 -0
  60. data/spec/models/dorsale/customer_vault/individual_spec.rb +24 -0
  61. data/spec/models/dorsale/customer_vault/origin_spec.rb +8 -0
  62. data/spec/routing/dorsale/customer_vault/activity_types_routing_spec.rb +40 -0
  63. data/spec/routing/dorsale/customer_vault/origins_routing_spec.rb +40 -0
  64. metadata +44 -2
@@ -46,7 +46,6 @@ en:
46
46
  taskable_type: "Origin type"
47
47
  owner: "Owner"
48
48
  owner_id: "Owner"
49
- owner_guid: "Owner"
50
49
  created_at: "Created at"
51
50
  name: "Name"
52
51
  reminder: "Reminder"
@@ -46,7 +46,6 @@ fr:
46
46
  taskable_type: "Type origine"
47
47
  owner: "Propriétaire"
48
48
  owner_id: "Propriétaire"
49
- owner_guid: "Propriétaire"
50
49
  created_at: "Créée le"
51
50
  name: "Titre"
52
51
  reminder: "Rappel"
data/config/routes.rb CHANGED
@@ -53,6 +53,10 @@ Dorsale::Engine.routes.draw do
53
53
  get "customer_vault/individuals" => "customer_vault/people#individuals"
54
54
 
55
55
  namespace :customer_vault do
56
+
57
+ resources :activity_types, except: [:destroy, :show]
58
+ resources :origins, except: [:destroy, :show]
59
+
56
60
  namespace :people do
57
61
  get :activity
58
62
  end
@@ -0,0 +1,8 @@
1
+ class CreateDorsaleCustomerVaultOrigins < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :dorsale_customer_vault_origins do |t|
4
+ t.string :name
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ class CreateDorsaleCustomerVaultActivityTypes < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :dorsale_customer_vault_activity_types do |t|
4
+ t.string :name
5
+ t.timestamps
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,9 @@
1
+ class RemoveUselessPolymorphicBelongsTo < ActiveRecord::Migration[5.0]
2
+ def change
3
+ raise "Hi ! Do you really want to delete these columns ?"
4
+ remove_column :dorsale_comments, :author_type
5
+ remove_column :dorsale_alexandrie_attachments, :sender_type
6
+ remove_column :dorsale_flyboy_tasks, :owner_type
7
+ remove_column :dorsale_flyboy_task_comments, :author_type
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ class AddOriginAndActivityTypeToCustomerVaultPeople < ActiveRecord::Migration[5.0]
2
+ def change
3
+ add_column :dorsale_customer_vault_people, :activity_type_id, :integer
4
+ add_column :dorsale_customer_vault_people, :origin_id, :integer
5
+ end
6
+ end
@@ -0,0 +1,19 @@
1
+ @javascript
2
+ Feature: People Activity types
3
+
4
+ Scenario: New activity type
5
+ Given an authenticated user
6
+ And the user goes on the new activity type page
7
+ When he fills the activity type's information
8
+ And creates a new activity type
9
+ Then he is redirected on the activity types page
10
+ And the activity type is added to the activity types list
11
+
12
+ Scenario: Update activity type
13
+ Given an authenticated user
14
+ And an existing activity type
15
+ When I edit the activity type
16
+ Then the current activity type's name should be pre-filled
17
+ When he validates the new activity type
18
+ Then he is redirected on the activity types page
19
+ And the activity type's label is updated
@@ -0,0 +1,19 @@
1
+ @javascript
2
+ Feature: People Origins
3
+
4
+ Scenario: New origin
5
+ Given an authenticated user
6
+ And the user goes on the new origin page
7
+ When he fills the origin's information
8
+ And creates a new origin
9
+ Then he is redirected on the origins page
10
+ And the origin is added to the origin list
11
+
12
+ Scenario: Update origin
13
+ Given an authenticated user
14
+ And an existing origin
15
+ When I edit the origin
16
+ Then the current origin's name should be pre-filled
17
+ When he validates the new origin
18
+ Then he is redirected on the origins page
19
+ And the origin's label is updated
@@ -0,0 +1,42 @@
1
+ Given(/^the user goes on the new activity type page$/) do
2
+ visit dorsale.customer_vault_activity_types_path
3
+ find(".link_create").click
4
+ end
5
+
6
+ When(/^he fills the activity type's information$/) do
7
+ fill_in 'activity_type_name', with: "Activity Name"
8
+ end
9
+
10
+ When(/^creates a new activity type$/) do
11
+ find("[type=submit]").click
12
+ end
13
+
14
+ Then(/^he is redirected on the activity types page$/) do
15
+ expect(current_path).to eq dorsale.customer_vault_activity_types_path
16
+ end
17
+
18
+ Then(/^the activity type is added to the activity types list$/) do
19
+ expect(page).to have_content "Activity Name"
20
+ end
21
+
22
+ Given(/^an existing activity type$/) do
23
+ @activity_type = create(:customer_vault_activity_type)
24
+ end
25
+
26
+ When(/^I edit the activity type$/) do
27
+ visit dorsale.customer_vault_activity_types_path
28
+ find(".link_update").click
29
+ end
30
+
31
+ Then(/^the current activity type's name should be pre\-filled$/) do
32
+ expect(page).to have_field("activity_type_name", with: @activity_type.name)
33
+ end
34
+
35
+ When(/^he validates the new activity type$/) do
36
+ fill_in "activity_type_name", with: "New Activity Name"
37
+ find("[type=submit]").click
38
+ end
39
+
40
+ Then(/^the activity type's label is updated$/) do
41
+ expect(page).to have_content "New Activity Name"
42
+ end
@@ -0,0 +1,42 @@
1
+ Given(/^the user goes on the new origin page$/) do
2
+ visit dorsale.customer_vault_origins_path
3
+ find(".link_create").click
4
+ end
5
+
6
+ When(/^he fills the origin's information$/) do
7
+ fill_in 'origin_name', with: "Origin Name"
8
+ end
9
+
10
+ When(/^creates a new origin$/) do
11
+ find("[type=submit]").click
12
+ end
13
+
14
+ Then(/^he is redirected on the origins page$/) do
15
+ expect(current_path).to eq dorsale.customer_vault_origins_path
16
+ end
17
+
18
+ Then(/^the origin is added to the origin list$/) do
19
+ expect(page).to have_content "Origin Name"
20
+ end
21
+
22
+ Given(/^an existing origin$/) do
23
+ @origin = create(:customer_vault_origin)
24
+ end
25
+
26
+ When(/^I edit the origin$/) do
27
+ visit dorsale.customer_vault_origins_path
28
+ find(".link_update").click
29
+ end
30
+
31
+ Then(/^the current origin's name should be pre\-filled$/) do
32
+ expect(page).to have_field("origin_name", with: @origin.name)
33
+ end
34
+
35
+ When(/^he validates the new origin$/) do
36
+ fill_in "origin_name", with: "New Origin Name"
37
+ find("[type=submit]").click
38
+ end
39
+
40
+ Then(/^the origin's label is updated$/) do
41
+ expect(page).to have_content "New Origin Name"
42
+ end
@@ -1,3 +1,3 @@
1
1
  module Dorsale
2
- VERSION = "3.6.1"
2
+ VERSION = "3.7.0"
3
3
  end
@@ -161,7 +161,7 @@ describe Dorsale::Flyboy::TasksController, type: :controller do
161
161
  it "should send a mail to the owner" do
162
162
  owner = create(:user)
163
163
  ActionMailer::Base.deliveries.clear
164
- post :create, params: {:task => valid_attributes.merge(owner_guid: owner.guid)}
164
+ post :create, params: {:task => valid_attributes.merge(owner_id: owner.id)}
165
165
  expect(ActionMailer::Base.deliveries.count).to eq 1
166
166
  email = ActionMailer::Base.deliveries.last
167
167
  expect(email.to).to include owner.email
@@ -254,7 +254,7 @@ describe Dorsale::Flyboy::TasksController, type: :controller do
254
254
 
255
255
  it "should not assign tasks when owner is an other person" do
256
256
  other_user = create(:user)
257
- Dorsale::Flyboy::Task.update_all(owner_id: other_user.id, owner_type: other_user.class)
257
+ Dorsale::Flyboy::Task.update_all(owner_id: other_user.id)
258
258
 
259
259
  Timecop.freeze "2016-03-09 15:00:00"
260
260
  controller.setup_tasks_summary
@@ -267,7 +267,7 @@ describe Dorsale::Flyboy::TasksController, type: :controller do
267
267
  end
268
268
 
269
269
  it "should assign tasks when owner is nil" do
270
- Dorsale::Flyboy::Task.update_all(owner_id: nil, owner_type: nil)
270
+ Dorsale::Flyboy::Task.update_all(owner_id: nil)
271
271
 
272
272
  Timecop.freeze "2016-03-09 15:00:00"
273
273
  controller.setup_tasks_summary
@@ -280,7 +280,7 @@ describe Dorsale::Flyboy::TasksController, type: :controller do
280
280
  end
281
281
 
282
282
  it "should assign tasks when owner is me" do
283
- Dorsale::Flyboy::Task.update_all(owner_id: summary_user.id, owner_type: summary_user.class)
283
+ Dorsale::Flyboy::Task.update_all(owner_id: summary_user.id)
284
284
 
285
285
  Timecop.freeze "2016-03-09 15:00:00"
286
286
  controller.setup_tasks_summary
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :customer_vault_activity_type, class: ::Dorsale::CustomerVault::ActivityType do
3
+ name { Faker::Lorem.word }
4
+ end
5
+ end
@@ -1,11 +1,13 @@
1
1
  FactoryGirl.define do
2
2
  factory :customer_vault_corporation, class: ::Dorsale::CustomerVault::Corporation do
3
- name { "#{Faker::Company.name} #{Faker::Company.suffix}" }
4
- short_name { "SN" }
5
- email { Faker::Internet.email }
6
- phone { "06 xx xx xx xx" }
7
- fax { "09 xx xx xx xx" }
8
- www { Faker::Internet.url }
3
+ activity_type { create(:customer_vault_activity_type) }
4
+ origin { create(:customer_vault_origin) }
5
+ name { "#{Faker::Company.name} #{Faker::Company.suffix}" }
6
+ short_name { "SN" }
7
+ email { Faker::Internet.email }
8
+ phone { "06 xx xx xx xx" }
9
+ fax { "09 xx xx xx xx" }
10
+ www { Faker::Internet.url }
9
11
 
10
12
  after(:create) do |corporation|
11
13
  create(:dorsale_address, addressable: corporation)
@@ -1,5 +1,6 @@
1
1
  FactoryGirl.define do
2
2
  factory :customer_vault_individual, class: ::Dorsale::CustomerVault::Individual do
3
+ origin { create(:customer_vault_origin) }
3
4
  first_name { Faker::Name.first_name }
4
5
  last_name { Faker::Name.last_name }
5
6
  short_name { "SN" }
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :customer_vault_origin, class: ::Dorsale::CustomerVault::Origin do
3
+ name { Faker::Lorem.word }
4
+ end
5
+ end
@@ -0,0 +1,8 @@
1
+ RSpec.describe ::Dorsale::CustomerVault::ActivityType, type: :model do
2
+ it { is_expected.to validate_presence_of :name }
3
+
4
+ it "should have a valid factory" do
5
+ activity_type = create(:customer_vault_activity_type)
6
+ expect(activity_type).to be_valid
7
+ end
8
+ end
@@ -18,6 +18,9 @@ RSpec.describe ::Dorsale::CustomerVault::Corporation, type: :model do
18
18
  it { is_expected.to respond_to :number_of_employees }
19
19
  it { is_expected.to respond_to :societe_com }
20
20
 
21
+ it { is_expected.to belong_to :activity_type }
22
+ it { is_expected.to belong_to :origin }
23
+
21
24
  it { is_expected.to have_many(:comments).dependent(:destroy) }
22
25
 
23
26
  it { is_expected.to validate_presence_of :corporation_name }
@@ -17,5 +17,29 @@ RSpec.describe ::Dorsale::CustomerVault::Individual, :type => :model do
17
17
  it { is_expected.to validate_presence_of :first_name }
18
18
  it { is_expected.to validate_presence_of :last_name }
19
19
 
20
+ it { is_expected.to belong_to :activity_type }
21
+ it { is_expected.to belong_to :origin }
22
+
20
23
  it { is_expected.to respond_to :context }
24
+
25
+ describe "activity type" do
26
+ it "should have the same activity than his corporation" do
27
+ corporation = create(:customer_vault_corporation)
28
+ individual = create(:customer_vault_individual, corporation: corporation)
29
+ expect(individual.activity_type).to eq corporation.activity_type
30
+ end
31
+
32
+ it "should have no activity if no corporation" do
33
+ individual = create(:customer_vault_individual, corporation: nil)
34
+ expect(individual.activity_type).to eq nil
35
+ end
36
+
37
+ it "should have no activity if his corporation has no activity" do
38
+ corporation = create(:customer_vault_corporation, activity_type: nil)
39
+ individual = create(:customer_vault_individual, corporation: corporation)
40
+ expect(individual.activity_type).to eq nil
41
+ end
42
+ end
43
+
44
+
21
45
  end
@@ -0,0 +1,8 @@
1
+ RSpec.describe ::Dorsale::CustomerVault::Origin, type: :model do
2
+ it { is_expected.to validate_presence_of :name }
3
+
4
+ it "should have a valid factory" do
5
+ origin = create(:customer_vault_origin)
6
+ expect(origin).to be_valid
7
+ end
8
+ end
@@ -0,0 +1,40 @@
1
+ require "rails_helper"
2
+
3
+ describe ::Dorsale::CustomerVault::ActivityTypesController do
4
+ routes { ::Dorsale::Engine.routes }
5
+
6
+ describe "routing" do
7
+ it "#index" do
8
+ expect(get "/customer_vault/activity_types").to \
9
+ route_to("dorsale/customer_vault/activity_types#index")
10
+ end
11
+
12
+ it "#new" do
13
+ expect(get "/customer_vault/activity_types/new").to \
14
+ route_to("dorsale/customer_vault/activity_types#new")
15
+ end
16
+
17
+ it "#create" do
18
+ expect(post "/customer_vault/activity_types").to \
19
+ route_to("dorsale/customer_vault/activity_types#create")
20
+ end
21
+
22
+ it "#show" do
23
+ expect(get "/customer_vault/activity_types/3").to_not be_routable
24
+ end
25
+
26
+ it "#edit" do
27
+ expect(get "/customer_vault/activity_types/3/edit").to \
28
+ route_to("dorsale/customer_vault/activity_types#edit", id: "3")
29
+ end
30
+
31
+ it "#update" do
32
+ expect(patch "/customer_vault/activity_types/3").to \
33
+ route_to("dorsale/customer_vault/activity_types#update", id: "3")
34
+ end
35
+
36
+ it "#destroy" do
37
+ expect(delete "/customer_vault/activity_types/3").to_not be_routable
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,40 @@
1
+ require "rails_helper"
2
+
3
+ describe ::Dorsale::CustomerVault::OriginsController do
4
+ routes { ::Dorsale::Engine.routes }
5
+
6
+ describe "routing" do
7
+ it "#index" do
8
+ expect(get "/customer_vault/origins").to \
9
+ route_to("dorsale/customer_vault/origins#index")
10
+ end
11
+
12
+ it "#new" do
13
+ expect(get "/customer_vault/origins/new").to \
14
+ route_to("dorsale/customer_vault/origins#new")
15
+ end
16
+
17
+ it "#create" do
18
+ expect(post "/customer_vault/origins").to \
19
+ route_to("dorsale/customer_vault/origins#create")
20
+ end
21
+
22
+ it "#show" do
23
+ expect(get "/customer_vault/origins/3").to_not be_routable
24
+ end
25
+
26
+ it "#edit" do
27
+ expect(get "/customer_vault/origins/3/edit").to \
28
+ route_to("dorsale/customer_vault/origins#edit", id: "3")
29
+ end
30
+
31
+ it "#update" do
32
+ expect(patch "/customer_vault/origins/3").to \
33
+ route_to("dorsale/customer_vault/origins#update", id: "3")
34
+ end
35
+
36
+ it "#destroy" do
37
+ expect(delete "/customer_vault/origins/3").to_not be_routable
38
+ end
39
+ end
40
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorsale
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-18 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -535,8 +535,10 @@ files:
535
535
  - app/controllers/dorsale/billing_machine/payment_terms_controller.rb
536
536
  - app/controllers/dorsale/billing_machine/quotations_controller.rb
537
537
  - app/controllers/dorsale/comments_controller.rb
538
+ - app/controllers/dorsale/customer_vault/activity_types_controller.rb
538
539
  - app/controllers/dorsale/customer_vault/application_controller.rb
539
540
  - app/controllers/dorsale/customer_vault/links_controller.rb
541
+ - app/controllers/dorsale/customer_vault/origins_controller.rb
540
542
  - app/controllers/dorsale/customer_vault/people_controller.rb
541
543
  - app/controllers/dorsale/expense_gun/application_controller.rb
542
544
  - app/controllers/dorsale/expense_gun/categories_controller.rb
@@ -582,12 +584,14 @@ files:
582
584
  - app/models/dorsale/billing_machine/quotation_line.rb
583
585
  - app/models/dorsale/comment.rb
584
586
  - app/models/dorsale/customer_vault.rb
587
+ - app/models/dorsale/customer_vault/activity_type.rb
585
588
  - app/models/dorsale/customer_vault/corporation.rb
586
589
  - app/models/dorsale/customer_vault/corporation_data.rb
587
590
  - app/models/dorsale/customer_vault/event.rb
588
591
  - app/models/dorsale/customer_vault/individual.rb
589
592
  - app/models/dorsale/customer_vault/individual_data.rb
590
593
  - app/models/dorsale/customer_vault/link.rb
594
+ - app/models/dorsale/customer_vault/origin.rb
591
595
  - app/models/dorsale/customer_vault/person.rb
592
596
  - app/models/dorsale/customer_vault/person_data.rb
593
597
  - app/models/dorsale/expense_gun.rb
@@ -614,8 +618,10 @@ files:
614
618
  - app/policies/dorsale/billing_machine/payment_term_policy_helper.rb
615
619
  - app/policies/dorsale/billing_machine/quotation_policy_helper.rb
616
620
  - app/policies/dorsale/comment_policy_helper.rb
621
+ - app/policies/dorsale/customer_vault/activity_type_policy_helper.rb
617
622
  - app/policies/dorsale/customer_vault/event_policy_helper.rb
618
623
  - app/policies/dorsale/customer_vault/link_policy_helper.rb
624
+ - app/policies/dorsale/customer_vault/origin_policy_helper.rb
619
625
  - app/policies/dorsale/customer_vault/person_policy_helper.rb
620
626
  - app/policies/dorsale/expense_gun/category_policy_helper.rb
621
627
  - app/policies/dorsale/expense_gun/expense_policy_helper.rb
@@ -698,6 +704,12 @@ files:
698
704
  - app/views/dorsale/comments/_form.html.slim
699
705
  - app/views/dorsale/comments/_list.html.slim
700
706
  - app/views/dorsale/comments/edit.html.slim
707
+ - app/views/dorsale/customer_vault/activity_types/_form.html.slim
708
+ - app/views/dorsale/customer_vault/activity_types/_index_actions.html.slim
709
+ - app/views/dorsale/customer_vault/activity_types/_list.html.slim
710
+ - app/views/dorsale/customer_vault/activity_types/edit.html.slim
711
+ - app/views/dorsale/customer_vault/activity_types/index.html.slim
712
+ - app/views/dorsale/customer_vault/activity_types/new.html.slim
701
713
  - app/views/dorsale/customer_vault/corporations/_context.html.slim
702
714
  - app/views/dorsale/customer_vault/events/_event.html.slim
703
715
  - app/views/dorsale/customer_vault/events/_list.html.slim
@@ -705,6 +717,12 @@ files:
705
717
  - app/views/dorsale/customer_vault/links/edit.html.slim
706
718
  - app/views/dorsale/customer_vault/links/index.html.slim
707
719
  - app/views/dorsale/customer_vault/links/new.html.slim
720
+ - app/views/dorsale/customer_vault/origins/_form.html.slim
721
+ - app/views/dorsale/customer_vault/origins/_index_actions.html.slim
722
+ - app/views/dorsale/customer_vault/origins/_list.html.slim
723
+ - app/views/dorsale/customer_vault/origins/edit.html.slim
724
+ - app/views/dorsale/customer_vault/origins/index.html.slim
725
+ - app/views/dorsale/customer_vault/origins/new.html.slim
708
726
  - app/views/dorsale/customer_vault/people/_context.html.slim
709
727
  - app/views/dorsale/customer_vault/people/_context_address.html.slim
710
728
  - app/views/dorsale/customer_vault/people/_context_general.html.slim
@@ -824,17 +842,23 @@ files:
824
842
  - db/migrate/20170406122047_add_attribute_to_dorsale_customer_vault_people.rb
825
843
  - db/migrate/20170413082819_dorsale_flyboy_tasks_new_reminder.rb
826
844
  - db/migrate/20170418070730_create_dorsale_customer_vault_events.rb
845
+ - db/migrate/20170427082626_create_dorsale_customer_vault_origins.rb
846
+ - db/migrate/20170427082920_create_dorsale_customer_vault_activity_types.rb
847
+ - db/migrate/20170427083541_remove_useless_polymorphic_belongs_to.rb
848
+ - db/migrate/20170427093507_add_origin_and_activity_type_to_customer_vault_people.rb
827
849
  - features/access.feature
828
850
  - features/billing_machine_id_cards.feature
829
851
  - features/billing_machine_invoices.feature
830
852
  - features/billing_machine_multiple_vat.feature
831
853
  - features/billing_machine_payment_terms.feature
832
854
  - features/billing_machine_quotations.feature
855
+ - features/customer_vault_activity_types.feature
833
856
  - features/customer_vault_corporations.feature
834
857
  - features/customer_vault_filters.feature
835
858
  - features/customer_vault_individuals.feature
836
859
  - features/customer_vault_invoices.feature
837
860
  - features/customer_vault_links.feature
861
+ - features/customer_vault_origins.feature
838
862
  - features/customer_vault_people.feature
839
863
  - features/customer_vault_search.feature
840
864
  - features/customer_vault_tasks.feature
@@ -851,11 +875,13 @@ files:
851
875
  - features/step_definitions/billing_machine_payment_terms_steps.rb
852
876
  - features/step_definitions/billing_machine_quotations_steps.rb
853
877
  - features/step_definitions/common_steps.rb
878
+ - features/step_definitions/customer_vault_activity_types_steps.rb
854
879
  - features/step_definitions/customer_vault_corporations_steps.rb
855
880
  - features/step_definitions/customer_vault_filters_steps.rb
856
881
  - features/step_definitions/customer_vault_individuals_steps.rb
857
882
  - features/step_definitions/customer_vault_invoices_steps.rb
858
883
  - features/step_definitions/customer_vault_links_steps.rb
884
+ - features/step_definitions/customer_vault_origins_steps.rb
859
885
  - features/step_definitions/customer_vault_people_steps.rb
860
886
  - features/step_definitions/customer_vault_search_steps.rb
861
887
  - features/step_definitions/customer_vault_tasks_steps.rb
@@ -902,10 +928,12 @@ files:
902
928
  - spec/factories/billing_machine_payment_terms.rb
903
929
  - spec/factories/billing_machine_quotation_lines.rb
904
930
  - spec/factories/billing_machine_quotations.rb
931
+ - spec/factories/customer_vault_activity_types.rb
905
932
  - spec/factories/customer_vault_corporations.rb
906
933
  - spec/factories/customer_vault_event.rb
907
934
  - spec/factories/customer_vault_individuals.rb
908
935
  - spec/factories/customer_vault_links.rb
936
+ - spec/factories/customer_vault_origins.rb
909
937
  - spec/factories/dorsale_addresses.rb
910
938
  - spec/factories/dorsale_comments.rb
911
939
  - spec/factories/expense_gun_categories.rb
@@ -927,10 +955,12 @@ files:
927
955
  - spec/models/dorsale/billing_machine/quotation_spec.rb
928
956
  - spec/models/dorsale/billing_machine_spec.rb
929
957
  - spec/models/dorsale/comment_spec.rb
958
+ - spec/models/dorsale/customer_vault/activity_type_spec.rb
930
959
  - spec/models/dorsale/customer_vault/corporation_spec.rb
931
960
  - spec/models/dorsale/customer_vault/event_spec.rb
932
961
  - spec/models/dorsale/customer_vault/individual_spec.rb
933
962
  - spec/models/dorsale/customer_vault/link_spec.rb
963
+ - spec/models/dorsale/customer_vault/origin_spec.rb
934
964
  - spec/models/dorsale/customer_vault/person_spec.rb
935
965
  - spec/models/dorsale/expense_gun/category_spec.rb
936
966
  - spec/models/dorsale/expense_gun/expense_line_spec.rb
@@ -948,6 +978,8 @@ files:
948
978
  - spec/routing/dorsale/billing_machine/invoices_routing_spec.rb
949
979
  - spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
950
980
  - spec/routing/dorsale/comments_routing_spec.rb
981
+ - spec/routing/dorsale/customer_vault/activity_types_routing_spec.rb
982
+ - spec/routing/dorsale/customer_vault/origins_routing_spec.rb
951
983
  - spec/routing/dorsale/customer_vault/people_routing_spec.rb
952
984
  - spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
953
985
  - spec/routing/dorsale/flyboy/task_comments_routing_spec.rb
@@ -1001,10 +1033,12 @@ test_files:
1001
1033
  - spec/factories/billing_machine_payment_terms.rb
1002
1034
  - spec/factories/billing_machine_quotation_lines.rb
1003
1035
  - spec/factories/billing_machine_quotations.rb
1036
+ - spec/factories/customer_vault_activity_types.rb
1004
1037
  - spec/factories/customer_vault_corporations.rb
1005
1038
  - spec/factories/customer_vault_event.rb
1006
1039
  - spec/factories/customer_vault_individuals.rb
1007
1040
  - spec/factories/customer_vault_links.rb
1041
+ - spec/factories/customer_vault_origins.rb
1008
1042
  - spec/factories/dorsale_addresses.rb
1009
1043
  - spec/factories/dorsale_comments.rb
1010
1044
  - spec/factories/expense_gun_categories.rb
@@ -1026,10 +1060,12 @@ test_files:
1026
1060
  - spec/models/dorsale/billing_machine/quotation_spec.rb
1027
1061
  - spec/models/dorsale/billing_machine_spec.rb
1028
1062
  - spec/models/dorsale/comment_spec.rb
1063
+ - spec/models/dorsale/customer_vault/activity_type_spec.rb
1029
1064
  - spec/models/dorsale/customer_vault/corporation_spec.rb
1030
1065
  - spec/models/dorsale/customer_vault/event_spec.rb
1031
1066
  - spec/models/dorsale/customer_vault/individual_spec.rb
1032
1067
  - spec/models/dorsale/customer_vault/link_spec.rb
1068
+ - spec/models/dorsale/customer_vault/origin_spec.rb
1033
1069
  - spec/models/dorsale/customer_vault/person_spec.rb
1034
1070
  - spec/models/dorsale/expense_gun/category_spec.rb
1035
1071
  - spec/models/dorsale/expense_gun/expense_line_spec.rb
@@ -1047,6 +1083,8 @@ test_files:
1047
1083
  - spec/routing/dorsale/billing_machine/invoices_routing_spec.rb
1048
1084
  - spec/routing/dorsale/billing_machine/quotations_routing_spec.rb
1049
1085
  - spec/routing/dorsale/comments_routing_spec.rb
1086
+ - spec/routing/dorsale/customer_vault/activity_types_routing_spec.rb
1087
+ - spec/routing/dorsale/customer_vault/origins_routing_spec.rb
1050
1088
  - spec/routing/dorsale/customer_vault/people_routing_spec.rb
1051
1089
  - spec/routing/dorsale/expense_gun/expenses_routing_spec.rb
1052
1090
  - spec/routing/dorsale/flyboy/task_comments_routing_spec.rb
@@ -1066,11 +1104,13 @@ test_files:
1066
1104
  - features/billing_machine_multiple_vat.feature
1067
1105
  - features/billing_machine_payment_terms.feature
1068
1106
  - features/billing_machine_quotations.feature
1107
+ - features/customer_vault_activity_types.feature
1069
1108
  - features/customer_vault_corporations.feature
1070
1109
  - features/customer_vault_filters.feature
1071
1110
  - features/customer_vault_individuals.feature
1072
1111
  - features/customer_vault_invoices.feature
1073
1112
  - features/customer_vault_links.feature
1113
+ - features/customer_vault_origins.feature
1074
1114
  - features/customer_vault_people.feature
1075
1115
  - features/customer_vault_search.feature
1076
1116
  - features/customer_vault_tasks.feature
@@ -1087,11 +1127,13 @@ test_files:
1087
1127
  - features/step_definitions/billing_machine_payment_terms_steps.rb
1088
1128
  - features/step_definitions/billing_machine_quotations_steps.rb
1089
1129
  - features/step_definitions/common_steps.rb
1130
+ - features/step_definitions/customer_vault_activity_types_steps.rb
1090
1131
  - features/step_definitions/customer_vault_corporations_steps.rb
1091
1132
  - features/step_definitions/customer_vault_filters_steps.rb
1092
1133
  - features/step_definitions/customer_vault_individuals_steps.rb
1093
1134
  - features/step_definitions/customer_vault_invoices_steps.rb
1094
1135
  - features/step_definitions/customer_vault_links_steps.rb
1136
+ - features/step_definitions/customer_vault_origins_steps.rb
1095
1137
  - features/step_definitions/customer_vault_people_steps.rb
1096
1138
  - features/step_definitions/customer_vault_search_steps.rb
1097
1139
  - features/step_definitions/customer_vault_tasks_steps.rb