Skip to content

Commit

Permalink
[#1808] Use long month name in maandspecificatie
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-sigma authored and alextreme committed Oct 13, 2023
1 parent 02ed64f commit 60b3b15
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions src/open_inwoner/soap/templates/ssd/maandspecificatie.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<Action xmlns="http://www.w3.org/2005/08/addressing">{{ soap_action }}</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">{{ message_id }}</MessageID>
<Action xmlns="http://www.w3.org/2005/08/addressing">{{ soap_action }}</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">{{ message_id }}</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing">https://rfor-2securet1.rfor.local:8443/ENSC/Intern/SSD/UitkeringsSpecificatieClient-v0600</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<ns3:Header xmlns="" xmlns:ns3="http://www.centric.nl/GWS/Header/v0201">
<RouteInformatie>
<Bron>
<Gemeentecode>{{ gemeentecode }}</Gemeentecode>
<ApplicatieNaam>{{ applicatie_naam }}</ApplicatieNaam>
<Gemeentecode>{{ gemeentecode }}</Gemeentecode>
<ApplicatieNaam>{{ applicatie_naam }}</ApplicatieNaam>
</Bron>
<Bestemming>
<Gemeentecode>{{ gemeentecode }}</Gemeentecode>
Expand All @@ -26,8 +26,8 @@
<ns4:UitkeringsSpecificatieInfo
xmlns:ns2="http://www.centric.nl/GWS/FWI/v0200"
xmlns:ns3="http://www.centric.nl/GWS/Header/v0300" xmlns:ns4="http://www.centric.nl/GWS/Diensten/UitkeringsSpecificatieClient/v0600">
<BurgerServiceNr>{{ bsn }}</BurgerServiceNr>
<Periodenummer>{{ period }}</Periodenummer>
<BurgerServiceNr>{{ bsn }}</BurgerServiceNr>
<Periodenummer>{{ period }}</Periodenummer>
</ns4:UitkeringsSpecificatieInfo>
</soap:Body>
</soap:Envelope>
2 changes: 1 addition & 1 deletion src/open_inwoner/ssd/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_monthly_report_dates() -> list[tuple[date, str]]:

choices = []
for report_date in dates:
formatted = django_date(report_date, "M Y")
formatted = django_date(report_date, "F Y")
choices.append((report_date.date(), formatted))

return choices
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/ssd/templatetags/ssd_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def format_date_month_name(date_str: str) -> str:
patched = date_str + "01"
dt = datetime.strptime(patched, "%Y%m%d")

return django_date(dt, "M Y").lower()
return django_date(dt, "F Y").lower()


@register.simple_tag
Expand Down
4 changes: 2 additions & 2 deletions src/open_inwoner/ssd/tests/test_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def test_get_monthly_choices(self, mock_solo):
self.assertEqual(date.month, 1)

date_repr = choices[0][1]
self.assertEqual(date_repr, "Jan 1985")
self.assertEqual(date_repr, "januari 1985")

@freeze_time("1985-01-25")
@patch("open_inwoner.ssd.forms.SSDConfig.get_solo")
Expand All @@ -50,7 +50,7 @@ def test_current_month_not_yet_available(self, m):
self.assertEqual(date.month, 12)

date_repr = choices[0][1]
self.assertEqual(date_repr, "Dec 1984")
self.assertEqual(date_repr, "december 1984")

@patch("open_inwoner.ssd.forms.SSDConfig.get_solo")
def test_monthly_reports_not_enabled(self, mock_solo):
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/ssd/tests/test_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def test_calculate_loon_zvw(self, m):
def test_format_date_month_name(self):
tests = [
("202305", "mei 2023"),
("202306", "jun 2023"),
("202306", "juni 2023"),
(None, ""),
("", ""),
]
Expand Down

0 comments on commit 60b3b15

Please sign in to comment.