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
761f8417
Commit
761f8417
authored
13 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: missing contract reference
parent
96bd81d3
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/core/lib/pdf.lib.php
+12
-0
12 additions, 0 deletions
htdocs/core/lib/pdf.lib.php
htdocs/langs/en_US/contracts.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/en_US/contracts.lang
htdocs/langs/fr_FR/contracts.lang
+1
-0
1 addition, 0 deletions
htdocs/langs/fr_FR/contracts.lang
with
14 additions
and
0 deletions
htdocs/core/lib/pdf.lib.php
+
12
−
0
View file @
761f8417
...
@@ -1417,6 +1417,18 @@ function pdf_getLinkedObjects($object,$outputlangs,$hookmanager=false)
...
@@ -1417,6 +1417,18 @@ function pdf_getLinkedObjects($object,$outputlangs,$hookmanager=false)
$linkedobjects
[
$objecttype
][
'date_value'
]
=
dol_print_date
(
$objects
[
$i
]
->
date
,
'day'
,
''
,
$outputlangs
);
$linkedobjects
[
$objecttype
][
'date_value'
]
=
dol_print_date
(
$objects
[
$i
]
->
date
,
'day'
,
''
,
$outputlangs
);
}
}
}
}
else
if
(
$objecttype
==
'contrat'
)
{
$outputlangs
->
load
(
'contracts'
);
$num
=
count
(
$objects
);
for
(
$i
=
0
;
$i
<
$num
;
$i
++
)
{
$linkedobjects
[
$objecttype
][
'ref_title'
]
=
$outputlangs
->
transnoentities
(
"RefContract"
);
$linkedobjects
[
$objecttype
][
'ref_value'
]
=
$outputlangs
->
transnoentities
(
$objects
[
$i
]
->
ref
);
$linkedobjects
[
$objecttype
][
'date_title'
]
=
$outputlangs
->
transnoentities
(
"DateContract"
);
$linkedobjects
[
$objecttype
][
'date_value'
]
=
dol_print_date
(
$objects
[
$i
]
->
date_contrat
,
'day'
,
''
,
$outputlangs
);
}
}
}
}
// For add external linked objects
// For add external linked objects
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/en_US/contracts.lang
+
1
−
0
View file @
761f8417
...
@@ -39,6 +39,7 @@ ConfirmCloseService=Are you sure you want to close this service with date <b>%s<
...
@@ -39,6 +39,7 @@ ConfirmCloseService=Are you sure you want to close this service with date <b>%s<
ValidateAContract=Validate a contract
ValidateAContract=Validate a contract
ActivateService=Activate service
ActivateService=Activate service
ConfirmActivateService=Are you sure you want to activate this service with date <b>%s</b> ?
ConfirmActivateService=Are you sure you want to activate this service with date <b>%s</b> ?
RefContract=Contract reference
DateContract=Contract date
DateContract=Contract date
DateServiceActivate=Service activation date
DateServiceActivate=Service activation date
DateServiceUnactivate=Service deactivation date
DateServiceUnactivate=Service deactivation date
...
...
This diff is collapsed.
Click to expand it.
htdocs/langs/fr_FR/contracts.lang
+
1
−
0
View file @
761f8417
...
@@ -39,6 +39,7 @@ ConfirmCloseService=Êtes-vous sûr de vouloir fermer ce service à la date du <
...
@@ -39,6 +39,7 @@ ConfirmCloseService=Êtes-vous sûr de vouloir fermer ce service à la date du <
ValidateAContract=Valider un contrat
ValidateAContract=Valider un contrat
ActivateService=Activer le service
ActivateService=Activer le service
ConfirmActivateService=Êtes-vous sûr de vouloir activer ce service en date du <b>%s</b> ?
ConfirmActivateService=Êtes-vous sûr de vouloir activer ce service en date du <b>%s</b> ?
RefContract=Référence du contrat
DateContract=Date contrat
DateContract=Date contrat
DateServiceActivate=Date activation du service
DateServiceActivate=Date activation du service
DateServiceUnactivate=Date désactivation du service
DateServiceUnactivate=Date désactivation du service
...
...
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