mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
Removed Qbo index & sync html, methods, & routes
This stuff isn't really used for anything
This commit is contained in:
@@ -22,18 +22,6 @@ class QboController < ApplicationController
|
|||||||
params.permit(:code, :state, :realmId, :id)
|
params.permit(:code, :state, :realmId, :id)
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
|
||||||
# Called when the QBO Top Menu us shown
|
|
||||||
#
|
|
||||||
def index
|
|
||||||
@qbo = Qbo.first
|
|
||||||
@customer_count = Customer.count
|
|
||||||
@item_count = QboItem.count
|
|
||||||
@employee_count = Employee.count
|
|
||||||
@invoice_count = Invoice.count
|
|
||||||
@estimate_count = Estimate.count
|
|
||||||
end
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Called when the user requests that Redmine to connect to QBO
|
# Called when the user requests that Redmine to connect to QBO
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,42 +0,0 @@
|
|||||||
<!--
|
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2022 rick barrette
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<h1><%=t(:label_redmine_qbo)%></h1>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<b><%=t(:label_customer_count)%>:</b> <%= @customer_count.to_s%>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<b><%=t(:label_item_count)%>:</b> <%= @item_count.to_s %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<b><%=t(:label_employee_count)%>:</b> <%= @employee_count.to_s %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<b><%=t(:label_invoice_count)%>:</b> <%= @invoice_count.to_s %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<b><%=t(:label_estimate_count)%>:</b> <%= @estimate_count.to_s %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br/>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<b><%=t(:label_last_sync)%>: </b> <%= Qbo.last_sync if Qbo.exists? %>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<!--
|
|
||||||
The MIT License (MIT)
|
|
||||||
|
|
||||||
Copyright (c) 2016 rick barrette
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<h2>QboController#sync</h2>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
@@ -8,9 +8,6 @@
|
|||||||
#
|
#
|
||||||
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
# Main Quickbooks landing page
|
|
||||||
get 'qbo', :to=> 'qbo#index'
|
|
||||||
|
|
||||||
#authentication
|
#authentication
|
||||||
get 'qbo/authenticate', :to => 'qbo#authenticate'
|
get 'qbo/authenticate', :to => 'qbo#authenticate'
|
||||||
get 'qbo/oauth_callback', :to => 'qbo#oauth_callback'
|
get 'qbo/oauth_callback', :to => 'qbo#oauth_callback'
|
||||||
@@ -18,6 +15,9 @@ get 'qbo/oauth_callback', :to => 'qbo#oauth_callback'
|
|||||||
#manual sync
|
#manual sync
|
||||||
get 'qbo/sync', :to => 'qbo#sync'
|
get 'qbo/sync', :to => 'qbo#sync'
|
||||||
|
|
||||||
|
#webhook
|
||||||
|
post 'qbo/webhook', :to => 'qbo#webhook'
|
||||||
|
|
||||||
# Estimate & Invoice PDF
|
# Estimate & Invoice PDF
|
||||||
get 'estimates/:id', :to => 'estimate#show', as: :estimate
|
get 'estimates/:id', :to => 'estimate#show', as: :estimate
|
||||||
get 'estimates/doc/:id', :to => 'estimate#doc', as: :estimate_doc
|
get 'estimates/doc/:id', :to => 'estimate#doc', as: :estimate_doc
|
||||||
@@ -30,9 +30,6 @@ get 'bill/:id', :to => 'qbo#bill', as: :bill
|
|||||||
get 'customers/view/:token', :to => 'customers#view', as: :view
|
get 'customers/view/:token', :to => 'customers#view', as: :view
|
||||||
get 'customers/share/:id', :to => 'customers#share', as: :share
|
get 'customers/share/:id', :to => 'customers#share', as: :share
|
||||||
|
|
||||||
#webhook
|
|
||||||
post 'qbo/webhook', :to => 'qbo#webhook'
|
|
||||||
|
|
||||||
#java script routes
|
#java script routes
|
||||||
get 'filter_vehicles_by_customer' => 'customers#filter_vehicles_by_customer'
|
get 'filter_vehicles_by_customer' => 'customers#filter_vehicles_by_customer'
|
||||||
get 'filter_estimates_by_customer' => 'customers#filter_estimates_by_customer'
|
get 'filter_estimates_by_customer' => 'customers#filter_estimates_by_customer'
|
||||||
|
|||||||
Reference in New Issue
Block a user