Commit 69df6059 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Prise en charge contrats sans heures & + de précision % réal

parent 95a0453b
Loading
Loading
Loading
Loading
Loading
+3 −7
Original line number Diff line number Diff line
@@ -805,17 +805,13 @@ CREATE OR REPLACE PACKAGE BODY OSE_WORKFLOW AS
                    ''CONTRAT''                            etape_code,
                    intervenant_id                         intervenant_id,
                    structure_id                           structure_id,
                    c.heures                           objectif,
                    c.termine,
                    c.contrat_id,
                    CASE WHEN c.termine > 0.0
                        THEN c.heures
                        ELSE 0
                    END                                realisation
                    greatest(c.total_heures,1)             objectif,
                    c.termine * greatest(c.total_heures,1) realisation
                FROM
                    tbl_contrat c
                WHERE
                  ' || unicaen_tbl.MAKE_WHERE(param, VALUE, 'c') || '
                  AND c.volume_horaire_index = 0
            ) c';