Skip to content

Conversation

@evarisk-charles
Copy link
Contributor

No description provided.


if (strpos($parameters['context'], 'contractcard') !== false) {
if ($action == 'builddoc' && strstr(GETPOST('model'), 'completioncertificatedocument_odt')) {
if ($action == 'builddoc' && strstr(GETPOST('model'), 'completioncertificatedocument_odt') || $action == 'builddoc' && strstr(GETPOST('model'), 'completioncertificatedocument')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

la tu peux normalement faire un meilleur preg_match

Comment on lines 131 to 135
$object = $moreParam['object'];

$contract = new Contrat($this->db);
$contract->fetch($object->fk_contrat);
$contract->fetch_optionals();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problème de logique l'object viens de contrat donc ici t'as un contrat

@evarisk-charles evarisk-charles force-pushed the add_realisation_certificate_pdf branch from 1dc7bed to 8c2ac4f Compare January 5, 2026 13:27
@nicolas-eoxia nicolas-eoxia force-pushed the add_realisation_certificate_pdf branch from 142eca0 to 60bbc8a Compare January 8, 2026 18:10
@nicolas-eoxia nicolas-eoxia merged commit 33d0fce into Evarisk:develop Jan 8, 2026
1 check was pending
@nicolas-eoxia nicolas-eoxia deleted the add_realisation_certificate_pdf branch January 8, 2026 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 Estimated resolution time - 240 mins - 4h Enhancement New feature or request ODT ODT Feature

Development

Successfully merging this pull request may close these issues.

Créer le certificat de réalisation en PDF

2 participants