[#4183] Added client point of contact for a Contract.

This commit is contained in:
Eric Davis
2010-07-13 10:47:37 -07:00
parent 93498d31b2
commit f83555a4b0
3 changed files with 12 additions and 1 deletions

View File

@@ -27,6 +27,7 @@ class Contract < ActiveRecord::Base
attr_accessible :payment_terms
attr_accessible :client_ap_contact_information
attr_accessible :po_number
attr_accessible :client_point_of_contact
attr_accessible :details
[:status, :contract_type,
@@ -41,7 +42,6 @@ class Contract < ActiveRecord::Base
:overhead_spent,
:total_spent,
:profit_spent,
:client_point_of_contact,
:estimated_hour_spent
].each do |mthd|
define_method(mthd) { "TODO" }

View File

@@ -13,6 +13,7 @@
<%= form.input :payment_terms, :as => :select, :collection => resource.payment_terms_for_select %>
<%= form.input :client_ap_contact_information, :input_html => {:class => 'wiki-edit', :rows => '5'} %>
<%= form.input :po_number %>
<%= form.input :client_point_of_contact, :input_html => {:class => 'wiki-edit', :rows => '3'} %>
<%= form.input :details, :input_html => {:class => 'wiki-edit'} %>
<% end %>
<% form.buttons do %>
@@ -22,5 +23,6 @@
<%= wikitoolbar_for 'contract_discount_note' %>
<%= wikitoolbar_for 'contract_client_ap_contact_information' %>
<%= wikitoolbar_for 'contract_client_point_of_contact' %>
<%= wikitoolbar_for 'contract_details' %>

View File

@@ -0,0 +1,9 @@
class AddClientPointOfContactToContracts < ActiveRecord::Migration
def self.up
add_column :contracts, :client_point_of_contact, :text
end
def self.down
remove_column :contracts, :client_point_of_contact
end
end