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
80e34c8e
Commit
80e34c8e
authored
12 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
New: Add option INVOICE_CAN_NEVER_BE_REMOVED
parent
ef6e06bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/compta/facture/class/facture.class.php
+3
-2
3 additions, 2 deletions
htdocs/compta/facture/class/facture.class.php
htdocs/theme/eldy/style.css.php
+1
-1
1 addition, 1 deletion
htdocs/theme/eldy/style.css.php
with
4 additions
and
3 deletions
htdocs/compta/facture/class/facture.class.php
+
3
−
2
View file @
80e34c8e
...
...
@@ -2590,7 +2590,7 @@ class Facture extends CommonInvoice
/**
* Return if an invoice can be deleted
* Rule is:
* If hidden option
FACTURE_CAN
_BE_REMOVED is on, we can
* If hidden option
INVOICE_CAN_ALWAYS
_BE_REMOVED is on, we can
* If invoice has a definitive ref, is last, without payment and not dipatched into accountancy -> yes end of rule
* If invoice is draft and ha a temporary ref -> yes
*
...
...
@@ -2600,7 +2600,8 @@ class Facture extends CommonInvoice
{
global
$conf
;
if
(
!
empty
(
$conf
->
global
->
FACTURE_CAN_BE_REMOVED
))
return
1
;
if
(
!
empty
(
$conf
->
global
->
INVOICE_CAN_ALWAYS_BE_REMOVED
))
return
1
;
if
(
!
empty
(
$conf
->
global
->
INVOICE_CAN_NEVER_BE_REMOVED
))
return
1
;
// on verifie si la facture est en numerotation provisoire
$facref
=
substr
(
$this
->
ref
,
1
,
4
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/theme/eldy/style.css.php
+
1
−
1
View file @
80e34c8e
...
...
@@ -356,7 +356,7 @@ td.showDragHandle {
/* ============================================================================== */
div.fiche {
margin-
<?php
print
$left
;
?>
:
<?php
print
(
GETPOST
(
"optioncss"
)
==
'print'
?
6
:
((
empty
(
$conf
->
global
->
MAIN_MENU_USE_JQUERY_LAYOUT
))
?
(
empty
(
$
conf
->
browser
->
phone
)
?
'20'
:
'4'
)
:
'24'
));
?>
px;
margin-
<?php
print
$left
;
?>
:
<?php
print
(
GETPOST
(
"optioncss"
)
==
'print'
?
6
:
((
empty
(
$conf
->
global
->
MAIN_MENU_USE_JQUERY_LAYOUT
))
?
(
(
empty
(
$
_SESSION
[
'dol_hide_leftmenu'
])
&&
!
GETPOST
(
'dol_hide_leftmenu'
))
?
'20'
:
'4'
)
:
'24'
));
?>
px;
margin-
<?php
print
$right
;
?>
:
<?php
print
(
GETPOST
(
"optioncss"
)
==
'print'
?
8
:
(
empty
(
$conf
->
browser
->
phone
)
?
'12'
:
'6'
));
?>
px;
}
...
...
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