orders: add order type

This commit is contained in:
behruz-dev
2025-10-31 16:15:36 +05:00
parent 01fac3110e
commit 5c845917df
6 changed files with 504 additions and 3415 deletions

View File

@@ -83,6 +83,7 @@ class MultipleOrderCreateSerializer(serializers.Serializer):
quantity=resource['quantity'],
date=common_date,
employee=self.context.get('user'),
type='order',
)
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}

View File

@@ -62,6 +62,7 @@ class PartyCreateSerializer(serializers.Serializer):
qqs_price=resource.get("qqs_price"),
total_price=resource.get("total_price"),
qqs=resource.get("qqs"),
type="party"
)
)
if resource.get("currency") == "usd":