feat: 8 mm of clear film between the copies and sheets of a ready sheet, billed (Marcus, 2026-11-26)
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 7m43s
Build and deploy / Secret scan and release gate (push) Successful in 8s
Build and deploy / Publish images (push) Successful in 1m23s

The Site stacked a ready sheet's copies with nothing between them (#81's were
0,3 mm apart). Now 8 mm separates each copy and each sheet from the next, and
the metres include it, as Marcus confirmed. A new cart without the gap is
refused with the reason; a quote made before is still reviewed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-26 12:53:11 -03:00
parent 2fcec0b809
commit 8ba30e057c
7 changed files with 79 additions and 6 deletions

View File

@@ -24,9 +24,11 @@ TOO_MANY = 'Este item tem mais de 200 arquivos. Divida em dois itens.'
def item_with(uploads):
"""One ready-sheet item: one source per upload, stacked in a row."""
"""One ready-sheet item: one source per upload, stacked in a row, 8 mm
apart (models.SHEET_GAP_CM)."""
count = len(uploads)
height = count * 0.3
step = 0.25 + 0.8
height = round(count * step - 0.8, 4)
return {
'mode': 'file', 'metres': round(height / 100, 4), 'grade': 100, 'uploads': uploads,
'production': {
@@ -35,7 +37,7 @@ def item_with(uploads):
'copies': 1, 'rotation_degrees': 0, 'mirrored': False,
'measurement': 'file'} for uid in uploads],
'placements': [{'source_index': index, 'copy_index': 0, 'x_cm': 0,
'y_cm': round(index * 0.3, 4), 'width_cm': 0.5, 'length_cm': 0.25,
'y_cm': round(index * step, 4), 'width_cm': 0.5, 'length_cm': 0.25,
'rotation_degrees': 0, 'mirrored': False} for index in range(count)]},
'quality_status': 'ok', 'quality_acknowledged': False, 'residue_accepted': 0}