Add custom labels printed before box and canister slips
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from datetime import date
|
||||
from typing import Optional
|
||||
from typing import List, Optional
|
||||
from ninja import Schema
|
||||
|
||||
|
||||
@@ -18,6 +18,11 @@ class ProductIn(Schema):
|
||||
requires_dates: bool = True
|
||||
|
||||
|
||||
class CustomLabel(Schema):
|
||||
weight: float
|
||||
count: int
|
||||
|
||||
|
||||
class OrderIn(Schema):
|
||||
product_id: int
|
||||
batch_number: str
|
||||
@@ -26,6 +31,7 @@ class OrderIn(Schema):
|
||||
total_weight: float
|
||||
canister_weight: float
|
||||
canisters_per_box: int
|
||||
custom_labels: Optional[List[CustomLabel]] = None
|
||||
|
||||
|
||||
class OrderOut(Schema):
|
||||
@@ -41,6 +47,7 @@ class OrderOut(Schema):
|
||||
canisters_per_box: int
|
||||
canister_count: int
|
||||
box_count: int
|
||||
custom_labels: List[CustomLabel]
|
||||
canister_pages: int
|
||||
box_pages: int
|
||||
status: str
|
||||
@@ -70,6 +77,7 @@ class OrderUpdateIn(Schema):
|
||||
status: Optional[str] = None
|
||||
canister_count: Optional[int] = None
|
||||
box_count: Optional[int] = None
|
||||
custom_labels: Optional[List[CustomLabel]] = None
|
||||
|
||||
|
||||
class FieldCalibration(Schema):
|
||||
|
||||
Reference in New Issue
Block a user