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
034c7bd2
Commit
034c7bd2
authored
18 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
92d3fd87
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/admin/facture.php
+27
-18
27 additions, 18 deletions
htdocs/admin/facture.php
with
27 additions
and
18 deletions
htdocs/admin/facture.php
+
27
−
18
View file @
034c7bd2
...
...
@@ -96,33 +96,30 @@ if ($_GET["action"] == 'setmod')
// \todo Verifier si module numerotation choisi peut etre activ
// par appel methode canBeActivated
if
(
dolibarr_set_const
(
$db
,
"FACTURE_ADDON"
,
$_GET
[
"value"
]))
{
// la constante qui a t lue en avant du nouveau set
// on passe donc par une variable pour avoir un affichage cohrent
$conf
->
global
->
FACTURE_ADDON
=
$_GET
[
"value"
];
}
dolibarr_set_const
(
$db
,
"FACTURE_ADDON"
,
$_GET
[
"value"
]);
}
if
(
$_POST
[
"action"
]
==
'setribchq'
)
{
if
(
dolibarr_set_const
(
$db
,
"FACTURE_RIB_NUMBER"
,
$_POST
[
"rib"
])
)
$conf
->
global
->
FACTURE_RIB_NUMBER
=
$_POST
[
"rib"
]
;
if
(
dolibarr_set_const
(
$db
,
"FACTURE_CHQ_NUMBER"
,
$_POST
[
"chq"
])
)
$conf
->
global
->
FACTURE_CHQ_NUMBER
=
$_POST
[
"chq"
]
;
dolibarr_set_const
(
$db
,
"FACTURE_RIB_NUMBER"
,
$_POST
[
"rib"
]);
dolibarr_set_const
(
$db
,
"FACTURE_CHQ_NUMBER"
,
$_POST
[
"chq"
]);
}
if
(
$_POST
[
"action"
]
==
'setforcedate'
)
{
dolibarr_set_const
(
$db
,
"FAC_FORCE_DATE_VALIDATION"
,
$_POST
[
"forcedate"
]);
Header
(
"Location: facture.php"
);
exit
;
}
if
(
$_POST
[
"action"
]
==
'set_disable_repeatable'
)
{
dolibarr_set_const
(
$db
,
"FACTURE_DISABLE_RECUR"
,
$_POST
[
"disable_repeatable"
]);
}
if
(
$_POST
[
"action"
]
==
'update'
||
$_POST
[
"action"
]
==
'add'
)
{
if
(
!
dolibarr_set_const
(
$db
,
$_POST
[
"constname"
],
$_POST
[
"constvalue"
],
$typeconst
[
$_POST
[
"consttype"
]],
0
,
isset
(
$_POST
[
"constnote"
])
?
$_POST
[
"constnote"
]
:
''
));
{
print
$db
->
error
();
dolibarr_print_
error
(
$db
);
}
}
...
...
@@ -130,7 +127,7 @@ if ($_GET["action"] == 'delete')
{
if
(
!
dolibarr_del_const
(
$db
,
$_GET
[
"rowid"
]));
{
print
$db
->
error
();
dolibarr_print_
error
(
$db
);
}
}
...
...
@@ -352,7 +349,7 @@ print_titre( "Mode de r
print
'<table class="noborder" width="100%">'
;
$var
=
True
;
print
'<form action="
facture.php
" method="post">'
;
print
'<form action="
'
.
$_SERVER
[
"PHP_SELF"
]
.
'
" method="post">'
;
print
'<input type="hidden" name="action" value="setribchq">'
;
print
'<tr class="liste_titre">'
;
print
'<td>Mode rglement proposer</td>'
;
...
...
@@ -446,15 +443,27 @@ print '<td align="center" width="60">'.$langs->trans("Value").'</td>';
print
'<td width="80"> </td>'
;
print
"</tr>
\n
"
;
// Force date validation
$var
=
false
;
print
'<form action="
facture.php
" method="post">'
;
print
'<form action="
'
.
$_SERVER
[
"PHP_SELF"
]
.
'
" method="post">'
;
print
'<input type="hidden" name="action" value="setforcedate">'
;
print
'<tr '
.
$bc
[
$var
]
.
'><td>'
;
echo
"Forcer la dfinition de la date des factures lors de la validation"
;
print
$langs
->
trans
(
"ForceInvoiceDate"
)
;
print
'</td><td width="60" align="center">'
;
$forcedate
=
(
defined
(
"FAC_FORCE_DATE_VALIDATION"
)
&&
FAC_FORCE_DATE_VALIDATION
)
?
1
:
0
;
print
$html
->
selectyesno
(
"forcedate"
,
$conf
->
global
->
FAC_FORCE_DATE_VALIDATION
,
1
);
print
'</td><td align="right">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'">'
;
print
"</td></tr>
\n
"
;
print
'</form>'
;
print
$html
->
selectyesno
(
"forcedate"
,
$forcedate
,
1
);
// Active facture rcurrentes
$var
=
false
;
print
'<form action="'
.
$_SERVER
[
"PHP_SELF"
]
.
'" method="post">'
;
print
'<input type="hidden" name="action" value="set_disable_repeatable">'
;
print
'<tr '
.
$bc
[
$var
]
.
'><td>'
;
print
$langs
->
trans
(
"DisableRepeatable"
);
print
'</td><td width="60" align="center">'
;
print
$html
->
selectyesno
(
"disable_repeatable"
,
$conf
->
global
->
FACTURE_DISABLE_RECUR
,
1
);
print
'</td><td align="right">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'">'
;
print
"</td></tr>
\n
"
;
...
...
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