-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for the remaining endpoints to sample app
- Loading branch information
Jordan Walsh
committed
Mar 2, 2017
1 parent
d093f8d
commit d5952b3
Showing
11 changed files
with
138 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<h3>Journals</h3> | ||
<table class="table table-bordered table-striped table-collapsed"> | ||
<thead> | ||
<tr> | ||
<td>Number</td> | ||
<td>Journal Date</td> | ||
<td>Reference</td> | ||
<td># Lines</td> | ||
</tr> | ||
</thead> | ||
{{#each journals}} | ||
<tr> | ||
<td>{{ this.JournalNumber }}</td> | ||
<td>{{ this.JournalDate }}</td> | ||
<td>{{ this.Reference }}</td> | ||
<td>{{ this.JournalLines.length }}</td> | ||
</tr> | ||
{{/each}} | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<h3>Organisations</h3> | ||
<table class="table table-bordered table-striped table-collapsed"> | ||
<thead> | ||
<tr> | ||
<td>Name</td> | ||
<td>Version</td> | ||
<td>IsDemoCompany</td> | ||
<td>OrganisationStatus</td> | ||
</tr> | ||
</thead> | ||
{{#each organisations}} | ||
<tr> | ||
<td><a href="https://my.xero.com/Action/OrganisationLogin/{{ this.ShortCode }}" target="_blank">{{this.Name}}</a></td> | ||
<td>{{ this.Version }}</td> | ||
<td>{{ this.IsDemoCompany }}</td> | ||
<td>{{ this.OrganisationStatus }}</td> | ||
</tr> | ||
{{/each}} | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
<div class="col-sm-3 col-md-2 sidebar"> | ||
<h5>Accounting API</h5> | ||
<ul class="nav nav-sidebar"> | ||
<li class="active"><a href="/">Overview <span class="sr-only">(current)</span></a></li> | ||
<li><a href="/organisations">List Organisations</a></li> | ||
<li><a href="/accounts">List Accounts</a></li> | ||
<li><a href="/banktransactions">List Bank Transactions</a></li> | ||
<li><a href="/banktransfers">List Bank Transfers</a></li> | ||
<li><a href="/contacts">List Contacts</a></li> | ||
<li><a href="/invoices">List Invoices</a></li> | ||
<li><a href="/items">List Items</a></li> | ||
<li><a href="/journals">List Journals</a></li> | ||
<li><a href="/payments">List Payments</a></li> | ||
<li><a href="/trackingcategories">List Tracking Categories</a></li> | ||
</ul> | ||
<h5>Payroll API - AU</h5> | ||
<ul class="nav nav-sidebar"> | ||
<li><a href="/employees">List employees</a></li> | ||
<li><a href="/timesheets">List timesheets</a></li> | ||
<li><a href="/createtimesheet">Create Timesheet</a></li> | ||
<li><a href="/createinvoice">Create Invoice</a></li> | ||
<li><a href="/sendinvoice">Send Invoice</a></li> | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<h3>Payments</h3> | ||
<table class="table table-bordered table-striped table-collapsed"> | ||
<thead> | ||
<tr> | ||
<td>Date</td> | ||
<td>Contact Name</td> | ||
<td>Status</td> | ||
<td>Amount</td> | ||
</tr> | ||
</thead> | ||
{{#each payments}} | ||
<tr> | ||
{{#ifCond this.Invoice.Type '==' 'ACCREC'}} | ||
<td><a href="https://go.xero.com/AccountsReceivable/View.aspx?InvoiceID={{ this.Invoice.InvoiceID }}" target="_blank"> | ||
{{this.Date}} | ||
</a> | ||
</td> | ||
{{else}} | ||
<td><a href="https://go.xero.com/AccountsPayable/View.aspx?InvoiceID={{ this.Invoice.InvoiceID }}" target="_blank"> | ||
{{this.Date}} | ||
</a> | ||
</td> | ||
{{/ifCond}} | ||
<td>{{this.Invoice.Contact.Name}} </td> | ||
<td>{{this.Status}} </td> | ||
<td>{{this.Amount}} </td> | ||
</tr> | ||
{{/each}} | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<h3>Tracking Categories</h3> | ||
<table class="table table-bordered table-striped table-collapsed"> | ||
<thead> | ||
<tr> | ||
<td>Name</td> | ||
<td>Status</td> | ||
</tr> | ||
</thead> | ||
{{#each trackingcategories}} | ||
<tr> | ||
<td><a href="https://go.xero.com//Setup/Tracking.aspx" target="_blank">{{ this.Name }}</a></td> | ||
<td>{{ this.Status }}</td> | ||
</tr> | ||
{{/each}} | ||
</table> |