mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-07-17 14:26:16 +00:00
export duplicate: add check onbirthdate
This commit is contained in:
parent
07aad4c7aa
commit
a79a17b39e
@ -88,6 +88,7 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat
|
|||||||
$builder->add('precision', NumberType::class, [
|
$builder->add('precision', NumberType::class, [
|
||||||
'label' => 'Duplicate similarity',
|
'label' => 'Duplicate similarity',
|
||||||
'data' => self::PRECISION_DEFAULT_VALUE,
|
'data' => self::PRECISION_DEFAULT_VALUE,
|
||||||
|
//'help' => 'Le degré de similarité mesure le nombre de caractères similaires entre la graphie des noms et prénoms. Un nombre faible indique que des graphies très différentes seront considérées comme similaires.',
|
||||||
'constraints' => [
|
'constraints' => [
|
||||||
new Range([
|
new Range([
|
||||||
'min' => 0.1,
|
'min' => 0.1,
|
||||||
@ -161,6 +162,7 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat
|
|||||||
OR (UNACCENT(LOWER(p.firstname)) = UNACCENT(LOWER(p2.lastname))
|
OR (UNACCENT(LOWER(p.firstname)) = UNACCENT(LOWER(p2.lastname))
|
||||||
AND UNACCENT(LOWER(p.lastname)) = UNACCENT(LOWER(p2.firstname)))
|
AND UNACCENT(LOWER(p.lastname)) = UNACCENT(LOWER(p2.firstname)))
|
||||||
)
|
)
|
||||||
|
AND p.birthdate = p2.birthdate
|
||||||
AND p.center_id = p2.center_id
|
AND p.center_id = p2.center_id
|
||||||
WHERE NOT EXISTS (
|
WHERE NOT EXISTS (
|
||||||
SELECT id
|
SELECT id
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
{{ form_errors(form.postCode) }}
|
{{ form_errors(form.postCode) }}
|
||||||
{{ form_row(form.validFrom) }}
|
{{ form_row(form.validFrom) }}
|
||||||
{{ form_errors(form.validFrom) }}
|
{{ form_errors(form.validFrom) }}
|
||||||
|
|
||||||
{% if form.customs is defined %}
|
{% if form.customs is defined %}
|
||||||
{{ form_widget(form.customs) }}
|
{{ form_widget(form.customs) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user