# acc-tax-reighteen/auto-input-gunggung-pajak-coretax architecture

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

- Interactive diagram: https://gitdiagram.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax
- Repository: https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax

## Overview

This is a desktop-style tax-data preparation pipeline: an operator supplies an Accurate export and selects a Google Sheets invoice sheet; the scripts normalize, filter, merge, match and calculate tax, validate the result, then populate a Coretax-format workbook. The main controller runs the stages in sequence and handles final output and cleanup. The README documents the pipeline and its capabilities; source excerpts show key implementations and controller dispatch, but not every stage’s internals or configuration wiring.

Main entry points: [`Jalankan Gunggung.py`](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Jalankan%20Gunggung.py) (Pipeline controller), [`Dapur/5_Processing.py`](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/5_Processing.py) (Match and calculate tax), [`Dapur/1_FetchFileSS.py`](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/1_FetchFileSS.py) (Fetch invoice data), [`Dapur/2_Acc_CleanerDel.py`](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/2_Acc_CleanerDel.py) (Filter tax period)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Source acquisition"]
  node_sheets[("Google Sheets")]
  node_fetch["Fetch invoice data<br/>[1_FetchFileSS.py]"]
end

subgraph group_prepare["Data preparation"]
  node_clean["Clean Accurate data<br/>[2_Acc_Cleaner.py]"]
  node_period["Filter tax period"]
  node_normalize["Normalize invoice dates"]
  node_merge["Combine source sheets<br/>[4_Merged_all.py]"]
  node_config["Pipeline settings<br/>[config.conf]"]
end

subgraph group_tax["Tax processing"]
  node_matchcalc["Match and calculate tax<br/>[5_Processing.py]"]
  node_validate["Validate tax results"]
  node_reports["Validation reports"]
end

subgraph group_output["Coretax output"]
  node_controller["Pipeline controller"]
  node_template_data["Shape template columns"]
  node_template["Coretax workbook template<br/>[TEMPLATE-GUNG.xlsx]"]
end

node_operator(("Operator"))
node_accurate["Accurate export"]
node_result["GUNGGUNG workbook"]

node_operator -->|"starts"| node_controller
node_accurate -->|"provides export"| node_clean
node_operator -->|"selects sheet"| node_fetch
node_sheets -->|"provides sheets"| node_fetch
node_controller -->|"runs"| node_fetch
node_controller -->|"runs"| node_clean
node_controller -->|"runs"| node_period
node_controller -->|"runs"| node_normalize
node_controller -->|"runs"| node_merge
node_controller -->|"runs"| node_matchcalc
node_controller -->|"runs"| node_validate
node_controller -->|"runs"| node_template_data
node_clean -->|"writes cleaned export"| node_period
node_period -->|"provides Accurate data"| node_merge
node_fetch -->|"writes invoice data"| node_normalize
node_normalize -->|"provides normalized invoices"| node_merge
node_merge -->|"provides merged sheets"| node_matchcalc
node_matchcalc -->|"writes tax results"| node_validate
node_validate -->|"exports anomalies"| node_reports
node_matchcalc -->|"provides calculated data"| node_template_data
node_template_data -->|"writes template-ready data"| node_controller
node_controller -->|"copies and fills"| node_template
node_controller -->|"moves final workbook"| node_result
node_config -.->|"sets filter mode"| node_period
node_config -.->|"sets match mode"| node_matchcalc

click node_controller "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Jalankan%20Gunggung.py"
click node_fetch "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/1_FetchFileSS.py"
click node_clean "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/2_Acc_Cleaner.py"
click node_period "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/2_Acc_CleanerDel.py"
click node_normalize "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/3_MovDt2MtchFrFetch.py"
click node_merge "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/4_Merged_all.py"
click node_matchcalc "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/5_Processing.py"
click node_validate "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/7_ValidationDataCtx.py"
click node_template_data "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/6_Premov2template.py"
click node_template "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/TEMPLATE-GUNG.xlsx"
click node_reports "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/7_ValidationDataCtx.py"
click node_config "https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/config.conf"

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_sheets,node_fetch toneBlue
class node_clean,node_period,node_normalize,node_merge,node_config toneAmber
class node_matchcalc,node_validate,node_reports toneMint
class node_controller,node_template_data,node_template toneRose
class node_operator,node_accurate,node_result toneIndigo
```

## Components

### Source acquisition

- **Google Sheets**
- [Fetch invoice data](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/1_FetchFileSS.py): `Dapur/1_FetchFileSS.py`

### Data preparation

- [Clean Accurate data](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/2_Acc_Cleaner.py): `Dapur/2_Acc_Cleaner.py`
- [Filter tax period](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/2_Acc_CleanerDel.py): `Dapur/2_Acc_CleanerDel.py`
- [Normalize invoice dates](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/3_MovDt2MtchFrFetch.py): `Dapur/3_MovDt2MtchFrFetch.py`
- [Combine source sheets](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/4_Merged_all.py): `Dapur/4_Merged_all.py`
- [Pipeline settings](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/config.conf): `Dapur/config.conf`

### Tax processing

- [Match and calculate tax](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/5_Processing.py): `Dapur/5_Processing.py`
- [Validate tax results](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/7_ValidationDataCtx.py): `Dapur/7_ValidationDataCtx.py`
- [Validation reports](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/7_ValidationDataCtx.py): `Dapur/7_ValidationDataCtx.py`

### Coretax output

- [Pipeline controller](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Jalankan%20Gunggung.py): `Jalankan Gunggung.py`
- [Shape template columns](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/6_Premov2template.py): `Dapur/6_Premov2template.py`
- [Coretax workbook template](https://github.com/acc-tax-reighteen/auto-input-gunggung-pajak-coretax/blob/main/Dapur/TEMPLATE-GUNG.xlsx): `Dapur/TEMPLATE-GUNG.xlsx`

### Other components

- **Operator**
- **Accurate export**
- **GUNGGUNG workbook**

## Connections

- Operator → Pipeline controller: starts (evidence: `README.md`)
- Accurate export → Clean Accurate data: provides export (evidence: `README.md`)
- Operator → Fetch invoice data: selects sheet (evidence: `Dapur/1_FetchFileSS.py`)
- Google Sheets → Fetch invoice data: provides sheets (evidence: `Dapur/1_FetchFileSS.py`)
- Pipeline controller → Fetch invoice data: runs (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → Clean Accurate data: runs (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → Filter tax period: runs (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → Normalize invoice dates: runs (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → Combine source sheets: runs (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → Match and calculate tax: runs (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → Validate tax results: runs (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → Shape template columns: runs (evidence: `Jalankan Gunggung.py`)
- Clean Accurate data → Filter tax period: writes cleaned export (evidence: `README.md`)
- Filter tax period → Combine source sheets: provides Accurate data (evidence: `README.md`)
- Fetch invoice data → Normalize invoice dates: writes invoice data (evidence: `README.md`)
- Normalize invoice dates → Combine source sheets: provides normalized invoices (evidence: `README.md`)
- Combine source sheets → Match and calculate tax: provides merged sheets (evidence: `README.md`)
- Match and calculate tax → Validate tax results: writes tax results (evidence: `README.md`)
- Validate tax results → Validation reports: exports anomalies (evidence: `Dapur/7_ValidationDataCtx.py`)
- Match and calculate tax → Shape template columns: provides calculated data (evidence: `README.md`)
- Shape template columns → Pipeline controller: writes template-ready data (evidence: `README.md`)
- Pipeline controller → Coretax workbook template: copies and fills (evidence: `Jalankan Gunggung.py`)
- Pipeline controller → GUNGGUNG workbook: moves final workbook (evidence: `Jalankan Gunggung.py`)
- Pipeline settings → Filter tax period: sets filter mode
- Pipeline settings → Match and calculate tax: sets match mode
