daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Mar 1st, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '[PAMB.Total.Conduit]' => lambda do |context|
  2.         total =
  3.           (context[:table][:first_part].select do |table_row|
  4.             real_estate_debt?(table_row[:item]) &&
  5.             table_row[:treatment].present? &&
  6.             table_row[:treatment].try(:conduit?)
  7.           end +
  8.           context[:table][:second_part].select do |table_row|
  9.             table_row[:treatment].present? &&
  10.             table_row[:treatment].long_term_maintain_inside? &&
  11.             table_row[:treatment].long_term_maintain_and_cure_inside?
  12.           end).inject(0) do |sum, table_row|
  13.             sum + table_row[:columns][:monthly_payment]
  14.           end
  15.  
  16.           number_to_currency(total)
  17.       end,
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top