# For Dashboard

get 'wkdashboard', :to => 'wkdashboard#index'

get 'wkdashboard/graph', :to => 'wkdashboard#graph'

get 'wkdashboard/getGraphs', to: 'wkdashboard#getGraphs'

get 'wkdashboard/getDetailReport', to: 'wkdashboard#getDetailReport'

get 'wkdashboard/employee_dashboard', to: 'wkdashboard#employee_dashboard'

# Time

get 'wktime', :to => 'wktime#index'

get 'wktime/edit', :to => 'wktime#edit'

get 'wktime/:id/edit', :to => 'wktime#edit'

post 'wktime/update', :to => 'wktime#update'

delete 'wktime/:id/destroy', :to => 'wktime#destroy'

get 'wktime/get_issue_loggers', :to => 'wktime#get_issue_loggers'

get 'wktime/getissues', :to => 'wktime#getissues'

get 'wktime/getactivities', :to => 'wktime#getactivities'

get 'wktime/getclients', :to => 'wktime#getclients'

get 'wktime/getuserclients', :to => 'wktime#getuserclients'

get 'wktime/getuserissues', :to => 'wktime#getuserissues'

get 'wktime/getusers', :to => 'wktime#getusers'

get 'wktime/getMembersbyGroup', :to => 'wktime#getMembersbyGroup'

get 'wktime/deleterow', :to => 'wktime#deleterow'

get 'wktime/export', :to => 'wktime#export'

get 'wktime/getStatus', :to => 'wktime#getStatus'

get 'wktime/getTracker', :to => 'wktime#getTracker'

delete 'wktime/deleteEntries', :to => 'wktime#deleteEntries'

post 'wktime/sendSubReminderEmail', :to => 'wktime#sendSubReminderEmail'

post 'wktime/sendApprReminderEmail', :to => 'wktime#sendApprReminderEmail'

get 'wktime/testapi', :to => 'wktime#testapi'

get 'wktime/getProjects', :to => 'wktime#getProjects'

get 'updateAttendance', :to => 'wktime#updateAttendance'

get 'wktime/time_rpt', :to => 'wktime#time_rpt'

get 'wktime/lockte', :to => 'wktime#lockte'

post 'wktime/lockupdate', :to => 'wktime#lockupdate'

# For Time & Expense Supervisor feature

get 'wktime/getMyReportUsers', :to => 'wktime#getMyReportUsers'

get 'wktime/getAPIUsers', to: 'wktime#getAPIUsers'

# Expense

get 'wkexpense', :to => 'wkexpense#index'

get 'wkexpense/edit', :to => 'wkexpense#edit'

get 'wkexpense/:id/edit', :to => 'wkexpense#edit'

post 'wkexpense/update', :to => 'wkexpense#update'

delete 'wkexpense/:id/destroy', :to => 'wkexpense#destroy'

get 'wkexpense/new', :to => 'wkexpense#new'

get 'wkexpense/getusers', :to => 'wkexpense#getusers'

get 'wkexpense/getMembersbyGroup', :to => 'wkexpense#getMembersbyGroup'

get 'wkexpense/deleterow', :to => 'wkexpense#deleterow'

get 'wkexpense/export', :to => 'wkexpense#export'

get 'wkexpense/getissues', :to => 'wkexpense#getissues'

get 'wkexpense/getactivities', :to => 'wkexpense#getactivities'

get 'wkexpense/getclients', :to => 'wkexpense#getclients'

get 'wkexpense/getuserclients', :to => 'wkexpense#getuserclients'

get 'wkexpense/getuserissues', :to => 'wkexpense#getuserissues'

post 'wkexpense/sendSubReminderEmail', :to => 'wkexpense#sendSubReminderEmail'

post 'wkexpense/sendApprReminderEmail', :to => 'wkexpense#sendApprReminderEmail'

delete 'wkexpense/deleteEntry', :to => 'wkexpense#deleteEntry'

delete 'wkexpense/deleteEntries', :to => 'wkexpense#deleteEntries'

get 'wkexpense/time_rpt', :to => 'wkexpense#time_rpt'

get 'wkexpense/getCurrency', :to => 'wkexpense#getCurrency'

get 'wkexpense/lockte', :to => 'wkexpense#lockte'

resources :projects do
	resources :wk_expense_entries, :controller => 'wkexpense' do
		collection do
			get 'reportdetail'
			get 'report'
		end
	end
end

#For Weekly expense report

get 'projects/wk_expense_entries/reportdetail' , :to => 'wkexpense#reportdetail'

get 'projects/wk_expense_entries/report' , :to => 'wkexpense#report'

#For HR Attendance (Leave & Clock)

resources :wk_attendances, :controller => 'wkimportattendance'  do
	collection do
		post 'show'
	end
end

get 'wkattendance', :to => 'wkattendance#index'

post 'wkattendance', :to => 'wkattendance#index'

get 'wkattendance/edit', :to => 'wkattendance#edit'

post 'wkattendance/update', :to => 'wkattendance#update'

get 'wkattendance/getIssuesByProject', :to => 'wkattendance#getIssuesByProject'

get 'wkattendance/getProjectByIssue', :to => 'wkattendance#getProjectByIssue'

get 'wkattendance/clockindex', :to => 'wkattendance#clockindex'

get 'wkattendance/:id/clockedit', :to => 'wkattendance#clockedit'

get 'wkattendance/clockedit', :to => 'wkattendance#clockedit'

get 'wkattendance/getGroupMembers', :to => 'wkattendance#getGroupMembers'

get 'wkattendance/getMembersbyGroup', :to => 'wkattendance#getMembersbyGroup'

post 'wkattendance/saveClockInOut', :to => 'wkattendance#saveClockInOut'

post 'wkattendance/save_bulk_edit', :to => 'wkattendance#save_bulk_edit'

get 'wkattendance/getClockHours', :to => 'wkattendance#getClockHours'

get 'wkattendance/leavesettings', to: 'wkattendance#leavesettings'

post 'wkattendance/leavesettings', to: 'wkattendance#leavesettings'

get 'wkattendance/runPeriodEndProcess', :to => 'wkattendance#runPeriodEndProcess'

# For HR Public Holiday

get 'wkpublicholiday', :to => 'wkpublicholiday#index'

post 'wkpublicholiday/update', :to => 'wkpublicholiday#update'

#For HR Leave Request

get 'wkleaverequest', :to => 'wkleaverequest#index'

get 'wkleaverequest/:id/edit', :to => 'wkleaverequest#edit'

get 'wkleaverequest/edit', :to => 'wkleaverequest#edit'

post 'wkleaverequest/save', :to => 'wkleaverequest#save'

get 'wkleaverequest/getLeaveAvailableHours', :to => 'wkleaverequest#getLeaveAvailableHours'

get 'wkleaverequest/getLeaveType', :to => 'wkleaverequest#getLeaveType'

#For HR payroll

get 'wkpayroll', :to => 'wkpayroll#index'

get 'wkpayroll/edit', :to => 'wkpayroll#edit'

post 'wkpayroll/updateUserSalary', :to => 'wkpayroll#updateUserSalary'

get 'wkpayroll/user_salary_settings', :to => 'wkpayroll#user_salary_settings'

get 'wkpayroll/getGroupMembers', :to => 'wkpayroll#getGroupMembers'

get 'wkpayroll/getMembersbyGroup', :to => 'wkpayroll#getMembersbyGroup'

post 'wkpayroll/generatePayroll', :to => 'wkpayroll#generatePayroll'

get 'wkpayroll/usrsettingsindex', :to => 'wkpayroll#usrsettingsindex'

match 'wkpayroll/payrollsettings', :to => 'wkpayroll#payrollsettings', :via => [:get, :post]

post 'wkpayroll/save_bulk_edit', :to => 'wkpayroll#save_bulk_edit'

get 'wkpayroll/export', :to => 'wkpayroll#export'

get 'wkpayroll/income_tax', :to => 'wkpayroll#income_tax'

post 'wkpayroll/income_tax', :to => 'wkpayroll#income_tax'

get 'wkpayroll/getRecursiveComp', :to => 'wkpayroll#getRecursiveComp'

delete 'wkpayroll/destroy', to: 'wkpayroll#destroy'

# For HR Scheduling

get 'wkscheduling', :to => 'wkscheduling#index'

get 'wkscheduling/edit', :to => 'wkscheduling#edit'

post 'wkscheduling/update', :to => 'wkscheduling#update'

# For HR Scheduling Shift

get 'wkshift', :to => 'wkshift#index'

get 'wkshift/edit', :to => 'wkshift#edit'

get 'wkshift/:id/edit', :to => 'wkshift#edit'

get 'wkshift/update', :to => 'wkshift#update'

post 'wkshift/shiftRoleUpdate', :to => 'wkshift#shiftRoleUpdate'

# For HR Skills

get 'wkskill', :to => 'wkskill#index'

get 'projects/:project_id/wkskill', :to => 'wkskill#index'

get 'wkskill/edit', :to => 'wkskill#edit'

get 'wkskill/:id/edit', :to => 'wkskill#edit'

post 'wkskill/save', :to => 'wkskill#save'

delete 'wkskill/:id', :to => 'wkskill#destroy'

# For HR Referrals

get 'wkreferrals', to: 'wkreferrals#index'

get 'wkreferrals/edit', to: 'wkreferrals#edit'

get 'wkreferrals/:id/edit', to: 'wkreferrals#edit'

post 'wkreferrals/update', to: 'wkreferrals#update'

delete 'wkreferrals/:id', to: 'wkreferrals#destroy'

get 'wkreferrals/convert', to: 'wkreferrals#convert'

get 'wkreferrals/getEmpDetails', to: 'wkreferrals#getEmpDetails'

#For CRM Lead

get 'wklead', :to => 'wklead#index'

# get 'wklead/:id', :to => 'wklead#show'

get 'wklead/:id/edit', :to => 'wklead#edit'

get 'wklead/edit', :to => 'wklead#edit'

post 'wklead/update', :to => 'wklead#update'

get 'wklead/covert', :to => 'wklead#convert'

delete 'wklead/:id', :to => 'wklead#destroy'

# For CRM Account

get 'wkcrmaccount', :to => 'wkcrmaccount#index'

post 'wkcrmaccount/update', :to => 'wkcrmaccount#update'

get 'wkcrmaccount/:id/edit', :to => 'wkcrmaccount#edit'

get 'wkcrmaccount/edit', :to => 'wkcrmaccount#edit'

delete 'wkcrmaccount/:id', :to => 'wkcrmaccount#destroy'

# For CRM Opportunity

get 'wkopportunity', :to => 'wkopportunity#index'

get 'wkopportunity/edit', :to => 'wkopportunity#edit'

get 'wkopportunity/:id/edit', :to => 'wkopportunity#edit'

get 'wkopportunity/update', :to => 'wkopportunity#update'

delete 'wkopportunity/:id', :to => 'wkopportunity#destroy'

# For CRM

get 'wkcrmactivity', :to => 'wkcrmactivity#index'

get 'wkcrmactivity/:id/edit', :to => 'wkcrmactivity#edit'

get 'wkcrmactivity/edit', :to => 'wkcrmactivity#edit'

post 'wkcrmactivity/update', :to => 'wkcrmactivity#update'

delete 'wkcrmactivity/:id', :to => 'wkcrmactivity#destroy'

# For CRM Contact

get 'wkcrmcontact', :to => 'wkcrmcontact#index'

get 'wkcrmcontact/edit', :to => 'wkcrmcontact#edit'

get 'wkcrmcontact/:id/edit', :to => 'wkcrmcontact#edit'

post 'wkcrmcontact/update', :to => 'wkcrmcontact#update'

delete 'wkcrmcontact/:id', :to => 'wkcrmcontact#destroy'

# For CRM Account Project

resources :projects do
	resource :wkaccountproject, :only => [:index], :controller => :wkaccountproject do
		get :index
	end
end

get 'wkaccountproject/edit', :to => 'wkaccountproject#edit'

get 'wkaccountproject/:id/edit', :to => 'wkaccountproject#edit'

delete 'wkaccountproject/:id', :to => 'wkaccountproject#destroy'

post 'wkaccountproject/update', :to => 'wkaccountproject#update'


# CRM

get 'wkcrm/getActRelatedIds', :to => 'wkcrm#getActRelatedIds'

get 'wkcrm/getCrmUsers', to: 'wkcrm#getCrmUsers'


# For CRM Sales Quote

get 'wksalesquote', :to => 'wksalesquote#index'

get 'wksalesquote/new', :to => 'wksalesquote#new'

get 'wksalesquote/edit', :to => 'wksalesquote#edit'

get 'wksalesquote/:id/edit', :to => 'wksalesquote#edit'

post 'wksalesquote/update', :to => 'wksalesquote#update'

delete 'wksalesquote/:id', :to => 'wksalesquote#destroy'

get 'wksalesquote/invreport', :to => 'wksalesquote#invreport'

get 'wksalesquote/export', :to => 'wksalesquote#export'

# For Billing Invoice

get 'wkinvoice', :to => 'wkinvoice#index'

get 'wkinvoice/new', :to => 'wkinvoice#new'

get 'wkinvoice/edit', :to => 'wkinvoice#edit'

get 'wkinvoice/:id/edit', :to => 'wkinvoice#edit'

post 'wkinvoice/update', :to => 'wkinvoice#update'

delete 'wkinvoice/:id', :to => 'wkinvoice#destroy'

get 'wkinvoice/invoiceedit', :to => 'wkinvoice#invoiceedit'

get 'wkinvoice/getAccountProjIds', :to => 'wkinvoice#getAccountProjIds'

get 'wkinvoice/getQuantityDetails', to: 'wkinvoice#getQuantityDetails'

get 'wkinvoice/getUnbilledQtyDetails', to: 'wkinvoice#getUnbilledQtyDetails'

get 'wkinvoice/generateTimeEntries', to: 'wkinvoice#generateTimeEntries'

get 'wkinvoice/invoice_components', to: 'wkinvoice#invoice_components'

post 'wkinvoice/saveInvoiceComponents', to: 'wkinvoice#saveInvoiceComponents'

get 'wkinvoice/invreport', :to => 'wkinvoice#invreport'

get 'wkinvoice/getInvProj', :to => 'wkinvoice#getInvProj'

get 'wkinvoice/export', :to => 'wkinvoice#export'

get 'wkorderentity/get_product_tax', to: 'wkorderentity#get_product_tax'

get 'wkorderentity/get_project_tax', to: 'wkorderentity#get_project_tax'

get 'wkinvoice/getIssueDD', to: 'wkinvoice#getIssueDD'

get 'wksalesquote/getIssueDD', to: 'wksalesquote#getIssueDD'

get 'wkquote/getIssueDD', to: 'wkquote#getIssueDD'

get 'wkpurchaseorder/getIssueDD', to: 'wkpurchaseorder#getIssueDD'

get 'wksupplierinvoice/getIssueDD', to: 'wksupplierinvoice#getIssueDD'

get 'wkorderentity/checkQty', to: 'wkorderentity#checkQty'

get 'wkorderentity/getInvDetals', to: 'wkorderentity#getInvDetals'

# For Billing Payment

get 'wkpayment', :to => 'wkpayment#index'

get 'wkpayment/edit', :to => 'wkpayment#edit'

get 'wkpayment/:id/edit', :to => 'wkpayment#edit'

post 'wkpayment/update', :to => 'wkpayment#update'

delete 'wkpayment/:id', to: 'wkpayment#destroy'

get 'wkpaymententity/getBillableProjIds', :to => 'wkpaymententity#getBillableProjIds'

get 'wkpaymententity/showInvoices', :to => 'wkpaymententity#showInvoices'

# For Billing Contracts

get 'wkcontract', :to => 'wkcontract#index'

get 'wkcontract/edit', :to => 'wkcontract#edit'

get 'wkcontract/:id/edit', :to => 'wkcontract#edit'

post 'wkcontract/update', :to => 'wkcontract#update'

delete 'wkcontract/:id', :to => 'wkcontract#destroy'

# For Accounting Transaction

get 'wkgltransaction', :to => 'wkgltransaction#index'

get 'wkgltransaction/edit', :to => 'wkgltransaction#edit'

get 'wkgltransaction/:id/edit', :to => 'wkgltransaction#edit'

get 'wkgltransaction/update', :to => 'wkgltransaction#update'

delete 'wkgltransaction/:id', :to => 'wkgltransaction#destroy'

get 'wkgltransaction/graph', to: 'wkgltransaction#graph'

post 'wkgltransaction/update', to: 'wkgltransaction#update'

get 'wkgltransaction/export', :to => 'wkgltransaction#export'

# For Accounting Ledger

get 'wkledger', :to => 'wkledger#index'

get 'wkledger/edit', :to => 'wkledger#edit'

get 'wkledger/:id/edit', :to => 'wkledger#edit'

get 'wkledger/update', :to => 'wkledger#update'

delete 'wkledger/:id', :to => 'wkledger#destroy'

# For Purchasing RFQ

get 'wkrfq', :to => 'wkrfq#index'

post 'wkrfq/index', :to => 'wkrfq#index'

get 'wkrfq/edit', :to => 'wkrfq#edit'

get 'wkrfq/:id/edit', :to => 'wkrfq#edit'

post 'wkrfq/update', :to => 'wkrfq#update'

delete 'wkrfq/:id', :to => 'wkrfq#destroy'

# For Purchasing Quote

get 'wkquote', :to => 'wkquote#index'

get 'wkquote/new', :to => 'wkquote#new'

get 'wkquote/edit', :to => 'wkquote#edit'

get 'wkquote/:id/edit', :to => 'wkquote#edit'

post 'wkquote/update', :to => 'wkquote#update'

delete 'wkquote/:id', :to => 'wkquote#destroy'

get 'wkquote/invreport', :to => 'wkquote#invreport'

get 'wkquote/export', :to => 'wkquote#export'

# For Purchasing Purchase Order

get 'wkpurchaseorder', :to => 'wkpurchaseorder#index'

get 'wkpurchaseorder/new', :to => 'wkpurchaseorder#new'

get 'wkpurchaseorder/edit', :to => 'wkpurchaseorder#edit'

get 'wkpurchaseorder/:id/edit', :to => 'wkpurchaseorder#edit'

post 'wkpurchaseorder/update', :to => 'wkpurchaseorder#update'

delete 'wkpurchaseorder/:id', :to => 'wkpurchaseorder#destroy'

get 'wkpurchaseorder/invreport', :to => 'wkpurchaseorder#invreport'

get 'wkpurchaseorder/getRfqQuoteIds', :to => 'wkpurchaseorder#getRfqQuoteIds'

get 'wkpurchaseorder/export', :to => 'wkpurchaseorder#export'

# For Purchasing Supplier Invoice

get 'wksupplierinvoice', :to => 'wksupplierinvoice#index'

get 'wksupplierinvoice/new', :to => 'wksupplierinvoice#new'

get 'wksupplierinvoice/edit', :to => 'wksupplierinvoice#edit'

get 'wksupplierinvoice/:id/edit', :to => 'wksupplierinvoice#edit'

post 'wksupplierinvoice/update', :to => 'wksupplierinvoice#update'

delete 'wksupplierinvoice/:id', :to => 'wksupplierinvoice#destroy'

get 'wksupplierinvoice/invreport', :to => 'wksupplierinvoice#invreport'

get 'wksupplierinvoice/getRfqPoIds', :to => 'wksupplierinvoice#getRfqPoIds'

get 'wksupplierinvoice/export', :to => 'wksupplierinvoice#export'

# For Purchasing Supplier Payment

get 'wksupplierpayment', :to => 'wksupplierpayment#index'

get 'wksupplierpayment/edit', :to => 'wksupplierpayment#edit'

get 'wksupplierpayment/:id/edit', :to => 'wksupplierpayment#edit'

post 'wksupplierpayment/update', :to => 'wksupplierpayment#update'

delete 'wksupplierpayment/:id', to: 'wksupplierpayment#destroy'

# For Purchasing Supplier Account

get 'wksupplieraccount', :to => 'wksupplieraccount#index'

get 'wksupplieraccount/edit', :to => 'wksupplieraccount#edit'

get 'wksupplieraccount/:id/edit', :to => 'wksupplieraccount#edit'

post 'wksupplieraccount/update', :to => 'wksupplieraccount#update'

delete 'wksupplieraccount/:id', :to => 'wksupplieraccount#destroy'

# For Purchasing Supplier Contact

get 'wksuppliercontact', :to => 'wksuppliercontact#index'

get 'wksuppliercontact/edit', :to => 'wksuppliercontact#edit'

get 'wksuppliercontact/:id/edit', :to => 'wksuppliercontact#edit'

post 'wksuppliercontact/update', :to => 'wksuppliercontact#update'

delete 'wksuppliercontact/:id', :to => 'wksuppliercontact#destroy'

# For Inventory Product

get 'wkproduct', :to => 'wkproduct#index'

post 'wkproduct/index', :to => 'wkproduct#index'

get 'wkproduct/edit', :to => 'wkproduct#edit'

get 'wkproduct/:id/edit', :to => 'wkproduct#edit'

post 'wkproduct/update', :to => 'wkproduct#update'

delete 'wkproduct/:id', :to => 'wkproduct#destroy'

get 'wkproduct/category', :to => 'wkproduct#category'

get 'wkproduct/updateCategory', :to => 'wkproduct#updateCategory'

post 'wkproduct/updateCategory', :to => 'wkproduct#updateCategory'

# For Inventory Brand

get 'wkbrand', :to => 'wkbrand#index'

post 'wkbrand/index', :to => 'wkbrand#index'

get 'wkbrand/edit', :to => 'wkbrand#edit'

get 'wkbrand/:id/edit', :to => 'wkbrand#edit'

post 'wkbrand/update', :to => 'wkbrand#update'

delete 'wkbrand/:id', :to => 'wkbrand#destroy'

get 'wkbrand/edit_product_model', :to => 'wkbrand#edit_product_model'

get 'wkbrand/:id/edit_product_model', :to => 'wkbrand#edit_product_model'

post 'wkbrand/updateProductModel', :to => 'wkbrand#updateProductModel'

delete 'wkbrand/:id/destroyProductModel', :to => 'wkbrand#destroyProductModel'

# For Inventory Attributes

get 'wkattributegroup', :to => 'wkattributegroup#index'

post 'wkattributegroup/index', :to => 'wkattributegroup#index'

get 'wkattributegroup/edit', :to => 'wkattributegroup#edit'

get 'wkattributegroup/:id/edit', :to => 'wkattributegroup#edit'

post 'wkattributegroup/update', :to => 'wkattributegroup#update'

delete 'wkattributegroup/:id', :to => 'wkattributegroup#destroy'

get 'wkattributegroup/edit_product_attribute', :to => 'wkattributegroup#edit_product_attribute'

get 'wkattributegroup/:id/edit_product_attribute', :to => 'wkattributegroup#edit_product_attribute'

post 'wkattributegroup/updateProductAttribute', :to => 'wkattributegroup#updateProductAttribute'

delete 'wkattributegroup/:id/destroyProductAttribute', :to => 'wkattributegroup#destroyProductAttribute'

	# For Inventory Unit of Measurement

	get 'wkunitofmeasurement', :to => 'wkunitofmeasurement#index'

	get 'wkunitofmeasurement/update', :to => 'wkunitofmeasurement#update'

# For Inventory Product Item

get 'wkproductitem', :to => 'wkproductitem#index'

post 'wkproductitem/index', :to => 'wkproductitem#index'

get 'wkproductitem/edit', :to => 'wkproductitem#edit'

get 'wkproductitem/:id/edit', :to => 'wkproductitem#edit'

post 'wkproductitem/update', :to => 'wkproductitem#update'

delete 'wkproductitem/destroy', :to => 'wkproductitem#destroy'

get 'wkproductitem/transfer', :to => 'wkproductitem#transfer'

post 'wkproductitem/updateTransfer', :to => 'wkproductitem#updateTransfer'

get 'wkproductitem/:id/get_material_entries', to: 'wkproductitem#get_material_entries'

get 'wkproductitem/assemble_item', :to => 'wkproductitem#assemble_item'

get 'wkproductitem/getItemDetails', :to => 'wkproductitem#getItemDetails'

# For Inventory Receipt

get 'wkshipment', :to => 'wkshipment#index'

get 'wkshipment/new', :to => 'wkshipment#new'

get 'wkshipment/edit', :to => 'wkshipment#edit'

get 'wkshipment/:id/edit', :to => 'wkshipment#edit'

post 'wkshipment/update', :to => 'wkshipment#update'

delete 'wkshipment/:id', :to => 'wkshipment#destroy'

get 'wkshipment/populateProductItemDD', :to => 'wkshipment#populateProductItemDD'

get 'wkshipment/getSupplierInvoices', :to => 'wkshipment#getSupplierInvoices'

get 'wkshipment/getProductUOMID', to: 'wkshipment#getProductUOMID'

get 'wkshipment/checkQuantityAndSave', to: 'wkshipment#checkQuantityAndSave'

# For Inventory Delivery

get 'wkdelivery', to: 'wkdelivery#index'

get 'wkdelivery/edit', to: 'wkdelivery#edit'

get 'wkdelivery/:id/edit', to: 'wkdelivery#edit'

post 'wkdelivery/update', to: 'wkdelivery#update'

delete 'wkdelivery/:id', to: 'wkdelivery#destroy'

get 'wkdelivery/populateProductItemDD', to: 'wkdelivery#populateProductItemDD'

get 'wkdelivery/delivery_slip', to: 'wkdelivery#delivery_slip'

get 'wkdelivery/getInvoiceNos', to: 'wkdelivery#getInvoiceNos'

# For Inventory Assets

get 'wkasset', :to => 'wkasset#index'

post 'wkasset/index', :to => 'wkasset#index'

get 'wkasset/edit', :to => 'wkasset#edit'

get 'wkasset/:id/edit', :to => 'wkasset#edit'

post 'wkasset/update', :to => 'wkasset#update'

delete 'wkasset/destroy', :to => 'wkasset#destroy'

get 'wkasset/transfer', :to => 'wkasset#transfer'

post 'wkasset/updateTransfer', :to => 'wkasset#updateTransfer'

get 'wkasset/dispose_asset', to: 'wkasset#dispose_asset'

post 'wkasset/updateDisposedAsset', to: 'wkasset#updateDisposedAsset'

get 'wkasset/getProductAsset', :to => 'wkasset#getProductAsset'

get 'wkasset/:id/get_material_entries', to: 'wkasset#get_material_entries'

# For Inventory Depreciation

get 'wkassetdepreciation', :to => 'wkassetdepreciation#index'

post 'wkassetdepreciation/index', :to => 'wkassetdepreciation#index'

get 'wkassetdepreciation/new', :to => 'wkassetdepreciation#new'

get 'wkassetdepreciation/edit', :to => 'wkassetdepreciation#edit'

get 'wkassetdepreciation/:id/edit', :to => 'wkassetdepreciation#edit'

post 'wkassetdepreciation/update', :to => 'wkassetdepreciation#update'

delete 'wkassetdepreciation/:id', :to => 'wkassetdepreciation#destroy'


# For Survey

get 'wksurvey', :to => 'wksurvey#index'

get 'wksurvey/edit', :to => 'wksurvey#edit'

get 'wksurvey/:id/edit', :to => 'wksurvey#edit'

get 'wksurvey/:id/survey_response', :to => 'wksurvey#survey_response'

get 'wksurvey/:id/survey_result', :to => 'wksurvey#survey_result'

post 'wksurvey/save_survey', :to => 'wksurvey#save_survey'

post 'wksurvey/update_survey', :to => 'wksurvey#update_survey'

get 'projects/:project_id/wksurvey', to: 'wksurvey#index'

get 'wksurvey/user_survey', to: 'wksurvey#user_survey'

get 'wksurvey/:id/survey', :to => 'wksurvey#survey'

delete 'wksurvey/:id', :to => 'wksurvey#destroy'

get 'wksurvey/graph', :to => 'wksurvey#graph'

get 'wksurvey/find_survey_for', :to => 'wksurvey#find_survey_for'

get 'wksurvey/email_user', :to => 'wksurvey#email_user'

post 'wksurvey/update_status', :to => 'wksurvey#update_status'

post 'wksurvey/close_current_response', :to => 'wksurvey#close_current_response'

get 'wksurvey/print_survey_result', :to => 'wksurvey#print_survey_result'

get 'wksurvey/print_survey', :to => 'wksurvey#print_survey'

#For Report

get 'wkreport', :to => 'wkreport#index'

get 'wkreport/getGroupMembers', :to => 'wkreport#getGroupMembers'

get 'wkreport/getMembersbyGroup', :to => 'wkreport#getMembersbyGroup'

get 'wkreport/export', to: 'wkreport#export'

get 'wkreport/report', :to => 'wkreport#report'

get 'wkreport/get_reports', to: 'wkreport#get_reports'

get 'wkreport/getReportData', to: 'wkreport#getReportData'

# For Settings Enumeration

get 'wkcrmenumeration', :to => 'wkcrmenumeration#index'

get 'wkcrmenumeration/:id/edit', :to => 'wkcrmenumeration#edit'

get 'wkcrmenumeration/edit', :to => 'wkcrmenumeration#edit'

post 'wkcrmenumeration/update', :to => 'wkcrmenumeration#update'

delete 'wkcrmenumeration/:id', :to => 'wkcrmenumeration#destroy'

get 'wkcrmenumeration/getCrmEnumerations', to: 'wkcrmenumeration#getCrmEnumerations'

get 'wkcrmenumeration/getCrmEnumerations', :to => 'wkcrmenumeration#getCrmEnumerations'

# For Settings Location

get 'wklocation', :to => 'wklocation#index'

get 'wklocation/edit', :to => 'wklocation#edit'

get 'wklocation/:id/edit', :to => 'wklocation#edit'

post 'wklocation/update', :to => 'wklocation#update'

delete 'wklocation/:id', :to => 'wklocation#destroy'

get 'wklocation/getlocations', to: 'wklocation#getlocations'

get 'wklocation/getlocations', :to => 'wklocation#getlocations'

# For Settings Tax

get 'wktax', :to => 'wktax#index'

get 'wktax/edit', :to => 'wktax#edit'

get 'wktax/:id/edit', :to => 'wktax#edit'

post 'wktax/update', :to => 'wktax#update'

delete 'wktax/:id', :to => 'wktax#destroy'

# For Settings Exchange Rate

get 'wkexchangerate', :to => 'wkexchangerate#index'

get 'wkexchangerate/update', :to => 'wkexchangerate#update'

# For Settings Permission

get 'wkgrouppermission', :to => 'wkgrouppermission#index'

post 'wkgrouppermission/update', :to => 'wkgrouppermission#update'

# For Settings Notifications

get 'wknotification', :to => 'wknotification#index'

post 'wknotification/update', :to => 'wknotification#update'

get 'wknotification/updateUserNotification', to: 'wknotification#updateUserNotification'

post 'wknotification/markReadNotification', to: 'wknotification#markReadNotification'

# Others Routes
# Base Controller

get 'wkbase/getWkuserData', to: 'wkbase#getWkuserData'

get 'wkbase/updateWkuserData', to: 'wkbase#updateWkuserData'

get 'wkbase/updateWkuserVal', to: 'wkbase#updateWkuserVal'

get 'wkbase/my_account', to: 'wkbase#my_account'

get 'wkbase/get_groups', to: 'wkbase#get_groups'

post 'wkbase/updateClockInOut', :to => 'wkbase#updateClockInOut'

get 'wkbase/getUserPermissions', :to => 'wkbase#getUserPermissions'

get 'wkbase/saveIssueTimeLog', :to => 'wkbase#saveIssueTimeLog'

# For Documents

get 'wkdocument/new', :to => 'wkdocument#new'

post 'wkdocument/save', :to => 'wkdocument#save'

get 'wkdocument/download/:id', :to => 'wkdocument#download'

delete 'wkdocument/:id', :to => 'wkdocument#destroy'

get 'wkdocument/:id', :to => 'wkdocument#view'

get 'wkdocument/download/:id/:filename', :to => 'wkdocument#download', :id => /\d+/, :filename => /.*/, :as => 'download_location_attachment'

# Log Material

get 'wklogmaterial/index', to: 'wklogmaterial#index'

post 'wklogmaterial/create', to: 'wklogmaterial#create'

post 'wklogmaterial/update', to: 'wklogmaterial#update'

get 'wklogmaterial/loadSpentType', :to => 'wklogmaterial#loadSpentType'

get 'wklogmaterial/spent_log_edit', :to => 'wklogmaterial#spent_log_edit'

get 'wklogmaterial/modifyProductDD', :to => 'wklogmaterial#modifyProductDD'

get 'attachments/:object_type/:object_id/edit', :to => 'attachments#edit_all', :as => :wk_object_attachments_edit