JC: added approved, approved_date and purchase_order_id to model. Added @erb_code to controller for create/update. Added spec for dynamic validate. spec passes.