diff --git a/config/locales/en.yml b/config/locales/en.yml index df37eee..7c8cba4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -57,9 +57,7 @@ en: label_display_name: "Display Name" label_details: "Details" label_customer_link_expires: "This customer link expires in" - label_new_payment: "New Payment" label_amount: "Amount" - label_payment_method: "Payment Method" label_deposit_into: "Deposit to Account" label_last_sync: "Last Sync" label_redmine_qbo: "Redmine Quickbooks" diff --git a/config/routes.rb b/config/routes.rb index 3795a3e..955e811 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -19,20 +19,17 @@ get 'qbo/oauth_callback', :to => 'qbo#oauth_callback' get 'qbo/sync', :to => 'qbo#sync' # Estimate & Invoice PDF -get 'qbo/estimate/:id', :to => 'estimate#show', as: :estimate -get 'qbo/estimate/doc/:id', :to => 'estimate#doc', as: :estimate_doc -get 'qbo/invoice/:id', :to => 'invoice#show', as: :invoice +get 'estimate/:id', :to => 'estimate#show', as: :estimate +get 'estimate/doc/:id', :to => 'estimate#doc', as: :estimate_doc +get 'invoice/:id', :to => 'invoice#show', as: :invoice #manual billing -get 'qbo/bill/:id', :to => 'qbo#bill', as: :bill +get 'bill/:id', :to => 'qbo#bill', as: :bill #customer issue view get 'customers/view/:token', :to => 'customers#view', as: :view get 'customers/share/:id', :to => 'customers#share', as: :share -#payments -resources :payments - #webhook post 'qbo/webhook', :to => 'qbo#webhook' diff --git a/init.rb b/init.rb index f31f793..2904177 100644 --- a/init.rb +++ b/init.rb @@ -48,9 +48,7 @@ Redmine::Plugin.register :redmine_qbo do # Permissions for security permission :view_customers, :customers => :index, :public => false permission :add_customers, :customers => :new, :public => false - permission :view_payments, :payments => :index, :public => false - permission :add_payments, :payments => :new, :public => false - permission :view_vehicles, :payments => :new, :public => false + permission :view_vehicles, :vehicles => :new, :public => false # Register top menu items menu :top_menu, :customers, { :controller => :customers, :action => :index }, :caption => 'Customers', :if => Proc.new {User.current.logged?}