mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-06 05:30:56 +00:00
Return from customer (#3120)
* Adds ability to return item into stock via the API * Remove old server-side form / view for returning stock from a customer * Add unit tests for new API endpoint
This commit is contained in:
@ -894,7 +894,8 @@ class StockItem(MetadataMixin, MPTTModel):
|
||||
# Return the reference to the stock item
|
||||
return item
|
||||
|
||||
def returnFromCustomer(self, location, user=None, **kwargs):
|
||||
@transaction.atomic
|
||||
def return_from_customer(self, location, user=None, **kwargs):
|
||||
"""Return stock item from customer, back into the specified location."""
|
||||
notes = kwargs.get('notes', '')
|
||||
|
||||
|
Reference in New Issue
Block a user