change: add filters to inventory list api
This commit is contained in:
@@ -4,11 +4,13 @@ from core.apps.wherehouse.models.inventory import Inventory
|
||||
|
||||
|
||||
@shared_task
|
||||
def create_inventory(wherehouse, quantity, product, unity, price):
|
||||
def create_inventory(wherehouse, quantity, product, unity, price, project_folder, project):
|
||||
Inventory.objects.create(
|
||||
wherehouse_id=wherehouse,
|
||||
quantity=quantity,
|
||||
product_id=product,
|
||||
unity_id=unity,
|
||||
price=price
|
||||
wherehouse_id=wherehouse,
|
||||
quantity=quantity,
|
||||
product_id=product,
|
||||
unity_id=unity,
|
||||
price=price,
|
||||
project_folder_id=project_folder,
|
||||
project_id=project,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user