Skip to content

Commit

Permalink
reports
Browse files Browse the repository at this point in the history
  • Loading branch information
SerKnight committed Jun 4, 2021
1 parent 45bd975 commit 3fa35a5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions views/reports.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- @reports.each do |org|
%pre= org.pretty_inspect
%hr
6 changes: 6 additions & 0 deletions xero_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,9 @@ def xero_client
@organisations = xero_client.accounting_api.get_organisations(xero_client.connections[0]['tenantId']).organisations
haml :organisation
end

get '/reports' do
xero_client.set_token_set(session[:token_set])
@reports = xero_client.accounting_api.get_report_ba_sor_gst_list(xero_client.connections[0]['tenantId']).reports
haml :reports
end

0 comments on commit 3fa35a5

Please sign in to comment.