Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
c6e28ee7
Commit
c6e28ee7
authored
19 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Suppression des sorties ecran
parent
a320dbb6
Branches
main
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/telephonie/script/graph-statistiques-ca.php
+8
-9
8 additions, 9 deletions
htdocs/telephonie/script/graph-statistiques-ca.php
with
8 additions
and
9 deletions
htdocs/telephonie/script/graph-statistiques-ca.php
+
8
−
9
View file @
c6e28ee7
...
@@ -140,14 +140,14 @@ else
...
@@ -140,14 +140,14 @@ else
print
$db
->
error
();
print
$db
->
error
();
}
}
$file
=
$img_root
.
"/factures/ca_mensuel.png"
;
$file
=
$img_root
.
"/factures/ca_mensuel.png"
;
print
"Graph
$file
\n
"
;
if
(
$verbose
)
print
"Graph
$file
\n
"
;
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
->
titre
=
"Chiffre d'affaire par mois en euros HT"
;
$graph
->
titre
=
"Chiffre d'affaire par mois en euros HT"
;
$graph
->
width
=
440
;
$graph
->
width
=
440
;
$graph
->
GraphDraw
(
$file
,
$cout_vente
,
$short_labels
);
$graph
->
GraphDraw
(
$file
,
$cout_vente
,
$short_labels
);
$file
=
$img_root
.
"/factures/facture_moyenne.png"
;
$file
=
$img_root
.
"/factures/facture_moyenne.png"
;
print
"Graph
$file
\n
"
;
if
(
$verbose
)
print
"Graph
$file
\n
"
;
$graph
=
new
GraphBar
(
$db
,
$file
,
$labels
);
$graph
=
new
GraphBar
(
$db
,
$file
,
$labels
);
$graph
->
titre
=
"Facture moyenne"
;
$graph
->
titre
=
"Facture moyenne"
;
$graph
->
barcolor
=
"blue"
;
$graph
->
barcolor
=
"blue"
;
...
@@ -155,14 +155,14 @@ $graph->width = 440;
...
@@ -155,14 +155,14 @@ $graph->width = 440;
$graph
->
GraphDraw
(
$file
,
$cout_vente_moyen
,
$short_labels
);
$graph
->
GraphDraw
(
$file
,
$cout_vente_moyen
,
$short_labels
);
$file
=
$img_root
.
"/factures/gain_mensuel.png"
;
$file
=
$img_root
.
"/factures/gain_mensuel.png"
;
print
"Graph
$file
\n
"
;
if
(
$verbose
)
print
"Graph
$file
\n
"
;
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
->
titre
=
"Gain par mois en euros HT"
;
$graph
->
titre
=
"Gain par mois en euros HT"
;
$graph
->
width
=
440
;
$graph
->
width
=
440
;
$graph
->
GraphDraw
(
$file
,
$gain
,
$short_labels
);
$graph
->
GraphDraw
(
$file
,
$gain
,
$short_labels
);
$file
=
$img_root
.
"/factures/gain_moyen.png"
;
$file
=
$img_root
.
"/factures/gain_moyen.png"
;
print
"Graph
$file
\n
"
;
if
(
$verbose
)
print
"Graph
$file
\n
"
;
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
->
titre
=
"Gain moyen par facture par mois"
;
$graph
->
titre
=
"Gain moyen par facture par mois"
;
$graph
->
width
=
440
;
$graph
->
width
=
440
;
...
@@ -170,7 +170,7 @@ $graph->barcolor = "blue";
...
@@ -170,7 +170,7 @@ $graph->barcolor = "blue";
$graph
->
GraphDraw
(
$file
,
$gain_moyen
,
$short_labels
);
$graph
->
GraphDraw
(
$file
,
$gain_moyen
,
$short_labels
);
$file
=
$img_root
.
"/factures/nb_facture.png"
;
$file
=
$img_root
.
"/factures/nb_facture.png"
;
print
"Graph
$file
\n
"
;
if
(
$verbose
)
print
"Graph
$file
\n
"
;
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
=
new
GraphBar
(
$db
,
$file
);
$graph
->
titre
=
"Nb de facture mois"
;
$graph
->
titre
=
"Nb de facture mois"
;
$graph
->
width
=
440
;
$graph
->
width
=
440
;
...
@@ -276,7 +276,6 @@ else
...
@@ -276,7 +276,6 @@ else
print
$db
->
error
();
print
$db
->
error
();
}
}
$i
=
0
;
$i
=
0
;
foreach
(
$labels
as
$labl
)
foreach
(
$labels
as
$labl
)
{
{
...
@@ -288,8 +287,8 @@ foreach ($labels as $labl)
...
@@ -288,8 +287,8 @@ foreach ($labels as $labl)
}
}
$file
=
$img_root
.
"
/
factures/ca_mensuel_preleve.png"
;
$file
=
$img_root
.
"factures/ca_mensuel_preleve.png"
;
print
"Graph
$file
\n
"
;
$graph
=
new
GraphBarAccumul
(
$db
,
$file
);
$graph
=
new
GraphBarAccumul
(
$db
,
$file
);
$graph
->
titre
=
"Chiffre d'affaire par mthode de rglement"
;
$graph
->
titre
=
"Chiffre d'affaire par mthode de rglement"
;
$graph
->
width
=
640
;
$graph
->
width
=
640
;
...
@@ -298,7 +297,7 @@ $graph->barcolor = "yellow";
...
@@ -298,7 +297,7 @@ $graph->barcolor = "yellow";
$xdatas
[
0
]
=
array
(
$cout_vente_prelev
,
$cout_vente_autre
);
$xdatas
[
0
]
=
array
(
$cout_vente_prelev
,
$cout_vente_autre
);
$xdatas
[
1
]
=
array
(
$cout_achat
);
$xdatas
[
1
]
=
array
(
$cout_achat
);
print_r
(
$xdatas
);
$graph
->
legend
[
0
][
0
]
=
"Factures prleves"
;
$graph
->
legend
[
0
][
0
]
=
"Factures prleves"
;
$graph
->
legend
[
0
][
1
]
=
"Factures non-prleves"
;
$graph
->
legend
[
0
][
1
]
=
"Factures non-prleves"
;
$graph
->
legend
[
1
][
0
]
=
"Cot fournisseur"
;
$graph
->
legend
[
1
][
0
]
=
"Cot fournisseur"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment