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
0c191244
Commit
0c191244
authored
17 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Qual: Mutualisation code redondant
parent
8f906b93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
htdocs/comm/fiche.php
+1
-3
1 addition, 3 deletions
htdocs/comm/fiche.php
htdocs/compta/fiche.php
+1
-3
1 addition, 3 deletions
htdocs/compta/fiche.php
htdocs/fourn/fiche.php
+3
-7
3 additions, 7 deletions
htdocs/fourn/fiche.php
htdocs/lib/company.lib.php
+14
-2
14 additions, 2 deletions
htdocs/lib/company.lib.php
with
19 additions
and
15 deletions
htdocs/comm/fiche.php
+
1
−
3
View file @
0c191244
...
...
@@ -31,7 +31,6 @@
require_once
(
"./pre.inc.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/lib/company.lib.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/actioncomm.class.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/contact.class.php"
);
if
(
$conf
->
facture
->
enabled
)
require_once
(
DOL_DOCUMENT_ROOT
.
"/facture.class.php"
);
if
(
$conf
->
propal
->
enabled
)
require_once
(
DOL_DOCUMENT_ROOT
.
"/propal.class.php"
);
...
...
@@ -46,7 +45,7 @@ if ($conf->fichinter->enabled) $langs->load("interventions");
$socid
=
isset
(
$_GET
[
"socid"
])
?
$_GET
[
"socid"
]
:
''
;
// S
�
curit
�
d'acc
�
s client et commerciaux
// S
e
curit
e
d'acc
e
s client et commerciaux
$socid
=
restrictedArea
(
$user
,
'societe'
,
$socid
);
$sortorder
=
$_GET
[
"sortorder"
];
...
...
@@ -129,7 +128,6 @@ if ($mode == 'search') {
llxHeader
(
''
,
$langs
->
trans
(
'CustomerCard'
));
$actionstatic
=
new
ActionComm
(
$db
);
$facturestatic
=
new
Facture
(
$db
);
$contactstatic
=
new
Contact
(
$db
);
$userstatic
=
new
User
(
$db
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/fiche.php
+
1
−
3
View file @
0c191244
<?php
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-200
7
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-200
8
Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -29,7 +29,6 @@
require
(
"./pre.inc.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/lib/company.lib.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/contact.class.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/actioncomm.class.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/facture.class.php"
);
$langs
->
load
(
"companies"
);
...
...
@@ -101,7 +100,6 @@ if ($mode == 'search')
llxHeader
();
$actionstatic
=
new
ActionComm
(
$db
);
$facturestatic
=
new
Facture
(
$db
);
$contactstatic
=
new
Contact
(
$db
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/fiche.php
+
3
−
7
View file @
0c191244
<?php
/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003
�
ric Seigne <erics@rycks.com>
* Copyright (C) 2004-200
7
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2003
E
ric Seigne <erics@rycks.com>
* Copyright (C) 2004-200
8
Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -18,20 +18,17 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/
/**
\file htdocs/fourn/fiche.php
\ingroup fournisseur, facture
\brief Page de fiche fournisseur
\version $Revision$
*/
require
(
'./pre.inc.php'
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/contact.class.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/lib/company.lib.php"
);
require_once
(
DOL_DOCUMENT_ROOT
.
"/actioncomm.class.php"
);
$user
->
getrights
();
...
...
@@ -42,7 +39,7 @@ $langs->load('orders');
$langs
->
load
(
'companies'
);
$langs
->
load
(
'commercial'
);
// S
�
curit
�
acc
�
s client
// S
e
curit
e
acc
e
s client
$socid
=
isset
(
$_GET
[
"socid"
])
?
$_GET
[
"socid"
]
:
''
;
if
(
$user
->
societe_id
>
0
)
{
...
...
@@ -75,7 +72,6 @@ if (!$user->rights->commercial->client->voir && $socid && !$user->societe_id > 0
* Mode fiche
*/
$societe
=
new
Fournisseur
(
$db
);
$actionstatic
=
new
ActionComm
(
$db
);
$contactstatic
=
new
Contact
(
$db
);
if
(
$societe
->
fetch
(
$socid
)
)
...
...
This diff is collapsed.
Click to expand it.
htdocs/lib/company.lib.php
+
14
−
2
View file @
0c191244
...
...
@@ -130,9 +130,15 @@ function societe_prepare_head($objsoc)
function
show_actions_todo
(
$conf
,
$langs
,
$db
,
$objsoc
)
{
global
$bc
;
if
(
$conf
->
agenda
->
enabled
)
{
print_titre
(
$langs
->
trans
(
"ActionsOnCompany"
));
require_once
(
DOL_DOCUMENT_ROOT
.
"/actioncomm.class.php"
);
$actionstatic
=
new
ActionComm
(
$db
);
$userstatic
=
new
User
(
$db
);
print_titre
(
$langs
->
trans
(
"ActionsOnCompany"
));
print
'<table width="100%" class="noborder">'
;
print
'<tr class="liste_titre">'
;
...
...
@@ -250,9 +256,15 @@ function show_actions_todo($conf,$langs,$db,$objsoc)
function
show_actions_done
(
$conf
,
$langs
,
$db
,
$objsoc
)
{
global
$bc
;
if
(
$conf
->
agenda
->
enabled
)
{
print
'<table class="noborder" width="100%">'
;
require_once
(
DOL_DOCUMENT_ROOT
.
"/actioncomm.class.php"
);
$actionstatic
=
new
ActionComm
(
$db
);
$userstatic
=
new
User
(
$db
);
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre">'
;
print
'<td colspan="12"><a href="'
.
DOL_URL_ROOT
.
'/comm/action/index.php?socid='
.
$objsoc
->
id
.
'&status=done">'
.
$langs
->
trans
(
"ActionsDoneShort"
)
.
'</a></td>'
;
print
'</tr>'
;
...
...
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