# thiagobeats/sctech-sistema architecture

> Architecture diagram of the GitHub repository thiagobeats/sctech-sistema, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/thiagobeats/sctech-sistema
- Repository: https://github.com/thiagobeats/sctech-sistema

## Overview

SCTech is a browser-based management system for curtain businesses. Its apparent user workflow spans sales and orders, purchasing and stock, production and dispatch, and financial tracking; dashboards and the product gallery provide additional capabilities. The tree establishes these product areas, but no README or page source was provided to verify navigation or a complete user flow. Edges are therefore limited to dependencies evidenced in the source index and excerpts.

Main entry points: [`js/caixa-core.js`](https://github.com/thiagobeats/sctech-sistema/blob/main/js/caixa-core.js) (Cash flow), [`js/resultado-core.js`](https://github.com/thiagobeats/sctech-sistema/blob/main/js/resultado-core.js) (Monthly result), [`js/financeiro-core.js`](https://github.com/thiagobeats/sctech-sistema/blob/main/js/financeiro-core.js) (Finance rules), [`js/carrinho-core.js`](https://github.com/thiagobeats/sctech-sistema/blob/main/js/carrinho-core.js) (Purchase cart)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sales["Sales and orders"]
  node_orders["Orders<br/>[pedidos.html]"]
  node_order["Order details<br/>[pedido.html]"]
  node_proposal["Proposals<br/>[proposta.html]"]
  node_cart["Purchase cart<br/>[carrinho-core.js]"]
  node_supplier_orders["Supplier orders<br/>[pedido-compra.html]"]
  node_docs_layout["Document layouts"]
end

subgraph group_operations["Operations"]
  node_import_ui["Price import<br/>[importador-ui.js]"]
  node_import_rules["Import rules<br/>[importador-core.js]"]
  node_inventory["Inventory<br/>[estoque.html]"]
  node_production["Production planning<br/>[pcp.html]"]
  node_shipping["Dispatch<br/>[expedicao.js]"]
  node_labels["Order labels"]
end

subgraph group_finance["Finance"]
  node_finance_page["Finance<br/>[financeiro.html]"]
  node_finance_rules["Finance rules<br/>[financeiro-core.js]"]
  node_cash["Cash flow<br/>[caixa-core.js]"]
  node_monthly_result["Monthly result<br/>[resultado-core.js]"]
  node_purchase_sim["Purchase simulator<br/>[simulador-core.js]"]
end

subgraph group_product["Product visualization"]
  node_curtain_drawing["Curtain drawing<br/>[cortina-desenho.js]"]
  node_gallery["Product gallery"]
end

subgraph group_insights["Insights and setup"]
  node_dashboards["Dashboards<br/>[dashboards.js]"]
  node_reports["Reports<br/>[relatorios.html]"]
  node_settings["Company settings<br/>[configuracoes.html]"]
end

node_user(("Business user"))

node_cart -->|"uses rounding"| node_finance_rules
node_purchase_sim -->|"uses date rules"| node_finance_rules
node_cash -->|"references"| node_monthly_result
node_monthly_result -->|"references"| node_cash

click node_orders "https://github.com/thiagobeats/sctech-sistema/blob/main/pedidos.html"
click node_order "https://github.com/thiagobeats/sctech-sistema/blob/main/pedido.html"
click node_proposal "https://github.com/thiagobeats/sctech-sistema/blob/main/proposta.html"
click node_cart "https://github.com/thiagobeats/sctech-sistema/blob/main/js/carrinho-core.js"
click node_supplier_orders "https://github.com/thiagobeats/sctech-sistema/blob/main/pedido-compra.html"
click node_import_ui "https://github.com/thiagobeats/sctech-sistema/blob/main/js/importador-ui.js"
click node_import_rules "https://github.com/thiagobeats/sctech-sistema/blob/main/js/importador-core.js"
click node_inventory "https://github.com/thiagobeats/sctech-sistema/blob/main/estoque.html"
click node_production "https://github.com/thiagobeats/sctech-sistema/blob/main/pcp.html"
click node_shipping "https://github.com/thiagobeats/sctech-sistema/blob/main/js/expedicao.js"
click node_curtain_drawing "https://github.com/thiagobeats/sctech-sistema/blob/main/js/cortina-desenho.js"
click node_gallery "https://github.com/thiagobeats/sctech-sistema/blob/main/js/galeria-simulador.js"
click node_docs_layout "https://github.com/thiagobeats/sctech-sistema/blob/main/js/docs-layout-editor.js"
click node_labels "https://github.com/thiagobeats/sctech-sistema/blob/main/js/etiquetas-editor.js"
click node_finance_page "https://github.com/thiagobeats/sctech-sistema/blob/main/financeiro.html"
click node_finance_rules "https://github.com/thiagobeats/sctech-sistema/blob/main/js/financeiro-core.js"
click node_cash "https://github.com/thiagobeats/sctech-sistema/blob/main/js/caixa-core.js"
click node_monthly_result "https://github.com/thiagobeats/sctech-sistema/blob/main/js/resultado-core.js"
click node_purchase_sim "https://github.com/thiagobeats/sctech-sistema/blob/main/js/simulador-core.js"
click node_dashboards "https://github.com/thiagobeats/sctech-sistema/blob/main/js/dashboards.js"
click node_reports "https://github.com/thiagobeats/sctech-sistema/blob/main/relatorios.html"
click node_settings "https://github.com/thiagobeats/sctech-sistema/blob/main/configuracoes.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_orders,node_order,node_proposal,node_cart,node_supplier_orders,node_docs_layout,node_user toneBlue
class node_import_ui,node_import_rules,node_inventory,node_production,node_shipping,node_labels toneAmber
class node_finance_page,node_finance_rules,node_cash,node_monthly_result,node_purchase_sim toneMint
class node_curtain_drawing,node_gallery toneRose
class node_dashboards,node_reports,node_settings toneIndigo
```

## Components

### Sales and orders

- [Orders](https://github.com/thiagobeats/sctech-sistema/blob/main/pedidos.html): `pedidos.html`
- [Order details](https://github.com/thiagobeats/sctech-sistema/blob/main/pedido.html): `pedido.html`
- [Proposals](https://github.com/thiagobeats/sctech-sistema/blob/main/proposta.html): `proposta.html`
- [Purchase cart](https://github.com/thiagobeats/sctech-sistema/blob/main/js/carrinho-core.js): `js/carrinho-core.js`
- [Supplier orders](https://github.com/thiagobeats/sctech-sistema/blob/main/pedido-compra.html): `pedido-compra.html`
- [Document layouts](https://github.com/thiagobeats/sctech-sistema/blob/main/js/docs-layout-editor.js): `js/docs-layout-editor.js`

### Operations

- [Price import](https://github.com/thiagobeats/sctech-sistema/blob/main/js/importador-ui.js): `js/importador-ui.js`
- [Import rules](https://github.com/thiagobeats/sctech-sistema/blob/main/js/importador-core.js): `js/importador-core.js`
- [Inventory](https://github.com/thiagobeats/sctech-sistema/blob/main/estoque.html): `estoque.html`
- [Production planning](https://github.com/thiagobeats/sctech-sistema/blob/main/pcp.html): `pcp.html`
- [Dispatch](https://github.com/thiagobeats/sctech-sistema/blob/main/js/expedicao.js): `js/expedicao.js`
- [Order labels](https://github.com/thiagobeats/sctech-sistema/blob/main/js/etiquetas-editor.js): `js/etiquetas-editor.js`

### Finance

- [Finance](https://github.com/thiagobeats/sctech-sistema/blob/main/financeiro.html): `financeiro.html`
- [Finance rules](https://github.com/thiagobeats/sctech-sistema/blob/main/js/financeiro-core.js): `js/financeiro-core.js`
- [Cash flow](https://github.com/thiagobeats/sctech-sistema/blob/main/js/caixa-core.js): `js/caixa-core.js`
- [Monthly result](https://github.com/thiagobeats/sctech-sistema/blob/main/js/resultado-core.js): `js/resultado-core.js`
- [Purchase simulator](https://github.com/thiagobeats/sctech-sistema/blob/main/js/simulador-core.js): `js/simulador-core.js`

### Product visualization

- [Curtain drawing](https://github.com/thiagobeats/sctech-sistema/blob/main/js/cortina-desenho.js): `js/cortina-desenho.js`
- [Product gallery](https://github.com/thiagobeats/sctech-sistema/blob/main/js/galeria-simulador.js): `js/galeria-simulador.js`

### Insights and setup

- [Dashboards](https://github.com/thiagobeats/sctech-sistema/blob/main/js/dashboards.js): `js/dashboards.js`
- [Reports](https://github.com/thiagobeats/sctech-sistema/blob/main/relatorios.html): `relatorios.html`
- [Company settings](https://github.com/thiagobeats/sctech-sistema/blob/main/configuracoes.html): `configuracoes.html`

### Other components

- **Business user**

## Connections

- Purchase cart → Finance rules: uses rounding (evidence: `js/carrinho-core.js`)
- Purchase simulator → Finance rules: uses date rules (evidence: `js/simulador-core.js`)
- Cash flow → Monthly result: references (evidence: `js/caixa-core.js`)
- Monthly result → Cash flow: references (evidence: `js/resultado-core.js`)
