il-invoice-organizer
IL Invoice Organizer
Instructions
Step 1: Identify Invoice Type and Source
Determine what documents the user has:
| Document Type | Hebrew | VAT Reclaimable | Categorization |
|---|---|---|---|
| Tax Invoice (300) | חשבונית מס | Yes - extract VAT | Full categorization |
| Tax Invoice/Receipt (305) | חשבונית מס/קבלה | Yes - extract VAT | Full categorization |
| Receipt only (320) | קבלה | No VAT to reclaim | Payment record only |
| Credit Invoice (310) | חשבונית זיכוי | Yes - negative VAT | Reverse original category |
| Proforma (330) | חשבונית פרופורמה | No - not a tax document | For reference only |
Key: Only tax invoices (300, 305) allow VAT input deduction (nikui mas tsumos).
Step 2: Extract Invoice Data
Parse the following fields from each invoice:
| Field | Hebrew | Where to Find | Validation |
|---|---|---|---|
| Supplier name | שם הספק | Header | Must match TIN |
| Supplier TIN | מספר עוסק | Header | 9 digits with check digit |
| Invoice number | מספר חשבונית | Header | Sequential |
| Date | תאריך | Header | DD/MM/YYYY format |
| Net amount | סכום לפני מע"מ | Line items sum | Before VAT |
| VAT amount | סכום מע"מ | VAT line | = Net * 0.18 |
| Total amount | סכום כולל | Bottom | = Net + VAT |
| Allocation number | מספר הקצאה | If above threshold | SHAAM allocated |
Step 3: Extract VAT (1/6 Rule)
For Israeli invoices where only the total (gross) amount is visible:
# VAT extraction from gross amount (כלל השישית)
vat_rate = 0.18 # 18% standard rate
gross_amount = 1180 # סכום כולל מע"מ
# Method: VAT = gross * (rate / (1 + rate)) = gross * (18/118)
vat_amount = gross_amount * (vat_rate / (1 + vat_rate))
# = 1170 * (0.18 / 1.18) = 1180 * 0.1525 = 180
net_amount = gross_amount - vat_amount
# = 1180 - 180 = 1000
Shortcut: VAT = Total / 6.556 (approximately 1/6 of the gross, hence "klal hashishit")
Step 4: Categorize by Tax Authority Standards
Assign each expense to a Tax Authority category:
| Category | Hebrew | Expense Code | Common Examples |
|---|---|---|---|
| Salary & wages | שכר עבודה | 10 | Employee salaries, bonuses |
| Subcontractors | קבלני משנה | 20 | Freelancer invoices |
| Rent | שכירות | 30 | Office, warehouse rent |
| Office supplies | חומרי משרד | 40 | Paper, toner, supplies |
| Communications | תקשורת | 50 | Phone, internet, hosting |
| Professional services | שירותים מקצועיים | 60 | Legal, accounting, consulting |
| Vehicle expenses | רכב | 70 | Fuel, maintenance, insurance |
| Travel | נסיעות | 80 | Flights, hotels, per diem |
| Marketing | שיווק ופרסום | 90 | Advertising, events |
| Insurance | ביטוח | 100 | Business insurance |
| Depreciation | פחת | 110 | Equipment, computers |
| Other | אחר | 999 | Miscellaneous |
Use scripts/categorize_invoices.py for automatic categorization.
Step 5: Identify Business Type
Determine supplier and customer business status:
| Status | Hebrew | VAT Treatment | Invoice Type |
|---|---|---|---|
| Osek Murshe | עוסק מורשה | Charges VAT, can deduct input VAT | Tax Invoice (300/305) |
| Osek Patur | עוסק פטור | No VAT charged (under threshold) | Receipt only (320) |
| Amuta (Non-profit) | עמותה | Usually no VAT | Receipt |
| Malkar (Non-profit) | מלכ"ר | No VAT | Receipt |
Important: You can only deduct input VAT (mas tsumos) from tax invoices issued by Osek Murshe suppliers. Receipts from Osek Patur do not have VAT to deduct.
Step 6: Generate Accountant-Ready Export
Organize the data for the accountant (ro'eh cheshbon):
Output format (CSV/Excel):
Date, Supplier, TIN, Invoice#, Category, Net, VAT, Total, Notes
15/01/2025, חברת אלפא, 515000000, 1234, קבלני משנה, 10000, 1700, 11700, שירותי פיתוח
Include summary:
- Total expenses by category
- Total input VAT (mas tsumos) to reclaim
- Missing invoices or data gaps flagged
- Separate section for non-deductible items
Examples
Example 1: Monthly Invoice Organization
User says: "I have 30 invoices from this month. Help me organize them for my accountant" Actions:
- Collect: Invoice images or text data from user
- Parse: Extract supplier, amount, VAT, date from each
- Categorize: Assign Tax Authority category per Step 4
- Validate: Check TIN format, VAT calculation, allocation numbers
- Run
python scripts/categorize_invoices.py --input invoices.csv - Export: Generate accountant-ready CSV with summary Result: Organized expense report with VAT summary ready for accountant
Example 2: VAT Extraction from Receipts
User says: "I paid 5,850 NIS total for cloud services. What is the VAT portion?" Actions:
- Apply 1/6 rule: VAT = 5,850 * (0.18 / 1.18) = 892.37 NIS
- Net amount: 5,850 - 892.37 = 4,957.63 NIS
- Categorize: Communications (code 50) for cloud services
- Note: Verify supplier is Osek Murshe and issued tax invoice Result: VAT of 892.37 NIS extractable, net expense 4,957.63 NIS in Communications category
Example 3: Osek Patur Invoice Handling
User says: "I got an invoice from a freelance designer, but there is no VAT line" Actions:
- Check: Is the supplier Osek Patur (עוסק פטור)?
- If Osek Patur: No VAT to deduct, record full amount as expense
- Categorize: Professional services (code 60) or Marketing (code 90)
- Note: Request the supplier's TIN and verify their status Result: Full amount recorded as expense with no VAT deduction, flagged for accountant
Bundled Resources
Scripts
scripts/categorize_invoices.py-- Categorizes Israeli invoices by Tax Authority expense codes, extracts VAT, and generates accountant-ready reports. Run:python scripts/categorize_invoices.py --help
References
references/expense-categories.md-- Complete list of Tax Authority expense categories with codes, common examples, and special rules for deductibility (vehicle 2/3 rule, entertainment limits). Consult when categorizing unusual expenses.
Gotchas
- Agents often calculate VAT as
amount * 0.18when extracting from a total, but the correct formula to extract VAT from a VAT-inclusive amount istotal / 1.18 * 0.18(or equivalentlytotal * 18/118). This "1/6 rule" is specific to Israeli bookkeeping. - Osek Patur (exempt dealer) invoices have no VAT component. Agents may still try to extract VAT from these invoices, producing incorrect bookkeeping entries.
- Israeli invoice numbers are not globally unique. Different suppliers can have the same invoice number. Always index by supplier + invoice number combination.
- Hebrew OCR on scanned invoices frequently misreads the characters vav (ו) and zayin (ז), and confuses final-mem (ם) with samekh (ס). Verify extracted amounts and names.
Troubleshooting
Error: "VAT amount doesn't match"
Cause: Rounding differences between line-item VAT and total VAT Solution: Israeli invoices may have rounding differences of up to 1 NIS. Use the VAT amount printed on the invoice (not recalculated). If no VAT line exists, use the 1/6 rule from Step 3.
Error: "Cannot determine business type"
Cause: Invoice does not clearly state Osek Murshe or Osek Patur Solution: Look for "עוסק מורשה" on the invoice. Check TIN on Tax Authority website. If unclear, treat as Osek Patur (no VAT deduction) and flag for accountant review.
Error: "Expense category unclear"
Cause: Invoice description is vague or multi-category Solution: Use the primary purpose of the expense. When in doubt, assign to "Other" (code 999) and let the accountant reclassify. Common confusion: software subscriptions (Communications 50, not Office supplies 40).
More from skills-il/tax-and-finance
shekel-currency-converter
Convert currencies to/from Israeli New Shekel (NIS/ILS) using Bank of Israel official exchange rates. Use when user asks to convert shekels, NIS, ILS, asks about exchange rates, "shaar yatzig" (representative rate), or needs currency conversion for Israeli tax or business purposes. Supports 30+ currencies with current and historical rates. Do NOT use for cryptocurrency or unofficial money exchange rates.
17israeli-arnona-optimizer
Calculate municipal property tax (arnona) for Israeli properties, check discount eligibility, and draft appeal letters to arnona committees. Use when a user needs to estimate arnona payments by municipality, zone, and property usage type, verify eligibility for discounts (olim, soldiers, elderly, disabled, low income, students, single parents), or prepare formal appeals with legal references. Covers all major Israeli municipalities including Tel Aviv, Jerusalem, Haifa, and Beer Sheva. Do NOT use for income tax (mas hachnasa), VAT (maam), or national insurance (bituach leumi) calculations, which fall under separate Israeli tax authorities.
16israeli-e-invoice
Generate, validate, and manage Israeli e-invoices (hashbonit electronit) per Tax Authority (SHAAM) standards. Use when user asks to create Israeli invoices, request allocation numbers, validate invoice compliance, or asks about "hashbonit", "e-invoice", "SHAAM", "allocation number", or Israeli invoicing requirements. Supports tax invoice (300), tax invoice/receipt (305), credit invoice (310), receipt (320), and proforma (330) types. Do NOT use for general accounting, bookkeeping, or non-Israeli invoice formats.
16israeli-crypto-tax-reporter
Calculate cryptocurrency capital gains tax per Israeli Tax Authority (Reshut HaMisim) regulations and generate Form 1322/1325 reporting data and Form 1399י advance-payment data (within 30 days of disposal). Use when a user needs to compute crypto tax obligations using FIFO cost basis, classify DeFi income (staking, liquidity mining, airdrops) for Israeli tax purposes, prepare annual tax filing data, understand reporting thresholds and advance payment (mikdamot) requirements, or evaluate the 2025-2026 Voluntary Disclosure Procedure (open until 31 Aug 2026). Covers Section 88 of the Income Tax Ordinance, Circular 2018/05, the 25% capital gains rate for individuals, and the 5% surtax on capital income above NIS 721,560 (threshold frozen through 2027). Do NOT use for non-Israeli tax jurisdictions, general income tax calculations, or VAT (maam) on crypto business activities, which require separate professional consultation.
16green-invoice
Integrate Green Invoice (Morning) API for Israeli invoicing, receipts, client management, and payment processing. Use when user asks to create invoices via Green Invoice, generate hashbonit mas through Morning API, manage clients in Green Invoice, set up webhook automation for document creation, query documents or expenses, or mentions "Green Invoice", "Morning", "hashbonit yeruka", "greeninvoice API", Israeli cloud invoicing, or needs to create tax invoice-receipt (cheshbonit mas/kabala). Covers all 13 document types, 8 payment types, client CRUD, item catalog, and webhook integration. Do NOT use for SHAAM allocation numbers or Tax Authority e-invoice compliance (use israeli-e-invoice), Cardcom payment processing (use cardcom-payment-gateway), or Tranzila integration (use tranzila-payment-gateway).
15israeli-pension-advisor
Navigate the Israeli pension and savings system including pension funds (keren pensia), manager's insurance (bituach menahalim), training funds (keren hishtalmut), and retirement planning. Use when user asks about Israeli pension, \"pensia\", \"keren hishtalmut\", retirement savings, \"bituach menahalim\", pension contributions, or tax benefits from savings. Uninformed pension decisions cost hundreds of thousands of NIS over a lifetime. Covers mandatory pension, voluntary savings, and withdrawal rules. Do NOT provide specific investment recommendations or fund performance comparisons.
15