Skip to content

Commit

Permalink
adjust report
Browse files Browse the repository at this point in the history
  • Loading branch information
devton committed Apr 9, 2012
1 parent 6ec0450 commit 218479d
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions lib/reports/financial/backers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@ def report(project_id)
'Email (conta do apoiador)',
'Email (conta em que fez o pagamento)',
'Login do usuario no MoIP',
'CPF'
'CPF',
'Endereço',
'Complemento',
'Numero',
'Bairro',
'Cidade',
'Estado',
'CEP'
]

@backers.each do |backer|
Expand All @@ -41,12 +48,19 @@ def report(project_id)
backer.user.email,
(backer.payment_detail.payer_email if backer.payment_detail),
(backer.payment_detail.payer_name if backer.payment_detail),
backer.user.cpf
backer.user.cpf,
backer.user.address_street,
backer.user.address_complement,
backer.user.address_number,
backer.user.address_neighbourhood,
backer.user.address_city,
backer.user.address_state,
backer.user.address_zip_code
]
end
end
end
end
end
end
end
end

0 comments on commit 218479d

Please sign in to comment.