add new api
This commit is contained in:
@@ -6,9 +6,9 @@ from core.apps.wherehouse.models.inventory import Inventory
|
||||
@shared_task
|
||||
def create_inventory(wherehouse, quantity, product, unity, price):
|
||||
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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user