# 7sebahattin/yukleme_plani architecture

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

- Interactive diagram: https://gitdiagram.com/7sebahattin/yukleme_plani
- Repository: https://github.com/7sebahattin/yukleme_plani

## Overview

This repository appears to be a broad Asya Fresh operations application, while its README describes a narrower Yükleme Planı workflow. The graph preserves that documented loading-record flow and also shows major operational areas indicated by the source index. The loading workflow is documented in the README; unsampled areas are shown as subsystem nodes, with only indexed or excerpted relationships connected.

Main entry points: [`index.php`](https://github.com/7sebahattin/yukleme_plani/blob/main/index.php) (Record list), [`config/db.php`](https://github.com/7sebahattin/yukleme_plani/blob/main/config/db.php) (Loading data), [`config/pdks_gunluk.php`](https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_gunluk.php) (Daily attendance), [`halkayit/api.php`](https://github.com/7sebahattin/yukleme_plani/blob/main/halkayit/api.php) (HKS integration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_loading["Loading plans"]
  node_record_list["Record list<br/>[index.php]"]
  node_create_record["Create record<br/>[record_create.php]"]
  node_edit_record["Edit record<br/>[record_edit.php]"]
  node_record_form["Record form<br/>[_form.php]"]
  node_weight_calc["Weight calculation<br/>[calc.php]"]
  node_record_view["Record view<br/>[record_view.php]"]
  node_record_delete["Delete record<br/>[record_delete.php]"]
  node_definitions["Plan definitions<br/>[definitions.php]"]
end

subgraph group_operations["Operations"]
  node_customs["Customs declarations<br/>[beyan_view.php]"]
  node_hks_api["HKS integration<br/>[api.php]"]
  node_hks_soap["HKS SOAP client<br/>[hks_soap.php]"]
  node_orders["Orders<br/>[siparis_core.php]"]
  node_frugro["Frugro workflows<br/>[frugro_core.php]"]
end

subgraph group_finance["Finance and stock"]
  node_accounts["Account transactions<br/>[cari_core.php]"]
  node_invoices["Invoices<br/>[fatura_core.php]"]
  node_stock["Inventory<br/>[stok_core.php]"]
end

subgraph group_people["Workforce"]
  node_attendance["Daily attendance<br/>[pdks_gunluk.php]"]
  node_attendance_ops["Attendance operations<br/>[pdks_faz8b.php]"]
  node_attendance_adjust["Attendance adjustments<br/>[pdks_faz8j.php]"]
  node_reverse_cards["Reverse card tracking<br/>[pdks_ters.php]"]
end

subgraph group_platform["Shared platform"]
  node_loading_db[("Loading data<br/>[db.php]")]
  node_mail["Mail center<br/>[mail_core.php]"]
  node_auth["Authentication<br/>[auth.php]"]
end

node_operator(("Operator"))

node_operator -->|"opens"| node_record_list
node_record_list -->|"starts creation"| node_create_record
node_record_list -->|"opens edit"| node_edit_record
node_create_record -->|"renders"| node_record_form
node_edit_record -->|"renders"| node_record_form
node_record_form -->|"recalculates on submit"| node_weight_calc
node_weight_calc -.->|"supports persistence"| node_loading_db
node_record_list -.->|"reads records"| node_loading_db
node_record_view -.->|"reads record"| node_loading_db
node_record_delete -.->|"deletes record"| node_loading_db
node_definitions -.->|"manages definitions"| node_loading_db
node_record_list -->|"opens view"| node_record_view
node_operator -->|"maintains"| node_definitions
node_operator -->|"requests deletion"| node_record_delete
node_hks_api -->|"uses client"| node_hks_soap
node_hks_api -.->|"uses loading integration"| node_attendance
node_attendance_ops -->|"uses daily core"| node_attendance
node_attendance_adjust -->|"requires daily core"| node_attendance
node_reverse_cards -->|"uses daily core"| node_attendance
node_invoices -->|"uses stock core"| node_stock
node_auth -.->|"guards access"| node_record_list
node_auth -->|"guards access"| node_hks_api
node_mail -->|"dashboard summary"| node_record_list

click node_record_list "https://github.com/7sebahattin/yukleme_plani/blob/main/index.php"
click node_create_record "https://github.com/7sebahattin/yukleme_plani/blob/main/record_create.php"
click node_edit_record "https://github.com/7sebahattin/yukleme_plani/blob/main/record_edit.php"
click node_record_form "https://github.com/7sebahattin/yukleme_plani/blob/main/_form.php"
click node_weight_calc "https://github.com/7sebahattin/yukleme_plani/blob/main/config/calc.php"
click node_record_view "https://github.com/7sebahattin/yukleme_plani/blob/main/record_view.php"
click node_record_delete "https://github.com/7sebahattin/yukleme_plani/blob/main/record_delete.php"
click node_definitions "https://github.com/7sebahattin/yukleme_plani/blob/main/definitions.php"
click node_loading_db "https://github.com/7sebahattin/yukleme_plani/blob/main/config/db.php"
click node_customs "https://github.com/7sebahattin/yukleme_plani/blob/main/beyan_view.php"
click node_hks_api "https://github.com/7sebahattin/yukleme_plani/blob/main/halkayit/api.php"
click node_hks_soap "https://github.com/7sebahattin/yukleme_plani/blob/main/halkayit/hks_soap.php"
click node_orders "https://github.com/7sebahattin/yukleme_plani/blob/main/config/siparis_core.php"
click node_frugro "https://github.com/7sebahattin/yukleme_plani/blob/main/config/frugro_core.php"
click node_attendance "https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_gunluk.php"
click node_attendance_ops "https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_faz8b.php"
click node_attendance_adjust "https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_faz8j.php"
click node_reverse_cards "https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_ters.php"
click node_accounts "https://github.com/7sebahattin/yukleme_plani/blob/main/config/cari_core.php"
click node_invoices "https://github.com/7sebahattin/yukleme_plani/blob/main/config/fatura_core.php"
click node_stock "https://github.com/7sebahattin/yukleme_plani/blob/main/config/stok_core.php"
click node_mail "https://github.com/7sebahattin/yukleme_plani/blob/main/config/mail_core.php"
click node_auth "https://github.com/7sebahattin/yukleme_plani/blob/main/config/auth.php"

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_record_list,node_create_record,node_edit_record,node_record_form,node_weight_calc,node_record_view,node_record_delete,node_definitions toneBlue
class node_customs,node_hks_api,node_hks_soap,node_orders,node_frugro toneAmber
class node_accounts,node_invoices,node_stock toneMint
class node_attendance,node_attendance_ops,node_attendance_adjust,node_reverse_cards toneRose
class node_loading_db,node_mail,node_auth,node_operator toneIndigo
```

## Components

### Loading plans

- [Record list](https://github.com/7sebahattin/yukleme_plani/blob/main/index.php): `index.php`
- [Create record](https://github.com/7sebahattin/yukleme_plani/blob/main/record_create.php): `record_create.php`
- [Edit record](https://github.com/7sebahattin/yukleme_plani/blob/main/record_edit.php): `record_edit.php`
- [Record form](https://github.com/7sebahattin/yukleme_plani/blob/main/_form.php): `_form.php`
- [Weight calculation](https://github.com/7sebahattin/yukleme_plani/blob/main/config/calc.php): `config/calc.php`
- [Record view](https://github.com/7sebahattin/yukleme_plani/blob/main/record_view.php): `record_view.php`
- [Delete record](https://github.com/7sebahattin/yukleme_plani/blob/main/record_delete.php): `record_delete.php`
- [Plan definitions](https://github.com/7sebahattin/yukleme_plani/blob/main/definitions.php): `definitions.php`

### Operations

- [Customs declarations](https://github.com/7sebahattin/yukleme_plani/blob/main/beyan_view.php): `beyan_view.php`
- [HKS integration](https://github.com/7sebahattin/yukleme_plani/blob/main/halkayit/api.php): `halkayit/api.php`
- [HKS SOAP client](https://github.com/7sebahattin/yukleme_plani/blob/main/halkayit/hks_soap.php): `halkayit/hks_soap.php`
- [Orders](https://github.com/7sebahattin/yukleme_plani/blob/main/config/siparis_core.php): `config/siparis_core.php`
- [Frugro workflows](https://github.com/7sebahattin/yukleme_plani/blob/main/config/frugro_core.php): `config/frugro_core.php`

### Finance and stock

- [Account transactions](https://github.com/7sebahattin/yukleme_plani/blob/main/config/cari_core.php): `config/cari_core.php`
- [Invoices](https://github.com/7sebahattin/yukleme_plani/blob/main/config/fatura_core.php): `config/fatura_core.php`
- [Inventory](https://github.com/7sebahattin/yukleme_plani/blob/main/config/stok_core.php): `config/stok_core.php`

### Workforce

- [Daily attendance](https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_gunluk.php): `config/pdks_gunluk.php`
- [Attendance operations](https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_faz8b.php): `config/pdks_faz8b.php`
- [Attendance adjustments](https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_faz8j.php): `config/pdks_faz8j.php`
- [Reverse card tracking](https://github.com/7sebahattin/yukleme_plani/blob/main/config/pdks_ters.php): `config/pdks_ters.php`

### Shared platform

- [Loading data](https://github.com/7sebahattin/yukleme_plani/blob/main/config/db.php): `config/db.php`
- [Mail center](https://github.com/7sebahattin/yukleme_plani/blob/main/config/mail_core.php): `config/mail_core.php`
- [Authentication](https://github.com/7sebahattin/yukleme_plani/blob/main/config/auth.php): `config/auth.php`

### Other components

- **Operator**

## Connections

- Operator → Record list: opens (evidence: `README.md`)
- Record list → Create record: starts creation (evidence: `README.md`)
- Record list → Edit record: opens edit (evidence: `README.md`)
- Create record → Record form: renders (evidence: `README.md`)
- Edit record → Record form: renders (evidence: `README.md`)
- Record form → Weight calculation: recalculates on submit (evidence: `README.md`)
- Weight calculation → Loading data: supports persistence
- Record list → Loading data: reads records (evidence: `index.php`)
- Record view → Loading data: reads record
- Delete record → Loading data: deletes record
- Plan definitions → Loading data: manages definitions
- Record list → Record view: opens view (evidence: `README.md`)
- Operator → Plan definitions: maintains (evidence: `README.md`)
- Operator → Delete record: requests deletion (evidence: `README.md`)
- HKS integration → HKS SOAP client: uses client (evidence: `halkayit/api.php`)
- HKS integration → Daily attendance: uses loading integration
- Attendance operations → Daily attendance: uses daily core (evidence: `config/pdks_faz8b.php`)
- Attendance adjustments → Daily attendance: requires daily core (evidence: `config/pdks_faz8j.php`)
- Reverse card tracking → Daily attendance: uses daily core (evidence: `config/pdks_ters.php`)
- Invoices → Inventory: uses stock core (evidence: `config/fatura_core.php`)
- Authentication → Record list: guards access (evidence: `index.php`)
- Authentication → HKS integration: guards access (evidence: `halkayit/api.php`)
- Mail center → Record list: dashboard summary (evidence: `index.php`)
