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
54af96b2
Commit
54af96b2
authored
9 years ago
by
Charles Benke
Browse files
Options
Downloads
Patches
Plain Diff
Add : BILL_NEVER_BE_CANCELED
In some case we don't want to allow cancel bill, forced to made an avoir
parent
9b1cfe47
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.php
+11
-4
11 additions, 4 deletions
htdocs/compta/facture.php
with
11 additions
and
4 deletions
htdocs/compta/facture.php
+
11
−
4
View file @
54af96b2
...
...
@@ -3953,6 +3953,7 @@ else if ($id > 0 || ! empty($ref))
}
// Classify 'closed not completely paid' (possible si validee et pas encore classee payee)
if
(
$object
->
statut
==
1
&&
$object
->
paye
==
0
&&
$resteapayer
>
0
&&
$user
->
rights
->
facture
->
paiement
)
{
if
(
$totalpaye
>
0
||
$totalcreditnotes
>
0
)
...
...
@@ -3962,13 +3963,19 @@ else if ($id > 0 || ! empty($ref))
}
else
{
if
(
$objectidnext
)
{
if
(
empty
(
$conf
->
global
->
BILL_NEVER_BE_CANCELED
))
{
if
(
$objectidnext
)
{
print
'<div class="inline-block divButAction"><span class="butActionRefused" title="'
.
$langs
->
trans
(
"DisabledBecauseReplacedInvoice"
)
.
'">'
.
$langs
->
trans
(
'ClassifyCanceled'
)
.
'</span></div>'
;
}
else
{
}
else
{
print
'<div class="inline-block divButAction"><a class="butAction" href="'
.
$_SERVER
[
'PHP_SELF'
]
.
'?facid='
.
$object
->
id
.
'&action=canceled">'
.
$langs
->
trans
(
'ClassifyCanceled'
)
.
'</a></div>'
;
}
}
}
}
// Clone
if
((
$object
->
type
==
Facture
::
TYPE_STANDARD
||
$object
->
type
==
Facture
::
TYPE_DEPOSIT
||
$object
->
type
==
Facture
::
TYPE_PROFORMA
)
&&
$user
->
rights
->
facture
->
creer
)
...
...
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