Extracts the total transaction amount from raw OCR receipt text.
Tries labeled patterns (לתשלום, סה"כ, ₪) first; falls back to the
largest comma-formatted number when none match.
Parameters
text: string
Raw OCR text containing one or more candidate amounts.
Returns number|false
The chosen numeric amount, or false when no amount is found.
Extracts the total transaction amount from raw OCR receipt text. Tries labeled patterns (לתשלום, סה"כ, ₪) first; falls back to the largest comma-formatted number when none match.