[#4183] Added client point of contact for a Contract.
This commit is contained in:
@@ -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" }
|
||||
|
||||
@@ -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' %>
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user