Skip to content

Commit d508bc6

Browse files
authored
add expiry date to po line item receive (#254)
1 parent bc175d4 commit d508bc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inventree/purchase_order.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def getOrder(self):
163163
"""
164164
return PurchaseOrder(self._api, self.order)
165165

166-
def receive(self, quantity=None, status=10, location=None, batch_code='', serial_numbers=''):
166+
def receive(self, quantity=None, status=10, location=None, expiry_date='', batch_code='', serial_numbers=''):
167167
"""
168168
Mark this line item as received.
169169
@@ -184,6 +184,7 @@ def receive(self, quantity=None, status=10, location=None, batch_code='', serial
184184
location: Location ID, or a StockLocation item
185185
186186
If given, the following arguments are also sent as parameters:
187+
expiry_date
187188
batch_code
188189
serial_numbers
189190
"""
@@ -210,6 +211,7 @@ def receive(self, quantity=None, status=10, location=None, batch_code='', serial
210211
'quantity': quantity,
211212
'status': status,
212213
'location': location_id,
214+
'expiry_date': expiry_date,
213215
'batch_code': batch_code,
214216
'serial_numbers': serial_numbers
215217
}

0 commit comments

Comments
 (0)