dschandra commited on
Commit
e7e2d2c
·
verified ·
1 Parent(s): 1015907

Update app.py

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