Commit ad23a12d authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files
parent 8d52ace9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -7,6 +7,9 @@
            <generator strategy="SEQUENCE"/>
            <sequence-generator sequence-name="TYPE_INTERVENTION_STATU_ID_SEQ" allocation-size="1"/>
        </id>
        <unique-constraints>
            <unique-constraint name="TYPE_INTERVENTION_STATUT_UN" columns="TYPE_INTERVENTION_ID,STATUT_ID,HISTO_DESTRUCTION"/>
        </unique-constraints>
        <field name="tauxHETDService" type="float" column="TAUX_HETD_SERVICE" nullable="true"/>
        <field name="tauxHETDComplementaire" type="float" column="TAUX_HETD_COMPLEMENTAIRE" nullable="true"/>
        <many-to-one field="annee" target-entity="Application\Entity\Db\Annee">
+1 −1
Original line number Diff line number Diff line
@@ -107,7 +107,7 @@ class TypeInterventionStatutSaisieForm extends AbstractForm
                    new \Laminas\Validator\Callback([
                        'messages' => [\Laminas\Validator\Callback::INVALID_VALUE => '%value% doit être >= 0'],
                        'callback' => function ($value) {
                            return (StringFromFloat::run($value) >= 0.0 ? true : false);
                            return (FloatFromString::run($value) >= 0.0 ? true : false);
                        }]),
                ],
            ],