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
3b38e5a8
Commit
3b38e5a8
authored
9 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
FIX Withdraw request should not be possible if amount is negative.
parent
453c6264
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/compta/facture/prelevement.php
+22
-15
22 additions, 15 deletions
htdocs/compta/facture/prelevement.php
with
22 additions
and
15 deletions
htdocs/compta/facture/prelevement.php
+
22
−
15
View file @
3b38e5a8
<?php
<?php
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2004-201
5
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-201
6
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2010-2014 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2010-2014 Juanjo Menent <jmenent@2byte.es>
*
*
...
@@ -482,6 +482,8 @@ if ($object->id > 0)
...
@@ -482,6 +482,8 @@ if ($object->id > 0)
// Add a withdraw request
// Add a withdraw request
if
(
$object
->
statut
>
Facture
::
STATUS_DRAFT
&&
$object
->
paye
==
0
&&
$num
==
0
)
if
(
$object
->
statut
>
Facture
::
STATUS_DRAFT
&&
$object
->
paye
==
0
&&
$num
==
0
)
{
if
(
$resteapayer
>
0
)
{
{
if
(
$user
->
rights
->
prelevement
->
bons
->
creer
)
if
(
$user
->
rights
->
prelevement
->
bons
->
creer
)
{
{
...
@@ -499,6 +501,11 @@ if ($object->id > 0)
...
@@ -499,6 +501,11 @@ if ($object->id > 0)
}
}
}
}
else
else
{
print
'<a class="butActionRefused" href="#" title="'
.
dol_escape_htmltag
(
$langs
->
trans
(
"AmountMustBePositive"
))
.
'">'
.
$langs
->
trans
(
"MakeWithdrawRequest"
)
.
'</a>'
;
}
}
else
{
{
if
(
$num
==
0
)
if
(
$num
==
0
)
{
{
...
...
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