aal-bd/po-reconciliation-filter
π¦ 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
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 readyv4 Grouped PO Detection
The source file sometimes places multiple POs in a single cell, separated by /:
7100026049/ 4300195616/4628 /4625/ 4605 /4604This 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-filterFull URL:
https://{your-hf-username}-po-reconciliation-filter.hf.space/Deployment Instructions
1. Create the HF Space
- Go to huggingface.co/new-space
- Space name:
po-reconciliation-filter - SDK: Docker
- Visibility: Private (recommended for enterprise use)
2. Upload These 4 Files
Upload all 4 files to the root of your new Space:
app.pyDockerfilerequirements.txtREADME.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 workGradio 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.
