This commit is contained in:
behruz-dev
2025-10-28 17:03:04 +05:00
parent fe543fad5a
commit 9efc8aef40
3 changed files with 11 additions and 5 deletions

View File

@@ -85,9 +85,12 @@ class MultipleOrderCreateSerializer(serializers.Serializer):
employee=self.context.get('user'),
)
orders.append(order)
body = f"""{user.full_name} {order.project_folder.name} uchun {order.wherehouse.name} ombor ga {order.quantity} {order.unity.value} {order.product.name} ga buyurtma berdi. Buyurtma yetkazish sanasi {common_date} \n screen: /supply
body = f"""{user.full_name} {order.project_folder.name} uchun {order.wherehouse.name} ombor ga {order.quantity} {order.unity.value} {order.product.name} ga buyurtma berdi. Buyurtma yetkazish sanasi {common_date}
"""
notify_user(user=user, title="Ta'minot",body=body)
data = {
"screen": "/supply"
}
notify_user(user=user, title="Ta'minot",body=body, data=data)
created_orders = Order.objects.bulk_create(orders)
return created_orders