feat: the art grade becomes configurable, off by default (front 8.5)
Gestão sets in the Site tab below which grade the designer is warned and below which the designer treatment is required (only while it is offered). The decision is stored with the approved quote, so a later change never rewrites old orders; the card shows 'Nota N: conferir a arte', the Site forces the treatment box with the reason. With no rule nothing changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -644,3 +644,11 @@ CREATE TABLE IF NOT EXISTS dtf_local.coupons (
|
||||
created_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS coupons_live_code ON dtf_local.coupons(code) WHERE deleted_at IS NULL;
|
||||
|
||||
-- Front 8.5: what the art grade decides, set in the Kanban's Site tab. No row
|
||||
-- means no rule, and nothing changes; each action has at most one threshold.
|
||||
CREATE TABLE IF NOT EXISTS dtf_local.grade_rules (
|
||||
action text PRIMARY KEY CHECK (action IN ('aviso','tratamento')),
|
||||
below integer NOT NULL CHECK (below BETWEEN 1 AND 100),
|
||||
updated_by text NOT NULL, updated_at timestamptz NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user