# irhamfrdz/aypsis architecture

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

- Interactive diagram: https://gitdiagram.com/irhamfrdz/aypsis
- Repository: https://github.com/irhamfrdz/aypsis

## Overview

This repository is a broad logistics and shipping ERP, with a separate React application for container-rental invoicing. ERP capabilities span shipping manifests and receipts, container tracking, vessel costs, and workforce records; the tree also indicates billing, reporting, and master-data areas. The React app supports rental transactions, invoice management, and bulk import. The README is empty, and most ERP controllers and route wiring were not sampled, so the graph shows only relationships supported by the supplied source index or excerpts; it does not imply an end-to-end ERP call sequence.

Main entry points: [`Penyewaan-Kontainer-main/src/App.tsx`](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/App.tsx) (Rental workspace), [`app/Http/Controllers/BiayaKapalController.php`](https://github.com/irhamfrdz/aypsis/blob/main/app/Http/Controllers/BiayaKapalController.php) (Vessel cost workflows), [`app/Models/BiayaKapal.php`](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/BiayaKapal.php) (Vessel costs), [`app/Traits/Auditable.php`](https://github.com/irhamfrdz/aypsis/blob/main/app/Traits/Auditable.php) (Audit behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shipping["Shipping operations"]
  node_ship_ops["Shipping workflows"]
  node_manifest[("Manifest records<br/>[Manifest.php]")]
  node_receipt[("Delivery receipts<br/>[TandaTerima.php]")]
  node_container_ops["Container workflows"]
  node_container[("Container records<br/>[Kontainer.php]")]
end

subgraph group_finance["Vessel finance"]
  node_vessel_costs["Vessel cost workflows"]
  node_vessel_cost[("Vessel costs<br/>[BiayaKapal.php]")]
  node_storage_cost[("Storage cost details")]
  node_storage_rates[("Storage price list")]
  node_vessel_billing["Temas billing"]
  node_billing_pages["Vessel cost views"]
end

subgraph group_workforce["Workforce"]
  node_employee[("Employee records<br/>[Karyawan.php]")]
end

subgraph group_rental["Container rental app"]
  node_renter(("Rental operator"))
  node_rental_app["Rental workspace<br/>[App.tsx]"]
  node_rental_transactions["Rental transactions<br/>[TransaksiSewa.tsx]"]
  node_invoice_manager["Invoice management<br/>[InvoiceManager.tsx]"]
  node_bulk_import["Bulk import"]
  node_master_panel["Rental master data<br/>[MasterPanel.tsx]"]
  node_rental_store["Rental data store<br/>[dataStore.ts]"]
  node_rental_db[("Rental persistence<br/>[dataStore.ts]")]
end

subgraph group_shared["Shared ERP data"]
  node_erp_user[("ERP accounts<br/>[User.php]")]
  node_audit["Audit behavior<br/>[Auditable.php]"]
end

node_user(("ERP user"))

node_vessel_costs -->|"reads and updates"| node_vessel_cost
node_vessel_costs -->|"updates details"| node_storage_cost
node_vessel_costs -->|"loads rates"| node_storage_rates
node_vessel_cost -->|"relates details"| node_storage_cost
node_vessel_billing -->|"uses records"| node_vessel_cost
node_container_ops -.->|"handles records"| node_container
node_ship_ops -.->|"handles records"| node_manifest
node_manifest -->|"looks up receipts"| node_receipt
node_employee -->|"relates account"| node_erp_user
node_employee -->|"uses audit trait"| node_audit
node_container -->|"uses audit trait"| node_audit
node_vessel_cost -->|"uses audit trait"| node_audit
node_user -.->|"initiates workflows"| node_ship_ops
node_user -.->|"manages costs"| node_vessel_costs
node_renter -->|"uses workspace"| node_rental_app
node_rental_app -->|"renders"| node_rental_transactions
node_rental_app -->|"renders"| node_invoice_manager
node_rental_app -->|"renders"| node_bulk_import
node_rental_app -->|"renders"| node_master_panel
node_invoice_manager -->|"compiles periods"| node_rental_store
node_rental_store -.->|"persists state"| node_rental_db

click node_ship_ops "https://github.com/irhamfrdz/aypsis/tree/main/app/Http/Controllers"
click node_manifest "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/Manifest.php"
click node_receipt "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/TandaTerima.php"
click node_container_ops "https://github.com/irhamfrdz/aypsis/blob/main/app/Http/Controllers/KontainerController.php"
click node_container "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/Kontainer.php"
click node_vessel_costs "https://github.com/irhamfrdz/aypsis/blob/main/app/Http/Controllers/BiayaKapalController.php"
click node_vessel_cost "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/BiayaKapal.php"
click node_storage_cost "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/BiayaKapalStorage.php"
click node_storage_rates "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/MasterPricelistBiayaStorage.php"
click node_vessel_billing "https://github.com/irhamfrdz/aypsis/blob/main/app/Services/TemasBillingService.php"
click node_billing_pages "https://github.com/irhamfrdz/aypsis/blob/main/resources/views/biaya-kapal/create/_js-storage.blade.php"
click node_employee "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/Karyawan.php"
click node_erp_user "https://github.com/irhamfrdz/aypsis/blob/main/app/Models/User.php"
click node_audit "https://github.com/irhamfrdz/aypsis/blob/main/app/Traits/Auditable.php"
click node_rental_app "https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/App.tsx"
click node_rental_transactions "https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/TransaksiSewa.tsx"
click node_invoice_manager "https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/InvoiceManager.tsx"
click node_bulk_import "https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/BulkImportPanel.tsx"
click node_master_panel "https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/MasterPanel.tsx"
click node_rental_store "https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/dataStore.ts"
click node_rental_db "https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/dataStore.ts"

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_ship_ops,node_manifest,node_receipt,node_container_ops,node_container,node_user toneBlue
class node_vessel_costs,node_vessel_cost,node_storage_cost,node_storage_rates,node_vessel_billing,node_billing_pages toneAmber
class node_employee toneMint
class node_renter,node_rental_app,node_rental_transactions,node_invoice_manager,node_bulk_import,node_master_panel,node_rental_store,node_rental_db toneRose
class node_erp_user,node_audit toneIndigo
```

## Components

### Shipping operations

- [Shipping workflows](https://github.com/irhamfrdz/aypsis/tree/main/app/Http/Controllers): `app/Http/Controllers`
- [Manifest records](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/Manifest.php): `app/Models/Manifest.php`
- [Delivery receipts](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/TandaTerima.php): `app/Models/TandaTerima.php`
- [Container workflows](https://github.com/irhamfrdz/aypsis/blob/main/app/Http/Controllers/KontainerController.php): `app/Http/Controllers/KontainerController.php`
- [Container records](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/Kontainer.php): `app/Models/Kontainer.php`

### Vessel finance

- [Vessel cost workflows](https://github.com/irhamfrdz/aypsis/blob/main/app/Http/Controllers/BiayaKapalController.php): `app/Http/Controllers/BiayaKapalController.php`
- [Vessel costs](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/BiayaKapal.php): `app/Models/BiayaKapal.php`
- [Storage cost details](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/BiayaKapalStorage.php): `app/Models/BiayaKapalStorage.php`
- [Storage price list](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/MasterPricelistBiayaStorage.php): `app/Models/MasterPricelistBiayaStorage.php`
- [Temas billing](https://github.com/irhamfrdz/aypsis/blob/main/app/Services/TemasBillingService.php): `app/Services/TemasBillingService.php`
- [Vessel cost views](https://github.com/irhamfrdz/aypsis/blob/main/resources/views/biaya-kapal/create/_js-storage.blade.php): `resources/views/biaya-kapal/create/_js-storage.blade.php`

### Workforce

- [Employee records](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/Karyawan.php): `app/Models/Karyawan.php`

### Container rental app

- **Rental operator**
- [Rental workspace](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/App.tsx): `Penyewaan-Kontainer-main/src/App.tsx`
- [Rental transactions](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/TransaksiSewa.tsx): `Penyewaan-Kontainer-main/src/components/TransaksiSewa.tsx`
- [Invoice management](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/InvoiceManager.tsx): `Penyewaan-Kontainer-main/src/components/InvoiceManager.tsx`
- [Bulk import](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/BulkImportPanel.tsx): `Penyewaan-Kontainer-main/src/components/BulkImportPanel.tsx`
- [Rental master data](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/components/MasterPanel.tsx): `Penyewaan-Kontainer-main/src/components/MasterPanel.tsx`
- [Rental data store](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/dataStore.ts): `Penyewaan-Kontainer-main/src/dataStore.ts`
- [Rental persistence](https://github.com/irhamfrdz/aypsis/blob/main/Penyewaan-Kontainer-main/src/dataStore.ts): `Penyewaan-Kontainer-main/src/dataStore.ts`

### Shared ERP data

- [ERP accounts](https://github.com/irhamfrdz/aypsis/blob/main/app/Models/User.php): `app/Models/User.php`
- [Audit behavior](https://github.com/irhamfrdz/aypsis/blob/main/app/Traits/Auditable.php): `app/Traits/Auditable.php`

### Other components

- **ERP user**

## Connections

- Vessel cost workflows → Vessel costs: reads and updates (evidence: `app/Http/Controllers/BiayaKapalController.php`)
- Vessel cost workflows → Storage cost details: updates details
- Vessel cost workflows → Storage price list: loads rates (evidence: `app/Http/Controllers/BiayaKapalController.php`)
- Vessel costs → Storage cost details: relates details (evidence: `app/Models/BiayaKapal.php`)
- Temas billing → Vessel costs: uses records (evidence: `app/Services/TemasBillingService.php`)
- Container workflows → Container records: handles records
- Shipping workflows → Manifest records: handles records (evidence: `app/Http/Controllers/BiayaKapalController.php`)
- Manifest records → Delivery receipts: looks up receipts (evidence: `app/Models/Manifest.php`)
- Employee records → ERP accounts: relates account (evidence: `app/Models/Karyawan.php`)
- Employee records → Audit behavior: uses audit trait (evidence: `app/Models/Karyawan.php`)
- Container records → Audit behavior: uses audit trait (evidence: `app/Models/Kontainer.php`)
- Vessel costs → Audit behavior: uses audit trait (evidence: `app/Models/BiayaKapal.php`)
- ERP user → Shipping workflows: initiates workflows
- ERP user → Vessel cost workflows: manages costs
- Rental operator → Rental workspace: uses workspace (evidence: `Penyewaan-Kontainer-main/src/App.tsx`)
- Rental workspace → Rental transactions: renders (evidence: `Penyewaan-Kontainer-main/src/App.tsx`)
- Rental workspace → Invoice management: renders (evidence: `Penyewaan-Kontainer-main/src/App.tsx`)
- Rental workspace → Bulk import: renders (evidence: `Penyewaan-Kontainer-main/src/App.tsx`)
- Rental workspace → Rental master data: renders (evidence: `Penyewaan-Kontainer-main/src/App.tsx`)
- Invoice management → Rental data store: compiles periods (evidence: `Penyewaan-Kontainer-main/src/components/InvoiceManager.tsx`)
- Rental data store → Rental persistence: persists state (evidence: `Penyewaan-Kontainer-main/src/dataStore.ts`)
