dashboard

🔧 TS_NOOA_dashboard_statspe_CA_facture_mois

Fonction pour la création du CA par MOIS des factures prend en compte: - la date de creation attf100
function TS_NOOA_dashboard_statspe_CA_facture_mois(){ $userInfo = get_UserIdentification('', "", 169, ''); // Filtre de date if(isset($_POST['date_a_date']) && !empty($_POST['date_a_date'])) { // Un filtre de date est sélectionné. $tmp_value=explode(' - ',$_POST['date_a_date']); $date_debut = fwk7_date_store($tmp_value[0]); $date_fin = fwk7_date_store($tmp_value[1]); $filtreDate = " attf100 BETWEEN $date_debut AND $date_fin "; } else { $today = new DateTime('first day of January this year'); // ... (truncated)

↩️ Returns

(array)

🔧 TS_NOOA_dashboard_statspe_CA_facture_annee

Fonction pour la création du CA par ANNEE des factures prend en compte: - la date de validation attf100
function TS_NOOA_dashboard_statspe_CA_facture_annee(){ $userInfo = get_UserIdentification('', "", 169, ''); $today = new DateTime('first day of January this year'); $dateDuJour = $today->format('Ymd'); $todayAnneeProchaine = new DateTime('first day of December this year'); $dateAnneeProchaine = $todayAnneeProchaine->format('Ymd'); $filtreDate = " attf100 BETWEEN $dateDuJour AND $dateAnneeProchaine "; $wcFacture = [ "id_work = '".fwp7_param_template_wrk_get_number('', 169, 'wrk_validee')."' ", $filtreDate, // ... (truncated)

↩️ Returns

(array)

🔧 TS_NOOA_dashboard_statspe_CA_devis_mois

Fonction pour la création du CA par MOIS des devis prend en compte: - la date de création attf100
function TS_NOOA_dashboard_statspe_CA_devis_mois(){ global $list_user_franchise_temp; global $user; // Filtre de date if(isset($_POST['date_a_date']) && !empty($_POST['date_a_date'])) { // Un filtre de date est selectionné $tmp_value=explode(' - ',$_POST['date_a_date']); $date_debut = fwk7_date_store($tmp_value[0]); $date_fin = fwk7_date_store($tmp_value[1]); $filtreDate = " LENGTH(attf100) = 8 AND attf100 BETWEEN ".$date_debut." AND ".$date_fin." OR attf100 BETWEEN ".$date_debut.'0000'." AND ".$date_fin.'2400'." "; } else { // ... (truncated)

↩️ Returns

(array)

🔧 TS_NOOA_dashboard_statspe_CA_devis_annee

Fonction pour la création du CA par ANNEE des devis prend en compte: - la date de création du devis attf100
function TS_NOOA_dashboard_statspe_CA_devis_annee(){ global $list_user_franchise_temp; global $user; $today = new DateTime('first day of January this year'); $dateDuJour = $today->format('Ymd'); $todayAnneeProchaine = new DateTime('last day of December this year'); $dateAnneeProchaine = $todayAnneeProchaine->format('Ymd'); $wcDevis = [ 'att11 IN ('.$list_user_franchise_temp.')', "id_work = '".fwp7_param_template_wrk_get_number('', 165, 'devis_statut_signe')."' ", // ... (truncated)

↩️ Returns

(array)

🔧 TS_NOOA_dashboard_statspe_Devis_nbr_devis_cree_par_mois

Fonction pour la création du nombre de devis créés par MOIS prend en compte: - la date de création du devis attf100
function TS_NOOA_dashboard_statspe_Devis_nbr_devis_cree_par_mois(){ global $list_user_franchise_temp; global $user; // Filtre de date if(!empty($_POST['date_a_date'])) { // Un filtre de date est selectionné $tmp_value=explode(' - ',$_POST['date_a_date']); $date_debut = fwk7_date_store($tmp_value[0]); $date_fin = fwk7_date_store($tmp_value[1]); $filtreDate = "LENGTH(attf100) = 8 AND attf100 BETWEEN ".$date_debut." AND ".$date_fin." OR attf100 BETWEEN ".$date_debut.'0000'." AND ".$date_fin.'2400'." "; } else { // ... (truncated)

↩️ Returns

(array)

🔧 TS_NOOA_dashboard_statspe_Devis_evolution_taux_transformation

Fonction pour la création du taux de transformation sur l'année prend en compte: - la date de création du devis attf100
function TS_NOOA_dashboard_statspe_Devis_evolution_taux_transformation(){ global $list_user_franchise_temp; global $user; $today = new DateTime('first day of January this year'); $dateDebutAnnee = $today->format('Ymd'); $todayAnneeProchaine = new DateTime('last day of this year'); $dateFinAnnee = $todayAnneeProchaine->format('Ymd'); $wcDevis = [ 'att11 IN ('.$list_user_franchise_temp.')', "LENGTH(attf100) = 8 AND attf100 BETWEEN ".$dateDebutAnnee." AND ".$dateFinAnnee." OR attf100 BETWEEN ".$dateDebutAnnee.'0000'." AND ".$dateFinAnnee.'2400'." " // ... (truncated)

↩️ Returns

(array)