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
395209a5
Commit
395209a5
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Reason to have button greyed is wrong
Conflicts: htdocs/compta/facture/prelevement.php
parent
16585665
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/compta/facture/prelevement.php
+8
-4
8 additions, 4 deletions
htdocs/compta/facture/prelevement.php
with
8 additions
and
4 deletions
htdocs/compta/facture/prelevement.php
+
8
−
4
View file @
395209a5
<?php
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2004-201
0
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-201
4
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
*
...
...
@@ -142,7 +142,7 @@ if ($object->id > 0)
/*
* Facture
*/
*/
print
'<table class="border" width="100%">'
;
$linkback
=
'<a href="'
.
DOL_URL_ROOT
.
'/compta/facture/list.php'
.
(
!
empty
(
$socid
)
?
'?socid='
.
$socid
:
''
)
.
'">'
.
$langs
->
trans
(
"BackToList"
)
.
'</a>'
;
...
...
@@ -450,7 +450,7 @@ if ($object->id > 0)
/*
* Buttons
*/
*/
print
"
\n
<div class=
\"
tabsAction
\"
>
\n
"
;
// Add a withdraw request
...
...
@@ -467,7 +467,11 @@ if ($object->id > 0)
}
else
{
if
(
$num
==
0
)
print
'<a class="butActionRefused" href="#" title="'
.
dol_escape_htmltag
(
$langs
->
trans
(
"AlreadyPayed"
))
.
'">'
.
$langs
->
trans
(
"MakeWithdrawRequest"
)
.
'</a>'
;
if
(
$num
==
0
)
{
if
(
$object
->
statut
>
0
)
print
'<a class="butActionRefused" href="#" title="'
.
dol_escape_htmltag
(
$langs
->
trans
(
"AlreadyPayed"
))
.
'">'
.
$langs
->
trans
(
"MakeWithdrawRequest"
)
.
'</a>'
;
else
print
'<a class="butActionRefused" href="#" title="'
.
dol_escape_htmltag
(
$langs
->
trans
(
"Draft"
))
.
'">'
.
$langs
->
trans
(
"MakeWithdrawRequest"
)
.
'</a>'
;
}
else
print
'<a class="butActionRefused" href="#" title="'
.
dol_escape_htmltag
(
$langs
->
trans
(
"RequestAlreadyDone"
))
.
'">'
.
$langs
->
trans
(
"MakeWithdrawRequest"
)
.
'</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