Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add expiry date to po line item receive #254

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion inventree/purchase_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
"""
Expand All @@ -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
}
Expand Down
Loading