Skip to content
Snippets Groups Projects
Commit 0cb5981e authored by Jo Sama's avatar Jo Sama :scream:
Browse files

Post new batches without sending None-fields

Exclude unset values from beeing transfered when posting a new batch to
Setra. Setra does not accept fields set to None (at least period and
vouchertype).
parent ee325a54
No related branches found
No related tags found
1 merge request!21Post new batches without sending None-fields
Pipeline #90051 passed
......@@ -285,7 +285,7 @@ class SetraClient(object):
url = self.urls.post_new_batch()
headers = {'Content-Type': 'application/json'}
response = self.post(url,
data=batchdata.json(),
data=batchdata.json(exclude_unset=True),
headers=headers,
return_response=True)
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment