Update app.py
Browse files
app.py
CHANGED
@@ -85,7 +85,7 @@ def parse_po_items_with_filters(text):
|
|
85 |
description_accumulator.append(line.strip())
|
86 |
|
87 |
# Match Qty, Unit, Unit Price, and Total Price
|
88 |
-
qty_match = re.search(r"(?P<Qty>\d+)\s+(Nos\.|Set)", line)
|
89 |
if qty_match:
|
90 |
print(f"Qty match found: {qty_match.group('Qty')} {qty_match.group(2)}") # Debugging
|
91 |
current_item["Qty"] = qty_match.group("Qty")
|
|
|
85 |
description_accumulator.append(line.strip())
|
86 |
|
87 |
# Match Qty, Unit, Unit Price, and Total Price
|
88 |
+
qty_match = re.search(r"(?P<Qty>\d+)\s+(Nos\.|Set|pcs)", line)
|
89 |
if qty_match:
|
90 |
print(f"Qty match found: {qty_match.group('Qty')} {qty_match.group(2)}") # Debugging
|
91 |
current_item["Qty"] = qty_match.group("Qty")
|