mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
fixed estimate#sync
This commit is contained in:
@@ -77,13 +77,6 @@ class EstimateController < ApplicationController
|
|||||||
redirect_back fallback_location: root_path, flash: { error: I18n.t(:notice_estimate_not_found) }
|
redirect_back fallback_location: root_path, flash: { error: I18n.t(:notice_estimate_not_found) }
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync
|
|
||||||
Estimate.sync
|
|
||||||
redirect_to :home, flash: { notice: I18n.t(:label_syncing) }
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
|
||||||
|
|
||||||
# Logs messages with a consistent prefix for easier debugging.
|
# Logs messages with a consistent prefix for easier debugging.
|
||||||
def log(msg)
|
def log(msg)
|
||||||
Rails.logger.info "[EstimateController] #{msg}"
|
Rails.logger.info "[EstimateController] #{msg}"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ get 'estimates/sync', to: 'estimate#sync'
|
|||||||
post 'qbo/webhook', to: 'qbo#webhook'
|
post 'qbo/webhook', to: 'qbo#webhook'
|
||||||
|
|
||||||
# Estimate & Invoice PDF
|
# Estimate & Invoice PDF
|
||||||
get 'estimates/:id', to: 'estimate#show', as: :estimate
|
get 'estimates/sync', to: 'estimate#sync'
|
||||||
get 'estimates/doc/', to: 'estimate#doc', as: :estimate_doc
|
get 'estimates/doc/', to: 'estimate#doc', as: :estimate_doc
|
||||||
get 'invoices/:id', to: 'invoice#show', as: :invoice
|
get 'invoices/:id', to: 'invoice#show', as: :invoice
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user