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
c3cf0342
Commit
c3cf0342
authored
Apr 8, 2006
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
New: Ajout colonne code fournisseur et code compta sur liste des fournisseurs
parent
6130d171
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/compta/clients.php
+5
-5
5 additions, 5 deletions
htdocs/compta/clients.php
htdocs/fourn/index.php
+19
-4
19 additions, 4 deletions
htdocs/fourn/index.php
with
24 additions
and
9 deletions
htdocs/compta/clients.php
+
5
−
5
View file @
c3cf0342
...
@@ -193,11 +193,11 @@ if ($result)
...
@@ -193,11 +193,11 @@ if ($result)
print
'<table class="liste" width="100%">'
;
print
'<table class="liste" width="100%">'
;
print
'<tr class="liste_titre">'
;
print
'<tr class="liste_titre">'
;
print_liste_field_titre
(
$langs
->
trans
(
"Company"
),
"clients.php"
,
"s.nom"
,
""
,
""
,
'valign="center"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Company"
),
$_SERVER
[
"PHP_SELF"
]
,
"s.nom"
,
""
,
""
,
'valign="center"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Town"
),
"clients.php"
,
"s.ville"
,
""
,
""
,
'valign="center"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Town"
),
$_SERVER
[
"PHP_SELF"
]
,
"s.ville"
,
""
,
""
,
'valign="center"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"CustomerCode"
),
"clients.php"
,
"s.code_client"
,
""
,
""
,
'align="left"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"CustomerCode"
),
$_SERVER
[
"PHP_SELF"
]
,
"s.code_client"
,
""
,
""
,
'align="left"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"AccountancyCode"
),
"clients.php"
,
"s.code_compta"
,
""
,
""
,
'align="left"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"AccountancyCode"
),
$_SERVER
[
"PHP_SELF"
]
,
"s.code_compta"
,
""
,
""
,
'align="left"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"DateCreation"
),
"clients.php"
,
"datec"
,
$addu
,
""
,
'align="center"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"DateCreation"
),
$_SERVER
[
"PHP_SELF"
]
,
"datec"
,
$addu
,
""
,
'align="center"'
,
$sortfield
);
print
'<td class="liste_titre"> </td>'
;
print
'<td class="liste_titre"> </td>'
;
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/index.php
+
19
−
4
View file @
c3cf0342
<?php
<?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-200
5
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-200
6
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
* Copyright (C) 2005-2006 Regis Houssin <regis.houssin@cap-networks.com>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
...
@@ -68,6 +68,7 @@ if (! $sortfield) $sortfield="nom";
...
@@ -68,6 +68,7 @@ if (! $sortfield) $sortfield="nom";
*/
*/
$sql
=
"SELECT s.idp, s.nom, s.ville,"
.
$db
->
pdate
(
"s.datec"
)
.
" as datec, "
.
$db
->
pdate
(
"s.datea"
)
.
" as datea, st.libelle as stcomm, s.prefix_comm"
;
$sql
=
"SELECT s.idp, s.nom, s.ville,"
.
$db
->
pdate
(
"s.datec"
)
.
" as datec, "
.
$db
->
pdate
(
"s.datea"
)
.
" as datea, st.libelle as stcomm, s.prefix_comm"
;
$sql
.
=
" , code_fournisseur, code_compta_fournisseur"
;
if
(
!
$user
->
rights
->
commercial
->
client
->
voir
&&
!
$socidp
)
$sql
.
=
", sc.fk_soc, sc.fk_user "
;
if
(
!
$user
->
rights
->
commercial
->
client
->
voir
&&
!
$socidp
)
$sql
.
=
", sc.fk_soc, sc.fk_user "
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"societe as s, "
.
MAIN_DB_PREFIX
.
"c_stcomm as st"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"societe as s, "
.
MAIN_DB_PREFIX
.
"c_stcomm as st"
;
if
(
!
$user
->
rights
->
commercial
->
client
->
voir
&&
!
$socidp
)
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
"societe_commerciaux as sc"
;
if
(
!
$user
->
rights
->
commercial
->
client
->
voir
&&
!
$socidp
)
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
"societe_commerciaux as sc"
;
...
@@ -99,9 +100,11 @@ if ($resql)
...
@@ -99,9 +100,11 @@ if ($resql)
print
'<table class="liste" width="100%">'
;
print
'<table class="liste" width="100%">'
;
print
'<tr class="liste_titre">'
;
print
'<tr class="liste_titre">'
;
print_liste_field_titre
(
$langs
->
trans
(
"Company"
),
"index.php"
,
"s.nom"
,
""
,
""
,
'valign="middle"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Company"
),
$_SERVER
[
"PHP_SELF"
],
"s.nom"
,
""
,
""
,
'valign="middle"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Town"
),
"index.php"
,
"s.ville"
,
""
,
""
,
'valign="middle"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"Town"
),
$_SERVER
[
"PHP_SELF"
],
"s.ville"
,
""
,
""
,
'valign="middle"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"DateCreation"
),
"index.php"
,
"datec"
,
""
,
""
,
'align="center"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"SupplierCode"
),
$_SERVER
[
"PHP_SELF"
],
"s.code_client"
,
""
,
""
,
'align="left"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"AccountancyCode"
),
$_SERVER
[
"PHP_SELF"
],
"s.code_compta"
,
""
,
""
,
'align="left"'
,
$sortfield
);
print_liste_field_titre
(
$langs
->
trans
(
"DateCreation"
),
$_SERVER
[
"PHP_SELF"
],
"datec"
,
""
,
""
,
'align="center"'
,
$sortfield
);
print
'<td class="liste_titre"> </td>'
;
print
'<td class="liste_titre"> </td>'
;
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
...
@@ -109,6 +112,16 @@ if ($resql)
...
@@ -109,6 +112,16 @@ if ($resql)
print
'<form action="index.php" method="GET">'
;
print
'<form action="index.php" method="GET">'
;
print
'<td class="liste_titre"><input type="text" class="flat" name="search_nom" value="'
.
$search_nom
.
'"></td>'
;
print
'<td class="liste_titre"><input type="text" class="flat" name="search_nom" value="'
.
$search_nom
.
'"></td>'
;
print
'<td class="liste_titre"><input type="text" class="flat" name="search_ville" value="'
.
$search_ville
.
'"></td>'
;
print
'<td class="liste_titre"><input type="text" class="flat" name="search_ville" value="'
.
$search_ville
.
'"></td>'
;
print
'<td align="left" class="liste_titre">'
;
print
'<input class="flat" type="text" size="10" name="search_code_fournisseur" value="'
.
$_GET
[
"search_code_fournisseur"
]
.
'">'
;
print
'</td>'
;
print
'<td align="left" class="liste_titre">'
;
print
'<input class="flat" type="text" size="10" name="search_compta" value="'
.
$_GET
[
"search_compta"
]
.
'">'
;
print
'</td>'
;
print
'<td class="liste_titre" colspan="2" align="right"><input class="liste_titre" type="image" src="'
.
DOL_URL_ROOT
.
'/theme/'
.
$conf
->
theme
.
'/img/search.png" alt="'
.
$langs
->
trans
(
"Search"
)
.
'"></td>'
;
print
'<td class="liste_titre" colspan="2" align="right"><input class="liste_titre" type="image" src="'
.
DOL_URL_ROOT
.
'/theme/'
.
$conf
->
theme
.
'/img/search.png" alt="'
.
$langs
->
trans
(
"Search"
)
.
'"></td>'
;
print
'</form>'
;
print
'</form>'
;
print
'</tr>'
;
print
'</tr>'
;
...
@@ -124,6 +137,8 @@ if ($resql)
...
@@ -124,6 +137,8 @@ if ($resql)
print
'<td><a href="fiche.php?socid='
.
$obj
->
idp
.
'">'
.
img_object
(
$langs
->
trans
(
"ShowSupplier"
),
"company"
)
.
'</a>'
;
print
'<td><a href="fiche.php?socid='
.
$obj
->
idp
.
'">'
.
img_object
(
$langs
->
trans
(
"ShowSupplier"
),
"company"
)
.
'</a>'
;
print
" <a href=
\"
fiche.php?socid=
$obj->idp
\"
>
$obj->nom
</a></td>
\n
"
;
print
" <a href=
\"
fiche.php?socid=
$obj->idp
\"
>
$obj->nom
</a></td>
\n
"
;
print
"<td>"
.
$obj
->
ville
.
"</td>
\n
"
;
print
"<td>"
.
$obj
->
ville
.
"</td>
\n
"
;
print
'<td align="left">'
.
$obj
->
code_fournisseur
.
' </td>'
;
print
'<td align="left">'
.
$obj
->
code_compta_fournisseur
.
' </td>'
;
print
'<td align="center">'
.
dolibarr_print_date
(
$obj
->
datec
)
.
'</td>'
;
print
'<td align="center">'
.
dolibarr_print_date
(
$obj
->
datec
)
.
'</td>'
;
print
"<td> </td>
\n
"
;
print
"<td> </td>
\n
"
;
print
"</tr>
\n
"
;
print
"</tr>
\n
"
;
...
...
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