Remove payment orphans

This commit is contained in:
2022-03-09 21:40:40 -05:00
parent 24f8be6e80
commit ffcb2ee608
3 changed files with 5 additions and 12 deletions

View File

@@ -57,9 +57,7 @@ en:
label_display_name: "Display Name" label_display_name: "Display Name"
label_details: "Details" label_details: "Details"
label_customer_link_expires: "This customer link expires in" label_customer_link_expires: "This customer link expires in"
label_new_payment: "New Payment"
label_amount: "Amount" label_amount: "Amount"
label_payment_method: "Payment Method"
label_deposit_into: "Deposit to Account" label_deposit_into: "Deposit to Account"
label_last_sync: "Last Sync" label_last_sync: "Last Sync"
label_redmine_qbo: "Redmine Quickbooks" label_redmine_qbo: "Redmine Quickbooks"

View File

@@ -19,20 +19,17 @@ get 'qbo/oauth_callback', :to => 'qbo#oauth_callback'
get 'qbo/sync', :to => 'qbo#sync' get 'qbo/sync', :to => 'qbo#sync'
# Estimate & Invoice PDF # Estimate & Invoice PDF
get 'qbo/estimate/:id', :to => 'estimate#show', as: :estimate get 'estimate/:id', :to => 'estimate#show', as: :estimate
get 'qbo/estimate/doc/:id', :to => 'estimate#doc', as: :estimate_doc get 'estimate/doc/:id', :to => 'estimate#doc', as: :estimate_doc
get 'qbo/invoice/:id', :to => 'invoice#show', as: :invoice get 'invoice/:id', :to => 'invoice#show', as: :invoice
#manual billing #manual billing
get 'qbo/bill/:id', :to => 'qbo#bill', as: :bill get 'bill/:id', :to => 'qbo#bill', as: :bill
#customer issue view #customer issue view
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
#payments
resources :payments
#webhook #webhook
post 'qbo/webhook', :to => 'qbo#webhook' post 'qbo/webhook', :to => 'qbo#webhook'

View File

@@ -48,9 +48,7 @@ Redmine::Plugin.register :redmine_qbo do
# Permissions for security # Permissions for security
permission :view_customers, :customers => :index, :public => false permission :view_customers, :customers => :index, :public => false
permission :add_customers, :customers => :new, :public => false permission :add_customers, :customers => :new, :public => false
permission :view_payments, :payments => :index, :public => false permission :view_vehicles, :vehicles => :new, :public => false
permission :add_payments, :payments => :new, :public => false
permission :view_vehicles, :payments => :new, :public => false
# Register top menu items # Register top menu items
menu :top_menu, :customers, { :controller => :customers, :action => :index }, :caption => 'Customers', :if => Proc.new {User.current.logged?} menu :top_menu, :customers, { :controller => :customers, :action => :index }, :caption => 'Customers', :if => Proc.new {User.current.logged?}