Hide stats + bugfix FDP
This commit is contained in:
parent
a2a2ad5d65
commit
3475282c3f
@ -186,7 +186,7 @@ class ApplicationController < ActionController::Base
|
||||
if current_admin.has_permission?("stats-commercial")
|
||||
|
||||
|
||||
set_big_menu :statistiques, "Stats", commercial_admin_dashboards_path, "bar-chart", "#6C5B7B"
|
||||
# set_big_menu :statistiques, "Stats", commercial_admin_dashboards_path, "bar-chart", "#6C5B7B"
|
||||
|
||||
|
||||
end
|
||||
|
@ -638,6 +638,7 @@ class PriceLineBlock < ApplicationRecord
|
||||
|
||||
|
||||
def default_tot_fdp_ht
|
||||
return 0.0 # Skip default FDP
|
||||
if self.p_customer_cat_id == 2
|
||||
if (self.tot_lines_ht + self.tot_discount_ht) >= 290.0
|
||||
0.0
|
||||
|
Reference in New Issue
Block a user