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
03691475
Commit
03691475
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fixed: option CONTRACT_SUPPORT_PRODUCTS not correctly supported
parent
c0473f02
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/contrat/card.php
+9
-4
9 additions, 4 deletions
htdocs/contrat/card.php
htdocs/langs/en_US/contracts.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/en_US/contracts.lang
with
10 additions
and
4 deletions
htdocs/contrat/card.php
+
9
−
4
View file @
03691475
<?php
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-201
2
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-201
4
Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
* Copyright (C) 2010-2014 Juanjo Menent <jmenent@2byte.es>
...
...
@@ -273,7 +273,7 @@ if ($action == 'add' && $user->rights->contrat->creer)
{
$product_type
=
(
$lines
[
$i
]
->
product_type
?
$lines
[
$i
]
->
product_type
:
0
);
if
(
$product_type
==
1
)
{
//only services
// TODO Exclude also deee
if
(
$product_type
==
1
||
(
!
empty
(
$conf
->
global
->
CONTRACT_SUPPORT_PRODUCTS
)
&&
in_array
(
$product_type
,
array
(
0
,
1
))))
{
// TODO Exclude also deee
// service prédéfini
if
(
$lines
[
$i
]
->
fk_product
>
0
)
{
...
...
@@ -1020,13 +1020,18 @@ if ($action == 'create')
print
"</table>
\n
"
;
print
'<br><center><input type="submit" class="button" value="'
.
$langs
->
trans
(
"Create"
)
.
'"></center>'
;
if
(
is_object
(
$objectsrc
))
{
print
'<input type="hidden" name="origin" value="'
.
$objectsrc
->
element
.
'">'
;
print
'<input type="hidden" name="originid" value="'
.
$objectsrc
->
id
.
'">'
;
}
print
'<br><center><input type="submit" class="button" value="'
.
$langs
->
trans
(
"Create"
)
.
'"></center>'
;
if
(
empty
(
$conf
->
global
->
CONTRACT_SUPPORT_PRODUCTS
))
{
print
'<br>'
.
$langs
->
trans
(
"Note"
)
.
': '
.
$langs
->
trans
(
"OnlyLinesWithTypeServiceAreUsed"
);
}
}
print
"</form>
\n
"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/contracts.lang
+
1
−
0
View file @
03691475
...
...
@@ -91,6 +91,7 @@ ListOfServicesToExpire=List of Services to expire
NoteListOfYourExpiredServices=This list contains only services of contracts for third parties you are linked to as a sale representative.
StandardContractsTemplate=Standard contracts template
ContactNameAndSignature=For %s, name and signature:
OnlyLinesWithTypeServiceAreUsed=Only lines with type "Service" will be cloned.
##### Types de contacts #####
TypeContact_contrat_internal_SALESREPSIGN=Sales representative signing contract
...
...
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