feat: implement consumable inventory module, network LAN access, and CI/CD enhancements
- Modul Consumable Item: model master, buku besar transaksi (stock ledger), purchase unit conversion, stock opname, dan transaction reversal - Integrasi ke Employee Management, Asset Unit, dan tiket/work order - Konfigurasi akses jaringan lokal (LAN) via 0.0.0.0:8000, ALLOWED_HOSTS, dan CSRF_TRUSTED_ORIGINS otomatis - Script pembuka firewall Windows (buka_firewall_lan.bat) dan menu interaktif run.bat - Skema migrasi 0019_consumableitem_consumabletransaction - Seeder 11 item consumable riil (seed_consumables.py) - Test suite komprehensif (41 automated tests, 100% lulus) - Pipeline CI/CD GitHub Actions (.github/workflows/ci.yml)
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@echo off
|
||||
title Buka Port 8000 Windows Firewall - PT. KMH
|
||||
cd /d "%~dp0"
|
||||
|
||||
echo ==============================================================================
|
||||
echo KONFIGURASI WINDOWS FIREWALL - AKSES JARINGAN LAN (PORT 8000)
|
||||
echo Sistem Manajemen Aset IT - PT. Kerinci Hydropower
|
||||
echo ==============================================================================
|
||||
echo.
|
||||
|
||||
:: Cek hak administrator
|
||||
net session >nul 2>&1
|
||||
if %ERRORLEVEL% NEQ 0 (
|
||||
echo [PERHATIAN] File ini membutuhkan izin Administrator.
|
||||
echo.
|
||||
echo Silakan TUTUP jendela ini, lalu:
|
||||
echo KLIK KANAN pada file 'buka_firewall_lan.bat' -^> Pilih 'Run as administrator'.
|
||||
echo.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo [INFO] Mendaftarkan Inbound Rule TCP Port 8000 di Windows Firewall...
|
||||
netsh advfirewall firewall add rule name="ITAM PT KMH (Port 8000)" dir=in action=allow protocol=TCP localport=8000 profile=any >nul 2>&1
|
||||
|
||||
if %ERRORLEVEL% EQU 0 (
|
||||
echo.
|
||||
echo ==============================================================================
|
||||
echo [SUKSES] Port 8000 berhasil dibuka pada Windows Firewall!
|
||||
echo.
|
||||
echo Komputer klien dalam satu jaringan LAN / Wi-Fi sekarang dapat mengakses aplikasi
|
||||
echo melalui browser menggunakan URL IP Server (contoh: http://162.198.2.212:8000).
|
||||
echo ==============================================================================
|
||||
) else (
|
||||
echo.
|
||||
echo [GAGAL] Terjadi kesalahan saat mendaftarkan aturan firewall.
|
||||
)
|
||||
|
||||
echo.
|
||||
pause
|
||||
exit /b 0
|
||||
Reference in New Issue
Block a user