Skip to content

Commit

Permalink
add expiry date to po line item receive (#254)
Browse files Browse the repository at this point in the history
jacobfelknor authored Jan 12, 2025
1 parent bc175d4 commit d508bc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inventree/purchase_order.py
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit d508bc6

Please sign in to comment.