diff --git a/lib/models.rb b/lib/models.rb index 0fee30c..1f9baa7 100644 --- a/lib/models.rb +++ b/lib/models.rb @@ -19,7 +19,7 @@ class Payment belongs_to :service belongs_to :supplier - has 1, :directorate, { :through => :service } + belongs_to :directorate, { :through => :service } def url SITE_URL + "payments/" + @id.to_s diff --git a/views/payment.haml b/views/payment.haml index 48607df..6d358d3 100644 --- a/views/payment.haml +++ b/views/payment.haml @@ -23,9 +23,4 @@ %tr %td Amount £ %td= sprintf("%0.2f", @payment.amount) - %tr - %td Transaction Number - %td= @payment.trans_no.nil? ? "unknown" : @payment.trans_no - - \ No newline at end of file