sassafrastech / greenmachine

Sassafras Billing Redmine Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GreenMachine

Redmine Plugin for Sassafras Billing.

Development

Set up Redmine

  1. Follow the instructions here

Set up GreenMachine

  1. Download GreenMachine as a plugin to Redmine (see Redmine instructions above)
  2. cp lib/secrets.rb.example lib/secrets.rb and configure
  3. It should "just work" when you run the Redmine server

QuickBooks Sandbox

Setup

  1. Create a test app here
  2. Create a sandbox company here
  3. From your test app (the app, not the company), visit Development > Keys & OAuth
  4. Under Redirect URIs, add http://localhost:3000/green-machine/quickbooks/callback
    • Replace localhost:3000 with whatever URL you hit when developing locally; it must match exactly, including the trailing slash
  5. Copy the keys into secrets.rb

Server flags

Run with QB_SANDBOX_MODE=1 RAILS_ENV=production rails s to use a sandboxed QB app.

Troubleshooting

Quickbooks::IntuitRequestException
Invalid Reference Id: Line.SalesItemLineDetail.ItemRef

You're probably trying to submit an invoice line item with an ID outside the range of available IDs in the QuickBooks Sandbox (e.g. the "Discount" category 37 does not exist). For testing purposes, try lowering the ID number.

About

Sassafras Billing Redmine Plugin


Languages

Language:Ruby 68.9%Language:HTML 12.8%Language:Slim 10.0%Language:CSS 8.3%