Adds transfer_state in deliveryNote init

This commit is contained in:
emmdim 2020-03-10 15:51:16 +01:00
parent 98bd4dd897
commit 81618a9e1b

View file

@ -56,13 +56,15 @@ class Deliverynote(Thing):
def __init__(self, document_id: str, deposit: str, date,
supplier_email: str,
expected_devices: str) -> None:
expected_devices: str,
transfer_state: TransferState) -> None:
"""Initializes a delivery note
"""
super().__init__(id=uuid.uuid4(),
document_id=document_id, deposit=deposit, date=date,
supplier_email=supplier_email,
expected_devices=expected_devices)
expected_devices=expected_devices,
transfer_state=transfer_state)
@property
def type(self) -> str: