feat: empty boxes, ids for shipping pdfs

This commit is contained in:
2024-12-17 20:19:16 +04:00
parent 144811ec87
commit a791f7edf8
3 changed files with 12 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ class ProductAndQuantitySchema(BaseSchema):
class BoxSchema(BaseSchema):
id: int
quantity: int
product: ProductSchema
product: Optional[ProductSchema]
pallet_id: Optional[int]
deal_id: Optional[int]
@@ -40,11 +40,11 @@ class UpdateShippingProductSchema(ProductAndQuantitySchema):
shipping_product_id: int
class CreateBoxInPalletSchema(ProductAndQuantitySchema):
class CreateBoxInPalletSchema(BaseSchema):
pallet_id: Optional[int]
class CreateBoxInDealSchema(ProductAndQuantitySchema):
class CreateBoxInDealSchema(BaseSchema):
deal_id: Optional[int]