diff --git a/inventree/purchase_order.py b/inventree/purchase_order.py index ff59f4e..5746f1a 100644 --- a/inventree/purchase_order.py +++ b/inventree/purchase_order.py @@ -163,7 +163,7 @@ def getOrder(self): """ return PurchaseOrder(self._api, self.order) - def receive(self, quantity=None, status=10, location=None, batch_code='', serial_numbers=''): + def receive(self, quantity=None, status=10, location=None, expiry_date='', batch_code='', serial_numbers=''): """ Mark this line item as received. @@ -184,6 +184,7 @@ def receive(self, quantity=None, status=10, location=None, batch_code='', serial location: Location ID, or a StockLocation item If given, the following arguments are also sent as parameters: + expiry_date batch_code serial_numbers """ @@ -210,6 +211,7 @@ def receive(self, quantity=None, status=10, location=None, batch_code='', serial 'quantity': quantity, 'status': status, 'location': location_id, + 'expiry_date': expiry_date, 'batch_code': batch_code, 'serial_numbers': serial_numbers }