FastAPI 기반 제조업 웹 ERP 시스템 설계 및 구매·재무 데이터 활용 AI 자동 보고서 생성 구조 제안
Design of a FastAPI-Based Web ERP System for Manufacturing and a Proposed AI-Driven Report Generation Architecture Using Purchase and Financial Data
This study designs a FastAPI-based web ERP architecture to reduce the operational limitations of manufacturing ERP systems that depend on ActiveX, Internet Explorer, and Windows-installed client programs. The legacy environment requires software installation and configuration on each user PC, while updates demand repeated distribution and version control. To address these issues, the proposed system separates a React frontend, FastAPI backend, and PostgreSQL database in an Ubuntu server environment and organizes business functions as REST APIs and independent modules. At the current stage, major legacy ERP screens are being migrated to the web and the backend–database integration is under development. An AI-based reporting function is presented as a future extension rather than a completed implementation. It extracts conditions such as period, supplier, item, and account from a natural-language request, invokes only predefined business APIs, aggregates authorized purchase and financial data, and produces tables and narrative summaries. Future work will evaluate request interpretation accuracy, data consistency, report generation time, and reductions in manual reporting effort using actual ERP data.
한국어
본 연구는 ActiveX, Internet Explorer, Windows 설치형 프로그램에 의존해 온 제조업 ERP의 운영 한계를 줄이기 위해 FastAPI 기반 웹 ERP 구조를 설계하고, 구매·재무 데이터를 활용한 AI 자동 보고서 생성 방안을 제안한다. 기존 시스템은 사용자 PC마다 프로그램과 실행 모듈을 설치해야 하며, 기능 변경 때마다 재배포와 버전 관리가 필요하다는 문제가 있었다. 이를 개선하기 위해 Ubuntu 서버 환경에 React 프런트엔드, FastAPI 백엔드, PostgreSQL 데이터베이스를 분리 배치하고, 업무 기능을 REST API와 모듈 단위로 구성하였다. 현재 단계에서는 기존 ERP의 주요 화면을 웹 환경으로 전환하고 백엔드·데이터베이스 연계 구조를 개발하고 있다. AI 보고서 기능은 구현 완료된 기능이 아니라 후속 확장안으로, 사용자의 자연어 요청에서 기간·거래처·품목·계정과목 등의 조건을 추출한 뒤 허용된 업무 API만 호출하여 데이터를 조회·집계하고 표와 요약문을 생성하도록 설계하였다. 향후 실제 구매·재무 데이터를 이용해 요청 해석 정확도, 조회 결과의 일치성, 보고서 작성 시간 단축효과를 검증할 계획이다.
목차
요약 Abstract 1. 서론 2. 기존 ERP 시스템의 문제점 2.1 기술 및 운영 구조의 제약 2.2 소스 코드와 데이터베이스의 복잡성 2.3 구매·재무 보고 업무의 반복성 3. FastAPI 기반 웹 ERP 시스템 설계 3.1 전체 시스템 구조 3.2 서버 구조와 실행 환경 3.3 백엔드 및 데이터베이스 설계 3.4 웹 ERP 화면 구현 4. 구매·재무 데이터 기반 AI 자동 보고서 생성 구조 4.1 기능 설계 원칙 4.2 처리 절차와 주요 구성요소 4.3 보안 및 검증 계획 5. 결론 REFERENCES