Update src/streamlit_app.py

#3
by Bhuvi13 - opened
Files changed (1) hide show
  1. src/streamlit_app.py +7 -0
src/streamlit_app.py CHANGED
@@ -551,6 +551,13 @@ IMPORTANT GUIDELINES:
551
  Example:
552
  Invoice currency = USD β†’ extract the USD bank account.
553
  Invoice currency = GBP β†’ extract the GBP bank account.
 
 
 
 
 
 
 
554
  - Preserve original number formatting (including commas, decimals), Do not include currency symbol for amount field.
555
  - If multiple line items exist, include all of them in the items array
556
  - Use empty string "" for any field that is not present or cannot be clearly identified
 
551
  Example:
552
  Invoice currency = USD β†’ extract the USD bank account.
553
  Invoice currency = GBP β†’ extract the GBP bank account.
554
+
555
+ - REQUIRED: Always populate "bank_acc_name". RULES:
556
+ 1) If a field explicitly labeled as bank account (examples: "Account name", "Account holder", "Beneficiary", "Beneficiary name", "Account:", "Account Name:", "Bank acc name:") exists, set bank_acc_name to that exact text.
557
+ 2) Otherwise set bank_acc_name = sender_name (the value extracted from explicit sender/company fields).
558
+ 3) Always also extract sender_name separately from sender/company sections.
559
+ 4) Never leave bank_acc_name empty unless both bank and sender/company are absent β€” then set bank_acc_name = ""
560
+
561
  - Preserve original number formatting (including commas, decimals), Do not include currency symbol for amount field.
562
  - If multiple line items exist, include all of them in the items array
563
  - Use empty string "" for any field that is not present or cannot be clearly identified