Skip to content
Snippets Groups Projects
Commit 104b5ed7 authored by Andreas Ellewsen's avatar Andreas Ellewsen
Browse files

Make Batch.period optional

Validation rule 12 on Batches in SETRA sets the default value before
transfer to Unit4ERP(UBW) if it is not set. The attribute is thus not
required.
parent 061311c9
No related branches found
No related tags found
1 merge request!8Make Batch.period optional
Pipeline #57284 passed
...@@ -60,11 +60,13 @@ class Voucher(BaseModel): ...@@ -60,11 +60,13 @@ class Voucher(BaseModel):
class Batch(BaseModel): class Batch(BaseModel):
"""Model representing a batch, with a list of vouchers (and each voucher has a list of transactions)""" """
Model representing a batch, with a list of vouchers (and each
voucher has a list of transactions)
"""
client: str client: str
batchid: str batchid: str
period: str period: typing.Optional[str]
interface: str interface: str
vouchertype: typing.Optional[str] vouchertype: typing.Optional[str]
vouchers: typing.List[Voucher] vouchers: typing.List[Voucher]
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