add new features

This commit is contained in:
behruz-dev
2025-08-25 10:45:11 +05:00
parent a6d0266668
commit 74ecc581ae
9 changed files with 89 additions and 3 deletions

View File

@@ -0,0 +1,14 @@
from celery import shared_task
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
)