mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Merge pull request #2 from sempervictus/local
Merge initial changes 20170103
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -6,7 +6,7 @@ gem 'oauth-plugin'
|
|||||||
gem 'oauth'
|
gem 'oauth'
|
||||||
gem 'roxml'
|
gem 'roxml'
|
||||||
gem 'edmunds_vin'
|
gem 'edmunds_vin'
|
||||||
gem 'will_paginate', '~> 3.1.0'
|
gem 'will_paginate'
|
||||||
|
|
||||||
group :assets do
|
group :assets do
|
||||||
gem 'coffee-rails'
|
gem 'coffee-rails'
|
||||||
|
|||||||
@@ -66,8 +66,12 @@ class QboController < ApplicationController
|
|||||||
# Manual Billing
|
# Manual Billing
|
||||||
def bill
|
def bill
|
||||||
i = Issue.find_by_id params[:id]
|
i = Issue.find_by_id params[:id]
|
||||||
i.bill_time
|
if i.customer
|
||||||
redirect_to i, :flash => { :notice => "Successfully Billed #{i.customer.name}" }
|
i.bill_time
|
||||||
|
redirect_to i, :flash => { :notice => "Successfully Billed #{i.customer.name}" }
|
||||||
|
else
|
||||||
|
redirect_to i, :flash => { :error => "Cannot bill without a customer assigned" }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Quickbooks Webhook Callback
|
# Quickbooks Webhook Callback
|
||||||
|
|||||||
Reference in New Issue
Block a user