Redmine Plugin for Sassafras Billing.
- Follow the instructions here
- Download GreenMachine as a plugin to Redmine (see Redmine instructions above)
cp lib/secrets.rb.example lib/secrets.rb
and configure- It should "just work" when you run the Redmine server
- Create a test app here
- Create a sandbox company here
- From your test app (the app, not the company), visit Development > Keys & OAuth
- 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
- Replace
- Copy the keys into
secrets.rb
Run with QB_SANDBOX_MODE=1 RAILS_ENV=production rails s
to use a sandboxed QB app.
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.