erp_work_effort 3.1.1 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/app/controllers/erp_work_effort/erp_app/organizer/tasks/base_controller.rb +13 -0
- data/app/controllers/erp_work_effort/erp_app/organizer/tasks/work_efforts_controller.rb +128 -0
- data/app/models/associated_transportation_route.rb +12 -0
- data/app/models/associated_work_effort.rb +12 -0
- data/app/models/deliverable.rb +7 -0
- data/app/models/deliverable_type.rb +9 -0
- data/app/models/extensions/party.rb +0 -2
- data/app/models/good_type.rb +11 -0
- data/app/models/party_fixed_asset_assignment.rb +12 -0
- data/app/models/party_skill.rb +6 -0
- data/app/models/requirement.rb +14 -0
- data/app/models/requirement_party_role.rb +8 -0
- data/app/models/requirement_type.rb +7 -0
- data/app/models/skill_type.rb +10 -0
- data/app/models/transportation_route.rb +71 -0
- data/app/models/transportation_route_segment.rb +9 -0
- data/app/models/transportation_route_stop.rb +6 -0
- data/app/models/work_effort.rb +82 -92
- data/app/models/work_effort_association.rb +16 -0
- data/app/models/work_effort_association_type.rb +14 -0
- data/app/models/work_effort_deliverable_produced.rb +6 -0
- data/app/models/work_effort_fixed_asset_assignment.rb +10 -0
- data/app/models/work_effort_fixed_asset_serviced.rb +6 -0
- data/app/models/work_effort_fixed_asset_standard.rb +7 -0
- data/app/models/work_effort_good_standard.rb +7 -0
- data/app/models/work_effort_inventory_assignment.rb +10 -0
- data/app/models/work_effort_inventory_produced.rb +7 -0
- data/app/models/work_effort_party_assignment.rb +12 -0
- data/app/models/work_effort_purpose_type.rb +11 -0
- data/app/models/work_effort_skill_standard.rb +7 -0
- data/app/models/work_effort_type.rb +9 -0
- data/app/models/work_effort_type_association.rb +10 -0
- data/app/models/work_order_item.rb +5 -0
- data/app/models/work_order_item_fulfillment.rb +11 -0
- data/app/models/work_requirement_fulfillment.rb +3 -0
- data/config/routes.rb +20 -0
- data/db/data_migrations/20131213151309_create_tasks_organizer_application.rb +14 -0
- data/db/data_migrations/20131215225329_add_task_work_effort_types.rb +11 -0
- data/db/data_migrations/20131215234936_add_task_statuses.rb +21 -0
- data/db/migrate/20100220000000_base_work_efforts.rb +506 -103
- data/db/migrate/20130829153419_base_routes.rb +93 -0
- data/db/migrate/20131213140617_add_work_effort_role_assignments.rb +16 -0
- data/db/migrate/20131213144223_add_work_item_to_work_effort.rb +8 -0
- data/db/migrate/20140106184615_update_work_effort_item_id_to_int.rb +27 -0
- data/lib/erp_work_effort.rb +1 -1
- data/lib/erp_work_effort/engine.rb +7 -5
- data/lib/erp_work_effort/extensions.rb +2 -4
- data/lib/erp_work_effort/extensions/active_record/acts_as_routable.rb +55 -0
- data/lib/erp_work_effort/extensions/active_record/acts_as_work_effort.rb +66 -0
- data/lib/erp_work_effort/version.rb +7 -3
- data/spec/models/deliverable_spec.rb +5 -0
- data/spec/models/deliverable_type_spec.rb +5 -0
- data/spec/models/facility_spec.rb +8 -0
- data/spec/models/facility_type_spec.rb +8 -0
- data/spec/models/fixed_asset_party_role_spec.rb +5 -0
- data/spec/models/fixed_asset_spec.rb +5 -0
- data/spec/models/fixed_asset_type_spec.rb +5 -0
- data/spec/models/good_type_spec.rb +5 -0
- data/spec/models/party_fixed_asset_assignment_spec.rb +5 -0
- data/spec/models/party_skill_spec.rb +5 -0
- data/spec/models/requirement_party_role_spec.rb +5 -0
- data/spec/models/requirement_spec.rb +5 -0
- data/spec/models/requirement_type_spec.rb +5 -0
- data/spec/models/skill_type_spec.rb +8 -0
- data/spec/models/work_effort_association_spec.rb +5 -0
- data/spec/models/work_effort_association_type_spec.rb +5 -0
- data/spec/models/work_effort_deliverable_produced_spec.rb +5 -0
- data/spec/models/work_effort_fixed_asset_assignment_spec.rb +5 -0
- data/spec/models/work_effort_fixed_asset_serviced_spec.rb +5 -0
- data/spec/models/work_effort_fixed_asset_standard_spec.rb +5 -0
- data/spec/models/work_effort_good_standard_spec.rb +5 -0
- data/spec/models/work_effort_inventory_assignment_spec.rb +5 -0
- data/spec/models/work_effort_inventory_produced_spec.rb +5 -0
- data/spec/models/work_effort_party_assignment_spec.rb +5 -0
- data/spec/models/work_effort_purpose_type_spec.rb +5 -0
- data/spec/models/work_effort_skill_standard_spec.rb +5 -0
- data/spec/models/work_effort_spec.rb +49 -0
- data/spec/models/work_effort_type_association_spec.rb +5 -0
- data/spec/models/work_effort_type_spec.rb +5 -0
- data/spec/models/work_order_item_fulfillment_spec.rb +5 -0
- data/spec/models/work_order_item_spec.rb +29 -0
- data/spec/models/work_requirement_fulfillment_spec.rb +5 -0
- metadata +141 -105
- data/app/assets/javascripts/erp_work_effort/application.js +0 -9
- data/app/assets/stylesheets/erp_work_effort/application.css +0 -7
- data/app/controllers/erp_work_effort/application_controller.rb +0 -4
- data/app/helpers/erp_work_effort/application_helper.rb +0 -4
- data/app/models/cost.rb +0 -5
- data/app/models/project_effort.rb +0 -2
- data/app/models/project_requirement.rb +0 -2
- data/app/models/support_effort.rb +0 -2
- data/app/models/support_requirement.rb +0 -2
- data/app/models/work_effort_assignment.rb +0 -12
- data/app/models/work_effort_status.rb +0 -6
- data/app/models/work_effort_status_type.rb +0 -15
- data/app/models/work_requirement.rb +0 -78
- data/app/models/work_requirement_work_effort_status_type.rb +0 -6
- data/app/views/layouts/erp_work_effort/application.html.erb +0 -14
- data/lib/erp_work_effort/extensions/active_record/acts_as_project_effort.rb +0 -66
- data/lib/erp_work_effort/extensions/active_record/acts_as_project_requirement.rb +0 -64
- data/lib/erp_work_effort/extensions/active_record/acts_as_support_effort.rb +0 -61
- data/lib/erp_work_effort/extensions/active_record/acts_as_support_requirement.rb +0 -68
- data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
- data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
- data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
- data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
- data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
- data/spec/dummy/db/migrate/20130107204429_base_erp_services.erp_base_erp_svcs.rb +0 -461
- data/spec/dummy/db/migrate/20130107204430_base_work_efforts.erp_work_effort.rb +0 -211
- data/spec/dummy/db/migrate/20130107204431_base_tech_services.erp_tech_svcs.rb +0 -271
- data/spec/dummy/db/migrate/20130107204432_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
- data/spec/dummy/db/migrate/20130107204433_create_groups.erp_tech_svcs.rb +0 -19
- data/spec/dummy/db/migrate/20130107204434_upgrade_security.erp_tech_svcs.rb +0 -54
- data/spec/dummy/db/migrate/20130107204435_upgrade_security2.erp_tech_svcs.rb +0 -270
- data/spec/dummy/db/schema.rb +0 -750
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/models/cost_spec.rb +0 -11
- data/spec/models/project_effort_spec.rb +0 -11
- data/spec/models/project_requirement_spec.rb +0 -11
- data/spec/models/support_effort_spec.rb +0 -11
- data/spec/models/support_requirement_spec.rb +0 -11
- data/spec/models/valid_work_assignment_attribute_spec.rb +0 -11
- data/spec/models/valid_work_assignment_spec.rb +0 -11
- data/spec/models/work_effort_assignment_spec.rb +0 -13
- data/spec/models/work_effort_status_spec.rb +0 -11
- data/spec/models/work_effort_status_type_spec.rb +0 -11
- data/spec/models/work_requirement_spec.rb +0 -11
- data/spec/models/work_requirement_work_effort_status_type._spec.rb +0 -11
data/spec/dummy/db/spec.sqlite3
DELETED
Binary file
|
data/spec/models/cost_spec.rb
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe ProjectRequirement do
|
4
|
-
it "can be instantiated" do
|
5
|
-
ProjectRequirement.new.should be_an_instance_of(ProjectRequirement)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
ProjectRequirement.create().should be_persisted
|
10
|
-
end
|
11
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe SupportRequirement do
|
4
|
-
it "can be instantiated" do
|
5
|
-
SupportRequirement.new.should be_an_instance_of(SupportRequirement)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
SupportRequirement.create().should be_persisted
|
10
|
-
end
|
11
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe ValidWorkAssignmentAttribute do
|
4
|
-
it "can be instantiated" do
|
5
|
-
ValidWorkAssignmentAttribute.new.should be_an_instance_of(ValidWorkAssignmentAttribute)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
ValidWorkAssignmentAttribute.create().should be_persisted
|
10
|
-
end
|
11
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe ValidWorkAssignment do
|
4
|
-
it "can be instantiated" do
|
5
|
-
ValidWorkAssignment.new.should be_an_instance_of(ValidWorkAssignment)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
ValidWorkAssignment.create().should be_persisted
|
10
|
-
end
|
11
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe WorkEffortAssignment do
|
4
|
-
it "can be instantiated" do
|
5
|
-
WorkEffortAssignment.new.should be_an_instance_of(WorkEffortAssignment)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
party = Party.new(:description => 'Test Party')
|
10
|
-
work_effort = WorkEffort.new
|
11
|
-
WorkEffortAssignment.create(:assigned_to => party, :assigned_by => party, :work_effort => work_effort).should be_persisted
|
12
|
-
end
|
13
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe WorkEffortStatusType do
|
4
|
-
it "can be instantiated" do
|
5
|
-
WorkEffortStatusType.new.should be_an_instance_of(WorkEffortStatusType)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
WorkEffortStatusType.create().should be_persisted
|
10
|
-
end
|
11
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
require 'spec_helper'
|
2
|
-
|
3
|
-
describe WorkRequirementWorkEffortStatusType do
|
4
|
-
it "can be instantiated" do
|
5
|
-
WorkRequirementWorkEffortStatusType.new.should be_an_instance_of(WorkRequirementWorkEffortStatusType)
|
6
|
-
end
|
7
|
-
|
8
|
-
it "can be saved successfully" do
|
9
|
-
WorkRequirementWorkEffortStatusType.create().should be_persisted
|
10
|
-
end
|
11
|
-
end
|