dschandra commited on
Commit
bcbc961
·
verified ·
1 Parent(s): 05d7f75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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