CoolFace
Apppublic

aal-bd/po-reconciliation-filter

sourceHugging Facemitupdated 5mo agoView on Hugging Face
0likes
App README

πŸ“¦ PO-Based Order Reconciliation Filter System

Author: Mohammad Ali β€” ANANTA Automation Suite Platform: HuggingFace Docker Space Version: v4.1-HF Base Algorithm: Colab v4 FINAL (100% identical β€” no logic changes)


β˜… What This System Does

Filters a large Order Reconciliation Excel Report down to only the POs you need, preserving 100% of the original formatting β€” merged cells, fonts, colors, borders, column widths, row heights, and freeze panes β€” in the exact order specified.


System Capabilities

FeatureStatus
Pixel-perfect format preservationβœ…
Merged cell rebuildβœ…
Font / fill / border / alignment copyβœ…
Column widths + row heightsβœ…
Freeze panes + tab colorβœ…
Float PO normalisation (4300187743.0 β†’ "4300187743")βœ…
Grouped PO detection (7100026049/4300195616/4628)βœ…
Abbreviated PO expansion (4628 β†’ 4300194628)βœ…
Output ordered by Needed PO file sequenceβœ…
Row deduplication for shared grouped POsβœ…

Pipeline

Step 1 β€” Parse Needed PO file        β†’ ordered PO list
Step 2 — Scan Source (read-only)     → build PO→rows block map
Step 3 β€” Build ordered row list      β†’ with deduplication
Step 4 β€” Load Source (full mode)     β†’ access styles & merges
Step 5 β€” Create output workbook      β†’ copy widths, freeze panes, tab color
Step 6 β€” Copy header row (row 1)     β†’ with full style
Step 7 β€” Copy PO data rows           β†’ in Needed PO file order
Step 8 β€” Translate merge ranges      β†’ consecutive-row validation
Step 9 β€” Save output .xlsx           β†’ download ready

v4 Grouped PO Detection

The source file sometimes places multiple POs in a single cell, separated by /:

7100026049/ 4300195616/4628 /4625/ 4605 /4604

This resolves to: 7100026049, 4300195616, 4300194628, 4300194625, 4300194605, 4300194604

Abbreviated PO Rule: 4628 β†’ prefix of last full PO (430019) + 4628 = 4300194628

A row is included if any PO in its group matches the Needed PO list.


HF Space Name (Recommended)

po-reconciliation-filter

Full URL:

https://{your-hf-username}-po-reconciliation-filter.hf.space/

Deployment Instructions

1. Create the HF Space

  1. 1.Go to huggingface.co/new-space
  2. 2.Space name: po-reconciliation-filter
  3. 3.SDK: Docker
  4. 4.Visibility: Private (recommended for enterprise use)

2. Upload These 4 Files

Upload all 4 files to the root of your new Space:

  • β€”app.py
  • β€”Dockerfile
  • β€”requirements.txt
  • β€”README.md

3. Space will auto-build

HuggingFace will auto-detect the Dockerfile and start building. Build time: ~3–5 minutes (no Playwright β€” much faster than the RPA suite).

4. No configuration needed

All settings are embedded in app.py. No credentials, no API keys, no environment variables required.


Version History

v4.1-HF  β€” HuggingFace Docker deployment
           β€’ Enterprise-grade UI redesign (dark log monitor, blue banner)
           β€’ OUTPUT_DIR = /home/user/app/outputs (HF-compatible)
           β€’ server_name="0.0.0.0", server_port=7860
           β€’ No share=True (HF handles public URL)
           β€’ All processing logic: IDENTICAL to Colab v4 FINAL

v4.0     β€” Colab FINAL release
           β€’ Grouped PO detection & abbreviated PO expansion
           β€’ Row deduplication for shared grouped POs
           β€’ Full merge + format preservation

v3.x     β€” Previous format-preservation work

Gradio Version Note

Pinned to gradio==3.50.2 / gradio_client==0.6.1 β€” same as the enterprise-rpa-sewing-only reference deployment. This avoids the known Gradio/HuggingFace conflict affecting newer releases. Do not upgrade without testing on HF.