# fcccampos/erpopensource architecture

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

- Interactive diagram: https://gitdiagram.com/fcccampos/erpopensource
- Repository: https://github.com/fcccampos/erpopensource

## Overview

ERP Open Source is described as a documentation and metadata tool intended to help maintainers define data structures and rules, then generate standardized forms with linked documentation. The README also lists release-change tracking and a data dictionary as goals. No source excerpts were provided, so the graph represents documented capabilities and avoids inferring calls between the Lazarus files; implementation status and internal wiring remain unverified.

Main entry points: [`uprincipal.pas`](https://github.com/fcccampos/erpopensource/blob/main/uprincipal.pas) (Desktop app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop application"]
  node_desktop_app["Desktop app<br/>[uprincipal.pas]"]
  node_user_control["User control"]
  node_data_module["Data module<br/>[udatamodule.pas]"]
  node_routines["Shared routines<br/>[urotinas.pas]"]
end

subgraph group_metadata["Metadata definition"]
  node_table_definitions["Table definitions"]
  node_field_definitions["Field definitions"]
  node_relationship_rules["Relationship rules"]
  node_form_rules["Form rules"]
  node_release_history["Release changes"]
end

subgraph group_outputs["Generated outputs"]
  node_generated_forms["Generated forms"]
  node_data_dictionary["Data dictionary"]
end

node_maintainer(("Maintainer"))

node_maintainer -->|"uses"| node_desktop_app
node_maintainer -->|"defines tables"| node_table_definitions
node_maintainer -->|"defines fields"| node_field_definitions
node_maintainer -->|"defines relationships"| node_relationship_rules
node_maintainer -->|"defines forms"| node_form_rules
node_maintainer -->|"documents changes"| node_release_history
node_table_definitions -->|"informs generation"| node_generated_forms
node_field_definitions -->|"informs generation"| node_generated_forms
node_relationship_rules -->|"guides generation"| node_generated_forms
node_form_rules -->|"guides generation"| node_generated_forms
node_table_definitions -->|"defines entries"| node_data_dictionary
node_field_definitions -->|"defines entries"| node_data_dictionary

click node_desktop_app "https://github.com/fcccampos/erpopensource/blob/main/uprincipal.pas"
click node_user_control "https://github.com/fcccampos/erpopensource/blob/main/ucontroleusuario.pas"
click node_data_module "https://github.com/fcccampos/erpopensource/blob/main/udatamodule.pas"
click node_routines "https://github.com/fcccampos/erpopensource/blob/main/urotinas.pas"

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_desktop_app,node_user_control,node_data_module,node_routines toneBlue
class node_table_definitions,node_field_definitions,node_relationship_rules,node_form_rules,node_release_history toneAmber
class node_generated_forms,node_data_dictionary toneMint
class node_maintainer toneIndigo
```

## Components

### Desktop application

- [Desktop app](https://github.com/fcccampos/erpopensource/blob/main/uprincipal.pas): `uprincipal.pas`
- [User control](https://github.com/fcccampos/erpopensource/blob/main/ucontroleusuario.pas): `ucontroleusuario.pas`
- [Data module](https://github.com/fcccampos/erpopensource/blob/main/udatamodule.pas): `udatamodule.pas`
- [Shared routines](https://github.com/fcccampos/erpopensource/blob/main/urotinas.pas): `urotinas.pas`

### Metadata definition

- **Table definitions**
- **Field definitions**
- **Relationship rules**
- **Form rules**
- **Release changes**

### Generated outputs

- **Generated forms**
- **Data dictionary**

### Other components

- **Maintainer**

## Connections

- Maintainer → Desktop app: uses (evidence: `README.md`)
- Maintainer → Table definitions: defines tables (evidence: `README.md`)
- Maintainer → Field definitions: defines fields (evidence: `README.md`)
- Maintainer → Relationship rules: defines relationships (evidence: `README.md`)
- Maintainer → Form rules: defines forms (evidence: `README.md`)
- Maintainer → Release changes: documents changes (evidence: `README.md`)
- Table definitions → Generated forms: informs generation (evidence: `README.md`)
- Field definitions → Generated forms: informs generation (evidence: `README.md`)
- Relationship rules → Generated forms: guides generation (evidence: `README.md`)
- Form rules → Generated forms: guides generation (evidence: `README.md`)
- Table definitions → Data dictionary: defines entries (evidence: `README.md`)
- Field definitions → Data dictionary: defines entries (evidence: `README.md`)
