add new api

This commit is contained in:
behruz-dev
2025-08-25 15:56:09 +05:00
parent 74ecc581ae
commit 30e0e3462f
15 changed files with 108 additions and 61 deletions

View File

@@ -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
)