Skip to content

baazithh/Ledger-Logic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

80 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’³ Ledger Logic: BNPL Analytics Engine

🎯 Objective

To transform raw ERP transaction logs into an AI-ready Star Schema for a Buy Now, Pay Later (BNPL) ecosystem.

πŸ—οΈ Architecture

  • Raw Layer: Simulated ERP logs via Python.
  • Silver Layer: Structured SQL models (Fact & Dimension tables).
  • Gold Layer: AI-Semantic views for automated reporting.

πŸ› οΈ Key Features

  • Installment Logic: Automatically calculates 1/4th payment splits.
  • Data Quality Suite: Includes automated checks for null values and financial discrepancies.
  • AI-Ready Documentation: YAML-based glossary for LLM grounding.

πŸš€ How to Run

  1. python scripts/generate_erp.py
  2. sqlite3 data/ledger_raw.db < scripts/model_data.sql
  3. python scripts/quality_check.py

About

A high-integrity Analytics Engineering platform simulating a BNPL (Buy Now, Pay Later) ecosystem. It transforms raw ERP-style transaction logs into an AI-ready Star Schema using SQL. Features include a centralized Metrics Layer, automated financial integrity checks, and a documentation framework designed for LLM grounding.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors