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
5994ee88
Commit
5994ee88
authored
20 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Mise aux normes CSS
parent
eaa9a9f5
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/fourn/facture/fiche.php
+21
-17
21 additions, 17 deletions
htdocs/fourn/facture/fiche.php
with
21 additions
and
17 deletions
htdocs/fourn/facture/fiche.php
+
21
−
17
View file @
5994ee88
<?php
/* Copyright (C) 2002-200
4
Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2002-200
5
Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Christophe Combelles <ccomb@free.fr>
*
...
...
@@ -35,7 +35,6 @@ require("./paiementfourn.class.php");
$langs
->
load
(
"bills"
);
$langs
->
load
(
"companies"
);
/*
* Scurit accs client
*/
...
...
@@ -211,6 +210,12 @@ if ($_GET["action"] == 'create' or $_GET["action"] == 'copy')
$sql
=
"SELECT s.nom, s.prefix_comm, s.idp"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"societe as s"
;
$sql
.
=
" WHERE s.fournisseur = 1"
;
if
(
$_GET
[
"socid"
]
>
0
)
{
$sql
.
=
" AND s.idp ="
.
$_GET
[
"socid"
];
}
$sql
.
=
" ORDER BY s.nom ASC"
;
if
(
$db
->
query
(
$sql
)
)
...
...
@@ -394,7 +399,6 @@ else
else
{
/*
* Fiche facture en mode edition
*
*/
$h
=0;
...
...
@@ -556,22 +560,22 @@ else
{
if
(
$_GET
[
"action"
]
==
"edit"
)
{
print
'<a class="
tab
Action" href="fiche.php?facid='
.
$fac
->
id
.
'">'
.
$langs
->
trans
(
"Cancel"
)
.
'</a>'
;
print
'<a class="
but
Action" href="fiche.php?facid='
.
$fac
->
id
.
'">'
.
$langs
->
trans
(
"Cancel"
)
.
'</a>'
;
}
else
{
print
'<a class="
tab
Action" href="fiche.php?facid='
.
$fac
->
id
.
'&action=edit">'
.
$langs
->
trans
(
'Edit'
)
.
'</a>'
;
print
'<a class="
but
Action" href="fiche.php?facid='
.
$fac
->
id
.
'&action=edit">'
.
$langs
->
trans
(
'Edit'
)
.
'</a>'
;
}
}
if
(
$fac
->
statut
==
1
&&
$fac
->
paye
==
0
&&
$user
->
societe_id
==
0
)
{
print
'<a class="
tab
Action" href="paiement.php?facid='
.
$fac
->
id
.
'&action=create">'
.
$langs
->
trans
(
"DoPaiement"
)
.
'</a>'
;
print
'<a class="
but
Action" href="paiement.php?facid='
.
$fac
->
id
.
'&action=create">'
.
$langs
->
trans
(
"DoPaiement"
)
.
'</a>'
;
}
if
(
$fac
->
statut
==
1
&&
price
(
$resteapayer
)
<=
0
&&
$fac
->
paye
==
0
&&
$user
->
societe_id
==
0
)
{
print
"<a class=
\"
tab
Action
\"
href=
\"
fiche.php?facid=
$fac->id
&action=payed
\"
>"
.
$langs
->
trans
(
'ClassifyPayed'
)
.
"</a>"
;
print
"<a class=
\"
but
Action
\"
href=
\"
fiche.php?facid=
$fac->id
&action=payed
\"
>"
.
$langs
->
trans
(
'ClassifyPayed'
)
.
"</a>"
;
}
if
(
$user
->
societe_id
==
0
)
...
...
@@ -579,11 +583,11 @@ else
if
(
$fac
->
statut
==
0
)
{
if
(
$_GET
[
"action"
]
<>
"edit"
)
print
"<a class=
\"
tab
Action
\"
href=
\"
fiche.php?facid=
$fac->id
&action=valid
\"
>"
.
$langs
->
trans
(
'Valid'
)
.
"</a>"
;
print
"<a class=
\"
but
Action
\"
href=
\"
fiche.php?facid=
$fac->id
&action=valid
\"
>"
.
$langs
->
trans
(
'Valid'
)
.
"</a>"
;
}
else
{
print
"<a class=
\"
tab
Action
\"
href=
\"
fiche.php?facid=
$fac->id
&action=copy&socid=
$fac->socidp
\"
>"
.
$langs
->
trans
(
'Copy'
)
.
"</a>"
;
print
"<a class=
\"
but
Action
\"
href=
\"
fiche.php?facid=
$fac->id
&action=copy&socid=
$fac->socidp
\"
>"
.
$langs
->
trans
(
'Copy'
)
.
"</a>"
;
}
}
...
...
@@ -591,7 +595,7 @@ else
{
if
(
$_GET
[
"action"
]
!=
"edit"
)
{
print
'<a class="butDelete" href="index.php?facid='
.
$fac
->
id
.
'&action=delete">'
.
$langs
->
trans
(
"Delete"
)
.
'</a>'
;
print
'<a class="but
Action
Delete" href="index.php?facid='
.
$fac
->
id
.
'&action=delete">'
.
$langs
->
trans
(
"Delete"
)
.
'</a>'
;
}
}
...
...
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