Hide stats + bugfix FDP

This commit is contained in:
Barnabé 2021-11-18 13:52:50 +01:00
parent a2a2ad5d65
commit 3475282c3f
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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