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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
5ea37d78
Commit
5ea37d78
authored
15 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: limit prefix_com field
Fix: use invoice field entity in stat Fix: replaced invoice is already with statut 3
parent
de4cf814
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/compta/facture/stats/facturestats.class.php
+7
-7
7 additions, 7 deletions
htdocs/compta/facture/stats/facturestats.class.php
htdocs/compta/facture/stats/index.php
+1
-1
1 addition, 1 deletion
htdocs/compta/facture/stats/index.php
htdocs/soc.php
+3
-3
3 additions, 3 deletions
htdocs/soc.php
with
11 additions
and
11 deletions
htdocs/compta/facture/stats/facturestats.class.php
+
7
−
7
View file @
5ea37d78
...
...
@@ -58,20 +58,20 @@ class FactureStats extends Stats
if
(
$mode
==
'customer'
)
{
$object
=
new
Facture
(
$this
->
db
);
$this
->
from
=
MAIN_DB_PREFIX
.
$object
->
table_element
.
" as p, "
.
MAIN_DB_PREFIX
.
"societe as s"
;
$this
->
from
=
MAIN_DB_PREFIX
.
$object
->
table_element
;
$this
->
field
=
'total'
;
}
if
(
$mode
==
'supplier'
)
{
$object
=
new
FactureFournisseur
(
$this
->
db
);
$this
->
from
=
MAIN_DB_PREFIX
.
$object
->
table_element
.
" as p, "
.
MAIN_DB_PREFIX
.
"societe as s"
;
$this
->
from
=
MAIN_DB_PREFIX
.
$object
->
table_element
;
$this
->
field
=
'total_ht'
;
}
$this
->
socid
=
$socid
;
$this
->
where
=
" fk_statut > 0"
;
$this
->
where
.
=
" AND
p.fk_soc = s.rowid AND s.
entity = "
.
$conf
->
entity
;
if
(
$mode
==
'customer'
)
$this
->
where
.
=
" AND
(
fk_statut != 3
OR close_code != 'replaced')
"
;
// Exclude replaced invoices
$this
->
where
.
=
" AND entity = "
.
$conf
->
entity
;
if
(
$mode
==
'customer'
)
$this
->
where
.
=
" AND fk_statut != 3"
;
// Exclude replaced invoices
if
(
$this
->
socid
)
{
$this
->
where
.
=
" AND fk_soc = "
.
$this
->
socid
;
...
...
@@ -81,7 +81,7 @@ class FactureStats extends Stats
/**
* \brief Renvoie le nombre de facture par anne
* \brief Renvoie le nombre de facture par anne
e
* \return array Array of values
*/
function
getNbByYear
()
...
...
@@ -96,7 +96,7 @@ class FactureStats extends Stats
/**
* \brief Renvoie le nombre de facture par mois pour une anne donne
* \brief Renvoie le nombre de facture par mois pour une anne
e
donne
e
* \param year Year to scan
* \return array Array of values
*/
...
...
@@ -115,7 +115,7 @@ class FactureStats extends Stats
/**
* \brief Renvoie le montant de facture par mois pour une anne donne
* \brief Renvoie le montant de facture par mois pour une anne
e
donne
e
* \param year Year to scan
* \return array Array of values
*/
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/facture/stats/index.php
+
1
−
1
View file @
5ea37d78
...
...
@@ -30,7 +30,7 @@ require_once(DOL_DOCUMENT_ROOT."/core/dolgraph.class.php");
$WIDTH
=
500
;
$HEIGHT
=
200
;
// S
c
urit
a
ccs
c
lient
// S
e
curit
e
acc
e
s client
if
(
$user
->
societe_id
>
0
)
{
$action
=
''
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/soc.php
+
3
−
3
View file @
5ea37d78
...
...
@@ -397,7 +397,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
if
(
$soc
->
particulier
)
{
print
'<tr><td>'
.
$langs
->
trans
(
'LastName'
)
.
'</td><td><input type="text" size="30" name="nom" value="'
.
$soc
->
nom
.
'"></td>'
;
print
'<td>'
.
$langs
->
trans
(
'Prefix'
)
.
'</td><td><input type="text" size="5" name="prefix_comm" value="'
.
$soc
->
prefix_comm
.
'"></td></tr>'
;
print
'<td>'
.
$langs
->
trans
(
'Prefix'
)
.
'</td><td><input type="text" size="5"
maxlength="5"
name="prefix_comm" value="'
.
$soc
->
prefix_comm
.
'"></td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
'FirstName'
)
.
'</td><td><input type="text" size="30" name="prenom" value="'
.
$soc
->
firstname
.
'"></td>'
;
print
'<td colspan=2> </td></tr>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"UserTitle"
)
.
'</td><td>'
;
...
...
@@ -407,7 +407,7 @@ $_GET["action"] == 'create' || $_POST["action"] == 'create')
else
{
print
'<tr><td>'
.
$langs
->
trans
(
'Name'
)
.
'</td><td><input type="text" size="30" name="nom" value="'
.
$soc
->
nom
.
'"></td>'
;
print
'<td>'
.
$langs
->
trans
(
'Prefix'
)
.
'</td><td><input type="text" size="5" name="prefix_comm" value="'
.
$soc
->
prefix_comm
.
'"></td></tr>'
;
print
'<td>'
.
$langs
->
trans
(
'Prefix'
)
.
'</td><td><input type="text" size="5"
maxlength="5"
name="prefix_comm" value="'
.
$soc
->
prefix_comm
.
'"></td></tr>'
;
}
// Client / Prospect
...
...
@@ -735,7 +735,7 @@ elseif ($_GET["action"] == 'edit' || $_POST["action"] == 'edit')
}
else
{
print
'<input type="text" size="5" name="prefix_comm" value="'
.
$soc
->
prefix_comm
.
'">'
;
print
'<input type="text" size="5"
maxlength="5"
name="prefix_comm" value="'
.
$soc
->
prefix_comm
.
'">'
;
}
print
'</td>'
;
...
...
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