From 57e32e0bf12c7253a840b524beb099b2f1322207 Mon Sep 17 00:00:00 2001
From: Jo Sama <jo.sama@usit.uio.no>
Date: Thu, 27 May 2021 09:26:15 +0200
Subject: [PATCH] Make period optional for InputBatch

Validation rule 12 defines period as an optional field. If empty, it
will be populated by master data.
---
 setra_client/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setra_client/models.py b/setra_client/models.py
index 3b96a03..4f32b65 100644
--- a/setra_client/models.py
+++ b/setra_client/models.py
@@ -79,7 +79,7 @@ class InputBatch(BaseModel):
 
     client: str
     batchid: str
-    period: int
+    period: Optional[int]
     interface: str
     vouchertype: str
     vouchers: List[Voucher]
-- 
GitLab