feat: barcode printing
This commit is contained in:
@ -4,7 +4,7 @@ from pydantic import field_validator
|
||||
|
||||
from modules.fulfillment_base.models import ProductBarcode
|
||||
from modules.fulfillment_base.schemas.barcode_template import BarcodeTemplateSchema
|
||||
from schemas.base import BaseSchema, BaseResponse, PaginationInfoSchema
|
||||
from schemas.base import BaseSchema, BaseResponse, PaginationInfoSchema, BasePdfResponse
|
||||
|
||||
|
||||
# region Entity
|
||||
@ -69,6 +69,12 @@ class UpdateProductRequest(BaseSchema):
|
||||
entity: UpdateProductSchema
|
||||
|
||||
|
||||
class GetProductBarcodePdfRequest(BaseSchema):
|
||||
quantity: int
|
||||
product_id: int
|
||||
barcode: str
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
# region Response
|
||||
@ -91,4 +97,8 @@ class DeleteProductResponse(BaseResponse):
|
||||
pass
|
||||
|
||||
|
||||
class GetProductBarcodePdfResponse(BasePdfResponse):
|
||||
pass
|
||||
|
||||
|
||||
# endregion
|
||||
|
||||
Reference in New Issue
Block a user