Skip to content

Commit

Permalink
Fix: missing contract reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Jul 2, 2012
1 parent 8d0cafc commit 1d5db42
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions htdocs/core/lib/pdf.lib.php
Expand Up @@ -1417,6 +1417,18 @@ function pdf_getLinkedObjects($object,$outputlangs,$hookmanager=false)
$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
Expand Down
1 change: 1 addition & 0 deletions htdocs/langs/en_US/contracts.lang
Expand Up @@ -39,6 +39,7 @@ ConfirmCloseService=Are you sure you want to close this service with date <b>%s<
ValidateAContract=Validate a contract
ActivateService=Activate service
ConfirmActivateService=Are you sure you want to activate this service with date <b>%s</b> ?
RefContract=Contract reference
DateContract=Contract date
DateServiceActivate=Service activation date
DateServiceUnactivate=Service deactivation date
Expand Down
1 change: 1 addition & 0 deletions htdocs/langs/fr_FR/contracts.lang
Expand Up @@ -39,6 +39,7 @@ ConfirmCloseService=Êtes-vous sûr de vouloir fermer ce service à la date du <
ValidateAContract=Valider un contrat
ActivateService=Activer le service
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
DateServiceActivate=Date activation du service
DateServiceUnactivate=Date désactivation du service
Expand Down

0 comments on commit 1d5db42

Please sign in to comment.