|
@@ -47,8 +47,8 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
|
sub_nav.dom_attributes = { class: 'dropdown-menu pull-left' }
|
|
sub_nav.dom_attributes = { class: 'dropdown-menu pull-left' }
|
|
|
sub_nav.item :list_customers, 'Lista de clientes', customers_path
|
|
sub_nav.item :list_customers, 'Lista de clientes', customers_path
|
|
|
sub_nav.item :divider_after_list_customers, '#', divider: true
|
|
sub_nav.item :divider_after_list_customers, '#', divider: true
|
|
|
- sub_nav.item :debtor_customers, 'Clientes deudores', debtors_path if (can? :debtors, Customer)
|
|
|
|
|
- sub_nav.item :special_prices, 'Descuentos especiales por cliente', new_special_price_path if (can? :create, SpecialPrice)
|
|
|
|
|
|
|
+ sub_nav.item :debtor_customers, 'Clientes deudores', debtors_path if can? :debtors, Customer
|
|
|
|
|
+ sub_nav.item :special_prices, 'Descuentos especiales por cliente', new_special_price_path if can? :create, SpecialPrice
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
# productos
|
|
# productos
|
|
@@ -62,9 +62,9 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
|
sub_nav.item :list_categories, 'Lista de líneas de producto', categories_path
|
|
sub_nav.item :list_categories, 'Lista de líneas de producto', categories_path
|
|
|
sub_nav.item :divider_before_products, '#', divider: true
|
|
sub_nav.item :divider_before_products, '#', divider: true
|
|
|
end
|
|
end
|
|
|
- sub_nav.item :list_products, 'Lista de productos', products_path if (can? :index, Product)
|
|
|
|
|
- sub_nav.item :stock_by_pointsale, 'Existencias', stock_by_pointsale_path if (can? :read, AvailableProduct)
|
|
|
|
|
- sub_nav.item :list_waste_of_products, 'Lista de mermas de productos', product_wastes_path if (can? :read, ProductWaste)
|
|
|
|
|
|
|
+ sub_nav.item :list_products, 'Lista de productos', products_path if can? :index, Product
|
|
|
|
|
+ sub_nav.item :stock_by_pointsale, 'Existencias', stock_by_pointsale_path if can? :read, AvailableProduct
|
|
|
|
|
+ sub_nav.item :list_waste_of_products, 'Lista de mermas de productos', product_wastes_path if can? :read, ProductWaste
|
|
|
if can? :read, Purchase
|
|
if can? :read, Purchase
|
|
|
sub_nav.item :divider_before_purchases, '#', divider: true
|
|
sub_nav.item :divider_before_purchases, '#', divider: true
|
|
|
sub_nav.item :list_products, 'Lista de compras', purchases_path
|
|
sub_nav.item :list_products, 'Lista de compras', purchases_path
|
|
@@ -73,7 +73,7 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
|
sub_nav.item :divider_before_purchases, '#', divider: true
|
|
sub_nav.item :divider_before_purchases, '#', divider: true
|
|
|
sub_nav.item :list_suppliers, 'Lista de proveedores', suppliers_path
|
|
sub_nav.item :list_suppliers, 'Lista de proveedores', suppliers_path
|
|
|
end
|
|
end
|
|
|
- if (can? :product_track, Product)
|
|
|
|
|
|
|
+ if can? :product_track, Product
|
|
|
sub_nav.item :divider_before_purchases, '#', divider: true
|
|
sub_nav.item :divider_before_purchases, '#', divider: true
|
|
|
sub_nav.item :product_track, 'Seguimiento de productos', product_track_path
|
|
sub_nav.item :product_track, 'Seguimiento de productos', product_track_path
|
|
|
end
|
|
end
|
|
@@ -85,11 +85,11 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
|
sub_nav.item :list_pointsales, 'Lista de puntos de venta', pointsales_path
|
|
sub_nav.item :list_pointsales, 'Lista de puntos de venta', pointsales_path
|
|
|
sub_nav.item :divider_before_pointsales, '#', divider: true
|
|
sub_nav.item :divider_before_pointsales, '#', divider: true
|
|
|
end
|
|
end
|
|
|
- sub_nav.item :list_cash_registers, 'Lista de cajas', cash_registers_path if (can? :index, CashRegister)
|
|
|
|
|
- sub_nav.item :list_cash_outs, 'Lista de cortes de caja', cash_outs_path if (can? :read, CashOut)
|
|
|
|
|
|
|
+ sub_nav.item :list_cash_registers, 'Lista de cajas', cash_registers_path if can? :index, CashRegister
|
|
|
|
|
+ sub_nav.item :list_cash_outs, 'Lista de cortes de caja', cash_outs_path if can? :read, CashOut
|
|
|
sub_nav.item :divider_before_pointsales, '#', divider: true
|
|
sub_nav.item :divider_before_pointsales, '#', divider: true
|
|
|
- sub_nav.item :list_promotions, 'Promociones', promotions_path if (can? :read, Promotion)
|
|
|
|
|
- if (can? :read, Seller)
|
|
|
|
|
|
|
+ sub_nav.item :list_promotions, 'Promociones', promotions_path if can? :read, Promotion
|
|
|
|
|
+ if can? :read, Seller
|
|
|
sub_nav.item :divider_before_sellers, '#', divider: true
|
|
sub_nav.item :divider_before_sellers, '#', divider: true
|
|
|
sub_nav.item :list_sellers, 'Lista de vendedores', sellers_path
|
|
sub_nav.item :list_sellers, 'Lista de vendedores', sellers_path
|
|
|
end
|
|
end
|
|
@@ -135,10 +135,12 @@ SimpleNavigation::Configuration.run do |navigation|
|
|
|
primary.item :reports, { icon: "fa fa-bar-chart", text: "Reportes" }, '#', class: 'menu-dropdown classic-menu-dropdown' do |sub_nav|
|
|
primary.item :reports, { icon: "fa fa-bar-chart", text: "Reportes" }, '#', class: 'menu-dropdown classic-menu-dropdown' do |sub_nav|
|
|
|
sub_nav.dom_attributes = { class: 'dropdown-menu pull-left' }
|
|
sub_nav.dom_attributes = { class: 'dropdown-menu pull-left' }
|
|
|
sub_nav.item :sales_per_month, 'Ventas por mes', sales_per_month_report_path
|
|
sub_nav.item :sales_per_month, 'Ventas por mes', sales_per_month_report_path
|
|
|
- sub_nav.item :divider_after_month_sales, '#', divider: true
|
|
|
|
|
|
|
+ sub_nav.item :divider_after_sales_report, '#', divider: true
|
|
|
|
|
+ sub_nav.item :purchases_per_month, 'Compras por mes', purchases_per_month_path
|
|
|
|
|
+ sub_nav.item :divider_after_purchases_report, '#', divider: true
|
|
|
sub_nav.item :minmax_report, 'Mínimos y Máximos', min_max_path
|
|
sub_nav.item :minmax_report, 'Mínimos y Máximos', min_max_path
|
|
|
sub_nav.item :divider_after_minmax_report, '#', divider: true
|
|
sub_nav.item :divider_after_minmax_report, '#', divider: true
|
|
|
- sub_nav.item :purchases_per_month, 'Compras por mes', purchases_per_month_path
|
|
|
|
|
|
|
+ sub_nav.item :utilities_report, 'Utilidades', utilities_report_path
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|
|
|
# soporte
|
|
# soporte
|