This commit is contained in:
2026-07-13 17:44:37 +08:00
parent 6b3188e693
commit 975fa1ffac
13 changed files with 0 additions and 68 deletions
@@ -0,0 +1,31 @@
from pydantic import BaseModel
from typing import Optional
from datetime import datetime
from decimal import Decimal
class StockMovementCreate(BaseModel):
product_id: int
product_sku: Optional[str] = None
warehouse_id: int
movement_type: str
quantity: Decimal
unit_price: Optional[Decimal] = None
remark: Optional[str] = None
class StockMovementResponse(BaseModel):
id: int
product_id: int
product_sku: Optional[str]
product_name: str
movement_type: str
quantity: Decimal
before_quantity: Decimal
after_quantity: Decimal
reference_no: Optional[str]
remark: Optional[str]
created_at: datetime
class Config:
from_attributes = True