open-formulieren / open-forms

Smart and dynamic forms
https://open-forms.readthedocs.io
Other
36 stars 26 forks source link

Co-sign data is not included in stuf-zds creeerzaak bericht #4762

Open olenitsj opened 1 week ago

olenitsj commented 1 week ago

Product versie / Product version

2.7.8

Customer reference

No response

Omschrijf het probleem / Describe the bug

Co-sign data is not included in stuf-zds creeerzaak bericht.

This does work with object api, but not with stuf-zds.

Stappen om te reproduceren / Steps to reproduce

  1. Fill in a form with co-sign and submit
  2. Log in with the second digid account and submit the form.
  3. See that stuf ZDS creerZaak bericht is being sent.
  4. See that the xml does not include any of the co-sign data, except an e-mail adres.

Verwacht gedrag / Expected behavior

Expected that the bsn and other cosign data is being sent in a xml node of zaakDMS standard.

Screen resolution

None

Device

None

OS

None

Browser

No response

olenitsj commented 1 week ago

@LaurensBurger terinfo

joeribekker commented 3 days ago

@olenitsj Please indicate where you want this to be added in the StUF-ZDS creeerZaak operation XML attributes

olenitsj commented 16 hours ago

@joeribekker, This would be our preference:


{% if co_signer %}
<ZKN:heeftBetrekkingOp StUF:entiteittype="ZAKOBJ" StUF:verwerkingssoort="T">
    <ZKN:gerelateerde>
        <ZKN:natuurlijkPersoon StUF:entiteittype="NPS" StUF:verwerkingssoort="T">
            <!-- BSN of the co-signer -->
            <BG:inp.bsn>{{ co_signer.bsn }}</BG:inp.bsn>
            <BG:authentiek StUF:metagegeven="true">J</BG:authentiek>

            <!-- Additional common data for co-signer -->
            {% if co_signer.geslachtsnaam %}<BG:geslachtsnaam>{{ co_signer.geslachtsnaam }}</BG:geslachtsnaam>{% endif %}
            {% if co_signer.voorvoegselGeslachtsnaam %}
                <BG:voorvoegselGeslachtsnaam>{{ co_signer.voorvoegselGeslachtsnaam }}</BG:voorvoegselGeslachtsnaam>
            {% else %}
                <BG:voorvoegselGeslachtsnaam xsi:nil="true" StUF:noValue="geenWaarde" />
            {% endif %}
            {% if co_signer.voorletters %}<BG:voorletters>{{ co_signer.voorletters }}</BG:voorletters>{% endif %}
            {% if co_signer.voornamen %}<BG:voornamen>{{ co_signer.voornamen }}</BG:voornamen>{% endif %}
            {% if co_signer.geslachtsaanduiding %}<BG:geslachtsaanduiding>{{ co_signer.geslachtsaanduiding }}</BG:geslachtsaanduiding>{% endif %}
            {% if co_signer.geboortedatum %}<BG:geboortedatum>{{ co_signer.geboortedatum }}</BG:geboortedatum>{% endif %}
        </ZKN:natuurlijkPersoon>
    </ZKN:gerelateerde>

    <!-- Description of the relation to the case, i.e., mede initator/cosign -->
    <ZKN:omschrijving>mede_initiator</ZKN:omschrijving>
</ZKN:heeftBetrekkingOp>
{% endif %}```