Update app.py
Browse files
app.py
CHANGED
|
@@ -93,6 +93,7 @@ def parse_po_items_with_filters(text):
|
|
| 93 |
else:
|
| 94 |
print(f"No Qty match found in line: {line}") # Debugging
|
| 95 |
|
|
|
|
| 96 |
price_match = re.search(r"(?P<UnitPrice>[\d.]+)\s+(?P<TotalPrice>[\d.]+)$", line)
|
| 97 |
if price_match:
|
| 98 |
print(f"Price match found: {price_match.group('UnitPrice')} {price_match.group('TotalPrice')}") # Debugging
|
|
|
|
| 93 |
else:
|
| 94 |
print(f"No Qty match found in line: {line}") # Debugging
|
| 95 |
|
| 96 |
+
# Match Unit Price and Total Price
|
| 97 |
price_match = re.search(r"(?P<UnitPrice>[\d.]+)\s+(?P<TotalPrice>[\d.]+)$", line)
|
| 98 |
if price_match:
|
| 99 |
print(f"Price match found: {price_match.group('UnitPrice')} {price_match.group('TotalPrice')}") # Debugging
|