# joaquinpbarrientos/pcmlab-peso architecture

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

- Interactive diagram: https://gitdiagram.com/joaquinpbarrientos/pcmlab-peso
- Repository: https://github.com/joaquinpbarrientos/pcmlab-peso

## Overview

This small Robocorp task generates a monthly PCMLab Excel report from a user-selected workbook. It preprocesses shipment data, writes daily totals, formats that workbook, then adds totals by enterprise. The source supports these calls within tasks.py; no README or other runtime modules are present, so external spreadsheet interactions are shown only where the task code establishes them.

Main entry points: [`tasks.py`](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py) (Monthly report task)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_task["Monthly report task<br/>[tasks.py]"]
node_input_picker["Input picker<br/>[tasks.py]"]
node_output_picker["Output picker<br/>[tasks.py]"]
node_preprocess["Excel preprocessing<br/>[tasks.py]"]
node_daily_report["Daily totals<br/>[tasks.py]"]
node_format_workbook["Workbook formatting<br/>[tasks.py]"]
node_enterprise_report["Enterprise totals<br/>[tasks.py]"]
node_source_workbook["Source workbook"]
node_report_workbook["Report workbook"]

node_user -->|"starts"| node_task
node_task -->|"calls"| node_input_picker
node_task -->|"calls"| node_output_picker
node_user -->|"selects file"| node_input_picker
node_input_picker -->|"selects"| node_source_workbook
node_output_picker -->|"creates path for"| node_report_workbook
node_task -->|"calls"| node_preprocess
node_source_workbook -->|"read by"| node_preprocess
node_task -->|"calls"| node_daily_report
node_daily_report -->|"writes"| node_report_workbook
node_daily_report -->|"calls"| node_format_workbook
node_task -->|"calls"| node_enterprise_report
node_enterprise_report -->|"reads and updates"| node_report_workbook

click node_task "https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py"
click node_input_picker "https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py"
click node_output_picker "https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py"
click node_preprocess "https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py"
click node_daily_report "https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py"
click node_format_workbook "https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py"
click node_enterprise_report "https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py"

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_user toneBlue
class node_task toneRose
class node_input_picker,node_output_picker,node_preprocess,node_daily_report,node_format_workbook,node_enterprise_report toneTeal
class node_source_workbook,node_report_workbook toneIndigo
```

## Components

### Other components

- **User**
- [Monthly report task](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py): `tasks.py`
- [Input picker](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py): `tasks.py`
- [Output picker](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py): `tasks.py`
- [Excel preprocessing](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py): `tasks.py`
- [Daily totals](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py): `tasks.py`
- [Workbook formatting](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py): `tasks.py`
- [Enterprise totals](https://github.com/joaquinpbarrientos/pcmlab-peso/blob/main/tasks.py): `tasks.py`
- **Source workbook**
- **Report workbook**

## Connections

- User → Monthly report task: starts (evidence: `tasks.py`)
- Monthly report task → Input picker: calls (evidence: `tasks.py`)
- Monthly report task → Output picker: calls (evidence: `tasks.py`)
- User → Input picker: selects file (evidence: `tasks.py`)
- Input picker → Source workbook: selects (evidence: `tasks.py`)
- Output picker → Report workbook: creates path for (evidence: `tasks.py`)
- Monthly report task → Excel preprocessing: calls (evidence: `tasks.py`)
- Source workbook → Excel preprocessing: read by (evidence: `tasks.py`)
- Monthly report task → Daily totals: calls (evidence: `tasks.py`)
- Daily totals → Report workbook: writes (evidence: `tasks.py`)
- Daily totals → Workbook formatting: calls (evidence: `tasks.py`)
- Monthly report task → Enterprise totals: calls (evidence: `tasks.py`)
- Enterprise totals → Report workbook: reads and updates (evidence: `tasks.py`)
