Update: 2026-05-09 17:09:49
This commit is contained in:
@@ -123,42 +123,46 @@ class InvoiceExtractionService
|
||||
## البيانات المطلوبة — أعد JSON فقط بدون أي نص:
|
||||
════════════════════════════════════════
|
||||
{
|
||||
"invoice_number": "string | null",
|
||||
"invoice_date": "YYYY-MM-DD | null",
|
||||
"invoice_type": "cash | credit",
|
||||
"payment_method_code": "013 | 010 | 001",
|
||||
"ubl_type_code": "388",
|
||||
"supplier": {
|
||||
"name": "string | null",
|
||||
"tin": "string | null",
|
||||
"address": "string | null"
|
||||
},
|
||||
"buyer": {
|
||||
"name": "string | null",
|
||||
"tin": "string | null",
|
||||
"national_id": "string | null"
|
||||
},
|
||||
"lines": [
|
||||
"invoices": [
|
||||
{
|
||||
"line_number": 1,
|
||||
"description": "string",
|
||||
"quantity": 1.000,
|
||||
"unit_price": 0.000,
|
||||
"discount": 0.000,
|
||||
"tax_rate": 0.16,
|
||||
"tax_category": "S | Z | E | O",
|
||||
"tax_exempt_reason": "string | null",
|
||||
"line_total": 0.000
|
||||
"invoice_number": "string | null",
|
||||
"invoice_date": "YYYY-MM-DD | null",
|
||||
"invoice_type": "cash | credit",
|
||||
"payment_method_code": "013 | 010 | 001",
|
||||
"ubl_type_code": "388",
|
||||
"supplier": {
|
||||
"name": "string | null",
|
||||
"tin": "string | null",
|
||||
"address": "string | null"
|
||||
},
|
||||
"buyer": {
|
||||
"name": "string | null",
|
||||
"tin": "string | null",
|
||||
"national_id": "string | null"
|
||||
},
|
||||
"lines": [
|
||||
{
|
||||
"line_number": 1,
|
||||
"description": "string",
|
||||
"quantity": 1.000,
|
||||
"unit_price": 0.000,
|
||||
"discount": 0.000,
|
||||
"tax_rate": 0.16,
|
||||
"tax_category": "S | Z | E | O",
|
||||
"tax_exempt_reason": "string | null",
|
||||
"line_total": 0.000
|
||||
}
|
||||
],
|
||||
"subtotal": 0.000,
|
||||
"discount_total": 0.000,
|
||||
"tax_amount": 0.000,
|
||||
"grand_total": 0.000,
|
||||
"currency_code": "JOD",
|
||||
"math_verified": true,
|
||||
"validation_warnings": [],
|
||||
"ai_confidence": 0.95
|
||||
}
|
||||
],
|
||||
"subtotal": 0.000,
|
||||
"discount_total": 0.000,
|
||||
"tax_amount": 0.000,
|
||||
"grand_total": 0.000,
|
||||
"currency_code": "JOD",
|
||||
"math_verified": true,
|
||||
"validation_warnings": [],
|
||||
"ai_confidence": 0.95
|
||||
]
|
||||
}
|
||||
PROMPT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user