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
ad2cae7a
Commit
ad2cae7a
authored
20 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Modif look
parent
fe3d987d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/commande/fiche.php
+44
-36
44 additions, 36 deletions
htdocs/commande/fiche.php
htdocs/compta/commande/fiche.php
+4
-2
4 additions, 2 deletions
htdocs/compta/commande/fiche.php
with
48 additions
and
38 deletions
htdocs/commande/fiche.php
+
44
−
36
View file @
ad2cae7a
...
...
@@ -423,13 +423,17 @@ else
$author
->
id
=
$commande
->
user_author_id
;
$author
->
fetch
();
$h
=
0
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
'/commande/fiche.php?id='
.
$commande
->
id
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"OrderCard"
);
$hselected
=
$h
;
$h
++
;
$head
[
0
][
0
]
=
DOL_URL_ROOT
.
'/commande/fiche.php?id='
.
$commande
->
id
;
$head
[
0
][
1
]
=
$langs
->
trans
(
"Order"
)
.
": "
.
$commande
->
ref
;
$h
=
1
;
$a
=
0
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
'/compta/commande/fiche.php?id='
.
$commande
->
id
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ComptaCard"
);
$h
++
;
dolibarr_fiche_head
(
$head
,
$
a
,
$soc
->
nom
);
dolibarr_fiche_head
(
$head
,
$
hselected
,
$soc
->
nom
.
" / "
.
$langs
->
trans
(
"Order"
)
.
" :
$commande->ref
"
);
/*
* Confirmation de la suppression de la commande
...
...
@@ -471,17 +475,33 @@ else
}
print
'<table class="border" width="100%">'
;
print
'<tr><td width="20%">'
.
$langs
->
trans
(
"Order"
)
.
"</td>"
;
print
'<td width="15%">'
.
$commande
->
ref
.
'</td>'
;
print
'<td width="15%" align="center">'
.
$commande
->
statuts
[
$commande
->
statut
]
.
'</td>'
;
print
'<td width="50%">'
;
if
(
$conf
->
projet
->
enabled
)
{
$langs
->
load
(
"projects"
);
if
(
$commande
->
projet_id
>
0
)
{
print
$langs
->
trans
(
"Project"
)
.
' : '
;
$projet
=
New
Project
(
$db
);
$projet
->
fetch
(
$commande
->
projet_id
);
print
'<a href="'
.
DOL_URL_ROOT
.
'/projet/fiche.php?id='
.
$commande
->
projet_id
.
'">'
.
$projet
->
title
.
'</a>'
;
}
else
{
print
$langs
->
trans
(
"Project"
)
.
' : '
;
print
'<a href="fiche.php?id='
.
$id
.
'&action=classer">Classer la commande</a>'
;
}
}
print
' </td></tr>'
;
print
"<tr><td>"
.
$langs
->
trans
(
"Customer"
)
.
"</td>"
;
print
'<td colspan="2">'
;
print
'<b><a href="'
.
DOL_URL_ROOT
.
'/comm/fiche.php?socid='
.
$soc
->
id
.
'">'
.
$soc
->
nom
.
'</a></b></td>'
;
print
'<td width="50%">'
;
print
$commande
->
statuts
[
$commande
->
statut
];
print
"</td></tr>"
;
print
'<tr><td>'
.
$langs
->
trans
(
"Date"
)
.
'</td>'
;
print
"<td colspan=
\"
2
\"
>"
.
strftime
(
"%A %d %B %Y"
,
$commande
->
date
)
.
"</td>
\n
"
;
print
'<td width="50%">'
.
$langs
->
trans
(
"Source"
)
.
' : '
.
$commande
->
sources
[
$commande
->
source
]
;
if
(
$commande
->
source
==
0
)
{
...
...
@@ -492,23 +512,11 @@ else
}
print
"</td></tr>"
;
print
'<tr><td>'
.
$langs
->
trans
(
"Author"
)
.
'</td><td colspan="2">'
.
$author
->
fullname
.
'</td>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Date"
)
.
'</td>'
;
print
"<td colspan=
\"
2
\"
>"
.
strftime
(
"%A %e %B %Y"
,
$commande
->
date
)
.
"</td>
\n
"
;
print
'<td>'
;
if
(
$conf
->
projet
->
enabled
)
{
print
$langs
->
trans
(
"Project"
)
.
' : '
;
if
(
$commande
->
projet_id
>
0
)
{
$projet
=
New
Project
(
$db
);
$projet
->
fetch
(
$commande
->
projet_id
);
print
'<a href="'
.
DOL_URL_ROOT
.
'/projet/fiche.php?id='
.
$commande
->
projet_id
.
'">'
.
$projet
->
title
.
'</a>'
;
}
else
{
print
'<a href="fiche.php?id='
.
$id
.
'&action=classer">Classer la commande</a>'
;
}
}
print
" </td></tr>"
;
print
'<td width="50%">'
;
print
$langs
->
trans
(
"Author"
)
.
' : '
.
$author
->
fullname
.
'</td></tr>'
;
// Ligne de 3 colonnes
print
'<tr><td>'
.
$langs
->
trans
(
"AmountHT"
)
.
'</td>'
;
...
...
@@ -840,14 +848,14 @@ else
print
'</td><td valign="top" width="50%">'
;
}
/*
*
*
*
Classe la commande dans un projet
*
TODO finir le look & feel trs moche
*/
if
(
$_GET
[
"action"
]
==
'classer'
)
{
print
'<
br><
form method="post" action="fiche.php?id='
.
$commande
->
id
.
'">'
;
print
'<form method="post" action="fiche.php?id='
.
$commande
->
id
.
'">'
;
print
'<input type="hidden" name="action" value="classin">'
;
print
'<table class="border">'
;
print
'<table class="border"
width="100%"
>'
;
print
'<tr><td>'
.
$langs
->
trans
(
"Project"
)
.
'</td><td>'
;
$proj
=
new
Project
(
$db
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/commande/fiche.php
+
4
−
2
View file @
ad2cae7a
...
...
@@ -100,8 +100,10 @@ if ($_GET["id"] > 0)
* Commande
*/
print
'<table class="border" width="100%">'
;
print
"<tr><td>"
.
$langs
->
trans
(
"Order"
)
.
"</td><td>"
.
$commande
->
ref
.
'</td>'
;
print
'<td align="center">'
.
$commande
->
statuts
[
$commande
->
statut
]
.
'</td><td>'
;
print
'<tr><td width="20%">'
.
$langs
->
trans
(
"Order"
)
.
"</td>"
;
print
'<td width="15%">'
.
$commande
->
ref
.
'</td>'
;
print
'<td width="15%" align="center">'
.
$commande
->
statuts
[
$commande
->
statut
]
.
'</td>'
;
print
'<td width="50%">'
;
if
(
$conf
->
projet
->
enabled
)
{
...
...
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