feat: the print proof: Prova OK before Finalizado, and a proof the customer can ask for
Some checks failed
Some checks failed
Dropstar's items 15 and 16 (2026-10-21). - an order above 10 m prints 20 cm of proof first; the room checks it and marks "Prova OK", without stopping the order, and without that mark the order cannot reach Finalizado - at checkout, "Quero aprovar uma prova antes de imprimir", for any length: the paid order arrives marked "Aguardando contato" with what to do, and waits for the customer's word on the photo sent by WhatsApp - the card shows Prova / Prova OK, the panel gives the next step, and "Prova a conferir" is a board filter; the designer cannot mark it - the proof is not billed, as Dropstar leans; rounds and which part of the sheet wait for their answer Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@ from uuid import UUID, uuid4
|
||||
|
||||
from psycopg.types.json import Jsonb
|
||||
|
||||
from . import machines, mail
|
||||
from . import machines, mail, proof
|
||||
from .core.auth import audit
|
||||
from .core.models import PRODUCTION_VERSIONS
|
||||
from .printjobs import queue as queue_print_files
|
||||
@@ -98,6 +98,10 @@ def create_order(c, quote, payment):
|
||||
c.execute('''UPDATE dtf_local.uploads SET expires_at=GREATEST(expires_at, created_at+%s::interval)
|
||||
WHERE id=ANY(%s) AND purged_at IS NULL''', (ORDER_RETENTION, quote_uploads(approved)))
|
||||
queue_print_files(c, order['id'], len(approved['items']))
|
||||
if approved.get('proof'):
|
||||
# The customer asked for a proof: the order waits for their word.
|
||||
order = c.execute('''UPDATE dtf_local.orders SET contact_since=now(), contact_by='Site', contact_note=%s
|
||||
WHERE id=%s RETURNING *''', (proof.CUSTOMER_NOTE, order['id'])).fetchone()
|
||||
machines.route(c)
|
||||
if is_test(order):
|
||||
return order, True
|
||||
|
||||
Reference in New Issue
Block a user