# acc-tax-reighteen/site-ar-info architecture

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

- Interactive diagram: https://gitdiagram.com/acc-tax-reighteen/site-ar-info
- Repository: https://github.com/acc-tax-reighteen/site-ar-info

## Overview

This repository automates accounts-receivable data preparation and Google Sheets publishing. The visible workflow extracts a configured ARVIEWER worksheet into a cleaned workbook, formats its date columns, and can publish workbook rows to a spreadsheet. The top-level launcher runs the extraction and date-format scripts, but the later Telegram bot and downloader it expects are absent from the tree; the Sheets publisher is present but is not invoked by that launcher. README is empty, so the map reflects only shown source behavior.

Main entry points: [`Dapur/1_CopyData.py`](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/1_CopyData.py) (Extract AR sheet), [`Dapur/3_ARInjectionToSS.py`](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/3_ARInjectionToSS.py) (Publish to Sheets), [`Perbarui Data AR.py`](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Perbarui%20Data%20AR.py) (Workflow launcher), [`Dapur/2_AdjDateFormat.py`](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/2_AdjDateFormat.py) (Format dates)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_orchestration["Workflow control"]
  node_launcher["Workflow launcher"]
end

subgraph group_preparation["AR preparation"]
  node_extract["Extract AR sheet<br/>[1_CopyData.py]"]
  node_dates["Format dates<br/>[2_AdjDateFormat.py]"]
end

subgraph group_publishing["Sheets publishing"]
  node_publish["Publish to Sheets"]
end

node_user(("Operator"))
node_ar_source["ARVIEWER workbook"]
node_config["Configuration<br/>[config.conf]"]
node_temp_workbook["Cleaned AR workbook"]
node_credentials["Service credentials<br/>[credentials.json]"]
node_sheets[("Google Sheets")]

node_user -->|"starts"| node_launcher
node_launcher -->|"runs"| node_extract
node_launcher -->|"runs"| node_dates
node_config -->|"configures"| node_extract
node_ar_source -->|"reads worksheet"| node_extract
node_extract -->|"writes workbook"| node_temp_workbook
node_temp_workbook -->|"reads workbook"| node_dates
node_dates -->|"rewrites dates"| node_temp_workbook
node_config -->|"configures"| node_publish
node_credentials -->|"authenticates"| node_publish
node_temp_workbook -->|"reads rows"| node_publish
node_publish -->|"updates worksheet"| node_sheets

click node_launcher "https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Perbarui%20Data%20AR.py"
click node_extract "https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/1_CopyData.py"
click node_dates "https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/2_AdjDateFormat.py"
click node_config "https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/config.conf"
click node_publish "https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/3_ARInjectionToSS.py"
click node_credentials "https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/credentials.json"

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_launcher,node_ar_source toneBlue
class node_extract,node_dates,node_sheets toneAmber
class node_publish toneMint
class node_user,node_temp_workbook toneIndigo
class node_config,node_credentials toneTeal
```

## Components

### Workflow control

- [Workflow launcher](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Perbarui%20Data%20AR.py): `Perbarui Data AR.py`

### AR preparation

- [Extract AR sheet](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/1_CopyData.py): `Dapur/1_CopyData.py`
- [Format dates](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/2_AdjDateFormat.py): `Dapur/2_AdjDateFormat.py`

### Sheets publishing

- [Publish to Sheets](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/3_ARInjectionToSS.py): `Dapur/3_ARInjectionToSS.py`

### Other components

- **Operator**
- **ARVIEWER workbook**
- [Configuration](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/config.conf): `Dapur/config.conf`
- **Cleaned AR workbook**
- [Service credentials](https://github.com/acc-tax-reighteen/site-ar-info/blob/main/Dapur/credentials.json): `Dapur/credentials.json`
- **Google Sheets**

## Connections

- Operator → Workflow launcher: starts (evidence: `Perbarui Data AR.py`)
- Workflow launcher → Extract AR sheet: runs (evidence: `Perbarui Data AR.py`)
- Workflow launcher → Format dates: runs (evidence: `Perbarui Data AR.py`)
- Configuration → Extract AR sheet: configures (evidence: `Dapur/1_CopyData.py`)
- ARVIEWER workbook → Extract AR sheet: reads worksheet (evidence: `Dapur/1_CopyData.py`)
- Extract AR sheet → Cleaned AR workbook: writes workbook (evidence: `Dapur/1_CopyData.py`)
- Cleaned AR workbook → Format dates: reads workbook (evidence: `Dapur/2_AdjDateFormat.py`)
- Format dates → Cleaned AR workbook: rewrites dates (evidence: `Dapur/2_AdjDateFormat.py`)
- Configuration → Publish to Sheets: configures (evidence: `Dapur/3_ARInjectionToSS.py`)
- Service credentials → Publish to Sheets: authenticates (evidence: `Dapur/3_ARInjectionToSS.py`)
- Cleaned AR workbook → Publish to Sheets: reads rows (evidence: `Dapur/3_ARInjectionToSS.py`)
- Publish to Sheets → Google Sheets: updates worksheet (evidence: `Dapur/3_ARInjectionToSS.py`)
