PURCHASE INVOICE EXTRACTION: This document is a purchase invoice, vendor bill, expense receipt, or similar accounts payable document. HEADER EXTRACTION PRIORITY: 1. Vendor/Supplier name — look for company name at top, letterhead, or "From" section 2. Invoice number — look for "Invoice #", "Bill #", "Reference", "Document No." 3. Invoice date — look for "Date", "Invoice Date", "Bill Date" 4. Due date — look for "Due Date", "Payment Due", "Terms" 5. Currency — detect from currency symbols or explicit currency codes 6. Total amount — the final total including tax 7. Tax amount — VAT, GST, sales tax, or similar tax total 8. Payment terms — Net 30, Net 60, Due on Receipt, etc. LINE ITEM EXTRACTION: - Each line represents a purchased good or service - Extract: description, quantity, unit price, line amount, tax per line (if shown) - For GL Account suggestion: categorize each line based on its description (e.g., "Office Supplies", "Professional Services", "IT Equipment", "Travel & Entertainment", "Utilities") - For Product suggestion: identify specific products or services if mentioned - Preserve the original line descriptions from the document SPECIAL HANDLING: - If the document shows multiple tax rates, extract the tax amount per line where visible - If shipping/freight is a separate charge, extract it as its own line item - If discounts are applied, show them as negative amounts or note the discount percentage