feat: products and prices from the database, edited in the Kanban's Site tab (front 8.1)
Gestão and the administrators switch each product on and off and set its price from a start date; a price that has started is history and cannot change, a scheduled one can be cancelled. The Site and the server read the current price; with no row the code's prices and TREATMENT_CENTS still apply, so nothing changes until someone sets one. A switched-off product disappears from the Site and new quotes with it are refused. Approved quotes and paid orders keep their price. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -639,6 +639,25 @@ label.fopt{cursor:pointer;user-select:none}
|
||||
.siteVideoField input,.siteVideoField select{max-width:240px;min-height:38px;color:var(--tx);background:var(--sf);border:1px solid var(--ln2);border-radius:8px;padding:6px}
|
||||
.siteVideoToggle{display:flex;align-items:center;gap:7px;min-height:38px;font-size:13px}
|
||||
.siteVideoError{width:100%;margin:0;color:var(--bad);font-size:12px}
|
||||
/* Site (front 8): what the Site sells, its prices and their history. */
|
||||
#tab-site .siteSwitch{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:550;cursor:pointer}
|
||||
#tab-site .siteSwitch input{width:16px;height:16px;margin:0;accent-color:var(--acc)}
|
||||
#tab-site .sitePriceBlock{display:flex;flex-direction:column;gap:12px;padding:16px 18px}
|
||||
#tab-site .sitePriceBlock+.sitePriceBlock{border-top:1px solid var(--ln)}
|
||||
#tab-site .sitePriceBlock h3{margin:0;font-size:14px;font-weight:650}
|
||||
#tab-site .sitePriceBlock h3 .muted{font-size:12.5px;font-weight:500}
|
||||
#tab-site .sitePriceForm{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
|
||||
#tab-site .sitePriceForm label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--tx2)}
|
||||
#tab-site .sitePriceForm input{height:38px;padding:0 10px;border-radius:8px;border:1px solid var(--ln2);background:var(--sf);color:var(--tx);font-size:14px;font-family:inherit}
|
||||
#tab-site .sitePriceForm input:focus{border-color:var(--acc);box-shadow:0 0 0 3px color-mix(in srgb,var(--acc) 18%,transparent);outline:none}
|
||||
#tab-site .siteMoney{width:140px}
|
||||
#tab-site .siteScheduled{display:flex;flex-direction:column;gap:8px;font-size:13.5px}
|
||||
#tab-site .siteScheduledRow{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
|
||||
#tab-site .siteScheduledRow .btn{height:30px;padding:0 10px;font-size:12.5px}
|
||||
#tab-site .siteHistory{display:flex;flex-direction:column;gap:6px}
|
||||
#tab-site .siteHistory h4{margin:0;font-size:12.5px;font-weight:600;color:var(--tx3)}
|
||||
#tab-site .siteHistory .table{font-size:13px}
|
||||
#tab-site .siteHistory .table th,#tab-site .siteHistory .table td{padding:8px 12px}
|
||||
.page>*{flex-shrink:0}
|
||||
.pagetools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
|
||||
.panel{background:var(--sf);border:1px solid var(--ln);border-radius:12px}
|
||||
|
||||
Reference in New Issue
Block a user