feat: a pasted list in Montar, with the reference printed under each stamp and the skipped lines in the report (Rodada 5, C4)
One line per item, code size quantity reference. Lines with errors are listed with the line and the reason and mounted only after "Montar sem essas N linhas". A reference is drawn 3 mm high right under the stamp, with 1 cm to the next piece on that side; the list is always Interno and the Prumo report names the skipped lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -405,6 +405,15 @@ class QuoteRequest(StrictModel):
|
||||
raise ValueError('The delivery address CEP must be the CEP freight was quoted for')
|
||||
return self
|
||||
|
||||
class SkippedLine(StrictModel):
|
||||
line: int = Field(ge=1, le=10000, strict=True)
|
||||
text: str = Field(max_length=200)
|
||||
reason: str = Field(max_length=200)
|
||||
|
||||
class MontadorBatch(StrictModel):
|
||||
lines: int = Field(ge=0, le=1000, strict=True)
|
||||
skipped: list[SkippedLine] = Field(default_factory=list, max_length=1000)
|
||||
|
||||
class MontadorOrder(StrictModel):
|
||||
"""What the montador sends (fronts 7a.3 and 7a.4): Interno or Venda, loose
|
||||
artwork only; the server prices and approves it as a quote. An Interno
|
||||
@@ -421,6 +430,8 @@ class MontadorOrder(StrictModel):
|
||||
# A Venda with "Envio": the chosen freight service and the full address.
|
||||
freight: Freight | None = None
|
||||
destination: Destination | None = None
|
||||
# The pasted list this order came from: the valid lines and the skipped ones.
|
||||
batch: MontadorBatch | None = None
|
||||
|
||||
@model_validator(mode='after')
|
||||
def order_kind(self):
|
||||
|
||||
Reference in New Issue
Block a user