A simple Dashing job to display the total value of open/overdue invoices from FreeAgent.
An app id/secret and access token setup via FreeAgent Developer.
Add it to dashing's gemfile:
gem 'freeagent-api-ruby', github: 'fac/freeagent-api-ruby'
and run bundle install
.
This job makes use of the default Number widget provided by Dashing. Put the freeagent-open-invoices.rb
file in your /jobs
folder.
To include the widget in a dashboard, add the following snippet to the dashboard layout file:
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1">
<div data-id="freeagent-open-invoices" data-view="Number" data-title="Open Invoice" data-prefix="£" />
</li>