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
5b115ab7
Commit
5b115ab7
authored
14 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
Task #8618: Add supplier invoice free text
parent
6acf2595
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/admin/fournisseur.php
+25
-1
25 additions, 1 deletion
htdocs/admin/fournisseur.php
htdocs/includes/modules/supplier_invoice/pdf/pdf_canelle.modules.php
+1
-1
1 addition, 1 deletion
...udes/modules/supplier_invoice/pdf/pdf_canelle.modules.php
with
26 additions
and
2 deletions
htdocs/admin/fournisseur.php
+
25
−
1
View file @
5b115ab7
...
...
@@ -191,6 +191,10 @@ if ($_POST["action"] == 'addcat')
$fourn
->
CreateCategory
(
$user
,
$_POST
[
"cat"
]);
}
if
(
$_POST
[
"action"
]
==
'set_SUPPLIER_INVOICE_FREE_TEXT'
)
{
dolibarr_set_const
(
$db
,
"SUPPLIER_INVOICE_FREE_TEXT"
,
$_POST
[
"SUPPLIER_INVOICE_FREE_TEXT"
],
'chaine'
,
0
,
''
,
$conf
->
entity
);
}
/*
* View
*/
...
...
@@ -533,9 +537,29 @@ while (($file = readdir($handle))!==false)
print
"</tr>
\n
"
;
}
}
closedir
(
$handle
);
print
'</table><br/>'
;
print_titre
(
$langs
->
trans
(
"OtherOptions"
));
print
'<table class="noborder" width="100%">'
;
print
'<tr class="liste_titre">'
;
print
'<td>'
.
$langs
->
trans
(
"Parameter"
)
.
'</td>'
;
print
'<td align="center" width="60">'
.
$langs
->
trans
(
"Value"
)
.
'</td>'
;
print
'<td width="80"> </td>'
;
print
"</tr>
\n
"
;
print
'<form action="'
.
$_SERVER
[
"PHP_SELF"
]
.
'" method="post">'
;
print
'<input type="hidden" name="token" value="'
.
$_SESSION
[
'newtoken'
]
.
'">'
;
print
'<input type="hidden" name="action" value="set_SUPPLIER_INVOICE_FREE_TEXT">'
;
print
'<tr '
.
$bc
[
$var
]
.
'><td colspan="2">'
;
print
$langs
->
trans
(
"FreeLegalTextOnInvoices"
)
.
' ('
.
$langs
->
trans
(
"AddCRIfTooLong"
)
.
')<br>'
;
print
'<textarea name="SUPPLIER_INVOICE_FREE_TEXT" class="flat" cols="120">'
.
$conf
->
global
->
SUPPLIER_INVOICE_FREE_TEXT
.
'</textarea>'
;
print
'</td><td align="right">'
;
print
'<input type="submit" class="button" value="'
.
$langs
->
trans
(
"Modify"
)
.
'">'
;
print
"</td></tr>
\n
"
;
print
'</form>'
;
closedir
(
$handle
);
llxFooter
(
'$Date$ - $Revision$'
);
?>
This diff is collapsed.
Click to expand it.
htdocs/includes/modules/supplier_invoice/pdf/pdf_canelle.modules.php
+
1
−
1
View file @
5b115ab7
...
...
@@ -772,7 +772,7 @@ class pdf_canelle extends ModelePDFSuppliersInvoices
*/
function
_pagefoot
(
&
$pdf
,
$object
,
$outputlangs
)
{
return
pdf_pagefoot
(
$pdf
,
$outputlangs
,
'
FACTURE
SUPPLIER_FREE_TEXT'
,
$this
->
emetteur
,
$this
->
marge_basse
,
$this
->
marge_gauche
,
$this
->
page_hauteur
,
$object
);
return
pdf_pagefoot
(
$pdf
,
$outputlangs
,
'SUPPLIER_
INVOICE_
FREE_TEXT'
,
$this
->
emetteur
,
$this
->
marge_basse
,
$this
->
marge_gauche
,
$this
->
page_hauteur
,
$object
);
}
}
...
...
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