From 5b674b009bdadf69f7858b74973b2b42a6100adf Mon Sep 17 00:00:00 2001 From: Ian Brechin Date: Mon, 16 Apr 2018 13:27:58 +0100 Subject: [PATCH] Switch to using DTDS code for disbursements on NOMIS --- mtp_cashbook/apps/disbursements/tests/test_confirm.py | 2 +- mtp_cashbook/apps/disbursements/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mtp_cashbook/apps/disbursements/tests/test_confirm.py b/mtp_cashbook/apps/disbursements/tests/test_confirm.py index 08cf9d88..40bdc7b8 100644 --- a/mtp_cashbook/apps/disbursements/tests/test_confirm.py +++ b/mtp_cashbook/apps/disbursements/tests/test_confirm.py @@ -948,7 +948,7 @@ def test_confirm_disbursement(self): nomis_call = responses.calls[-3] nomis_request = json.loads(nomis_call.request.body.decode()) self.assertDictEqual(nomis_request, { - 'type': 'RELA', + 'type': 'DTDS', 'description': 'Sent to Katy Hicks', 'amount': 3000, 'client_transaction_id': 'd660', diff --git a/mtp_cashbook/apps/disbursements/views.py b/mtp_cashbook/apps/disbursements/views.py index e0afa3d9..a14042c8 100644 --- a/mtp_cashbook/apps/disbursements/views.py +++ b/mtp_cashbook/apps/disbursements/views.py @@ -484,7 +484,7 @@ def create_nomis_transaction(self, form): recipient_first_name=disbursement['recipient_first_name'], recipient_last_name=disbursement['recipient_last_name'], ).replace(' ', ' '), - transaction_type='RELA', + transaction_type='DTDS', retries=1 ) return nomis_response['id']