Fix: missing contract reference
This commit is contained in:
parent
96bd81d387
commit
761f841735
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user