id
stringlengths 9
11
| image
imagewidth (px) 436
4.96k
| target_text
stringlengths 956
6.36k
| page_texts
stringlengths 17.1k
18.1k
|
|---|---|---|---|
train-619-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "1.60", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "28.20", "rounding_adjustment": null, "commission_fee": null, "due_amount": "28.20", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "71.80", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "VM McChicken", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "15.90", "sub_items": [{"name": "M Coke", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": null}, {"name": "M Fries", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": null}], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "SundaeChoc", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "6.40", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "McChicken", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "4.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "ChocTop", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "1.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["Golden Arches Restaurants Sdn Bhd (65351-M) Level 6, Bangunan TH, Damansara Uptown3 No.3, Jalan S21/39,47400 Petaling Jaya Selangor (GST ID No: 000504664064) McDonald's MRR2 Kepong DT(#251) Tel No. 03-6259-6498 TAX INVOICE MFY Side 1 INV# 002511900048269 ORD #95 -REG #19- 24/07/2016 14:21:51 QTY ITEM TOTAL 2 VM McChicken 15.90 2 M Coke 2 M Fries 1 McChicken 4.00 2 SundaeChoc 6.40 1 ChocTop 1.90 TakeOut Total (incl GST) 28.20 Total Rounded 28.20 Cash Tendered 100.00 Change 71.80 TOTAL INCLUDES 6% GST 1.60 Thank You and Please Come Again. Customer Service Hotline : 03-2726-5600"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-429-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": "169.08", "non_taxable_amount": "12.00", "net_total": null, "tax_rate": null, "tax_amount": "10.14", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "191.20", "rounding_adjustment": "-0.02", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": "191.20", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "PIL CHI-KIT TECK AUN (12'S)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "15.80", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-1.58"], "gross_total": "14.22"}, {"name": "PANADOL ACTIFAST 20'S", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "12.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "12.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "ALPHA LIPID LIFE LINE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "165.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "165.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["BEMED (SP) SDN. BHD. No.49,Jalan Dinar G U3/G, Subang Perdana, 40150 Shah Alam, Selangor D.E. 03-7845 8155 GST Reg : 001734164480 IBL 4 CASH RECEIPT 14/May/2017 02:56:39 CB# : 59581331715 Cashler : mimle 0 Total Price Qty Cade&Desc SR PIL CHI-KIT TECK AUN (12'S) 14.22 -1.58 15.80 1 160160 ZRL PANADOL ACTIFAST 20'S 12.00 12.00 1 458140 SR ALPHA LIPID LIFE LINE 165.00 165.00 1 184810 3 3 Type: 191.22 SubTotal: -0.02 Rounding Adj: 191.20 Total inclusive GST: 191.20 VISA 06 Tax Amount GST Summary: (MYR) (MYR) SR 10.14 169.08 ZRL 0.00 12.00 ONG GUAT CHYE 1q1-20 Palnts : 1,305 Thank you. Please come again."]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-584-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "92.80", "tax_rate": "6%", "tax_amount": "5.57", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "98.37", "rounding_adjustment": "-0.02", "commission_fee": null, "due_amount": "98.35", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "1.65", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "6", "line_items": [{"name": "KIT KAT SHARE B", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "14.99SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-5.00"], "gross_total": null}, {"name": "BERYLS TTOW", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "21.10SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "VH BOX 180G SE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "18.29SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-5.40"], "gross_total": null}, {"name": "VH BOX 180G RA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "18.29SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-5.40"], "gross_total": null}, {"name": "LINDT DT125", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "31.60SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "MILO NUGGETS FU", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1X", "net_price": null, "tax_amount": null, "gross_price": "9.90SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Ao4Hor AEON CO. (M) BHD (126926-H) 3RD FLR, AEON TAMAN MALURI SC JLN JEJAKA, TAMAN MALURI CHERAS, 55100 KUALA LUMPUR GST ID : 002017394688 SHOPPING HOURS SUN-THU:1000 HRS - 2230 HRS FRI-SAT:1000 HRS - 2300 HRS 14.99SR 1x 000008204363 KIT KAT SHARE B -5.00 Item promo @9.99 21.10SR 1x 000001018506 BERYLS TTOW 18.29SR 1x 000001057437 VH BOX 180G SE -5.40 Item promo @12.89 18.29SR 1x 000001057436 VH BOX 180G RA -5.40 Item promo @12.89 31.60SR 1x 000001011536 LINDT DT125 9.90SR 1X 000005914876 MILO NUGGETS FU 98.37 Sub-total 98.37 Total Sales Incl GST -0.02 Rounding Adj 98.35 Total After Adj Incl GST 100.00 CASH 1.65 Change Amt Item Count 6 Invoice No: 2018042210100080567 Tax Amount GST Summary 5.57 92.80 SR @ 6% 5.57 92.80 Total 1010 008 0080567 22/04/2018 19:26 0307614 PJ HAZIQ AEON PERMAS JAYA TEL 1-300-80-AEON (2366) THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-331-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "1.89", "tax_rate": null, "tax_amount": "0.11", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "2.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "2.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "2.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "MAX STAPLE 10-1M", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.00", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "2.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANYOSTATIONERYSHOP NO. 31G&33G, JALAN SETIA INDAH X,013/X 40170 SETIA ALAM Mobile Whatsapps : +6012-918 7937 Tel: +603-3362 4137 GST ID No: 001531760640 TAX INVOICE Owned By: : SANYU SUPPLY SDN BHD (1135772-K) CASH SALES COUNTER 1. 2011-0025 MAX STAPLE 10-1M 2X 1.0000 SR 2.00 Total Sales Inclusive GST @6% 2.00 Discount 0.00 Total 2.00 Round Adj 0.00 Final Total 2.00 CASH 2.00 CHANGE 0.00 GST Summary Amount(RM) Tax(RM) SR @ 6% 1.89 0.11 INV NO: CS-SA-0122858 Date : 07/11/2017 Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEPTHIS RECEIPT FOR PROVEOF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook : Sanyu.stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-620-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": "144.98", "non_taxable_amount": "26.40", "net_total": null, "tax_rate": "6%", "tax_amount": "8.70", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": "0.02", "commission_fee": null, "due_amount": "180.10", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": null, "creditcard_amount": "180.10", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "IBUPROFEN 400MG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.00", "quantity": "3.00", "net_price": null, "tax_amount": null, "gross_price": "9.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "AMOXICAP 500MG CAPSU", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "6.00", "quantity": "2.00", "net_price": null, "tax_amount": null, "gross_price": "12.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "NOFLUX TAB 90MG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.00", "quantity": "5.00", "net_price": null, "tax_amount": null, "gross_price": "19.98", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "FEBRICOL -RX", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.70", "quantity": "2.00", "net_price": null, "tax_amount": null, "gross_price": "5.40", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "VITAMORE EPO 1000MG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "68.00", "quantity": "2.00", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-28.00"], "gross_total": "108.00"}, {"name": "NOVA ROSELLE &F VIT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "28.60", "quantity": "1.00", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-2.90"], "gross_total": "25.70"}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['GREEN LANE PHARMACY SDN BHD 33 JLN BANGAU 1,KEPONG BARU, 52100 KEPONG,KL TEL : 62760693 FAX : 62760693 BRN : 631002-U GST No : 001888309248 TAX INVOICE Inv No : 16-073042 DATE : 12/13/2016 9:52:15 AM 1)9557892102639 IBUPROFEN 400MG 10 3.00 X 3.00 9.00 Z 2)0253K AMOXICAP 500MG CAPSU 2.00 X 6.00 12.00 Z 3)9557892201011 NOFLUX TAB 90MG 10 19.98 * 5.00 X 4.00 4)9556492002837K FEBRICOL -RX 10 2.00 X 2.70 5.40 Z 5)9316254866387 VITAMORE EPO 1000MG 2.00 X 68.00 -28.00 108.00 * DISC 6)9555197602366 NOVA ROSELLE &F VIT 1.00 X 28.60 DISC -2.90 25.70 * Rounding : 0.02 TOTAL 180.10 : ( GST : 8.70 ) PAYMENT : TOTAL PAYMENT : 180.10 0.00 CHANGE : > VISA 180.10 Rate % TOTAL GST * : 6% 144.98 8.70 26.40 Z : 0% 0.00 LEE MEI YEIN Prev Balance : 2651 Points Earn : 171 (Complete) FARMASI ALPHA.COM GOODS SOLD ARE NOT RETURNABLE * Total Sales Inclusive GST @ 6% *']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-21-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": null, "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM28.03", "rounding_adjustment": "RM0.02", "commission_fee": null, "due_amount": "RM28.05", "prior_balance": null, "net_due_amount": null, "paid_amount": "RM28.05", "change_amount": "RM0.00", "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "6", "line_items": [{"name": "KK KACANG GORENG 400G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "@7.20", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "21.60", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "TERUNG PENDEK", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.15", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.15", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "HALIA MUDA LOCAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.30", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "BAWANG BESAR INDIA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.98", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "0.98", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SUPER.SEVEN CASH & CARRY SEN 3HD 28-0 (590150-A) PASARAYA BORONG SUPER SEVEN NO. 1 Jalan Euro 1 Cff Jalan Batu Tiga Sungai Bulch Seksyen U3 Shah Alam,40150 p:/sM.sperl.co.y TEL : 03-78590861 FAX : 03-78590864 GST ID : 000639090588 TAX INVOICE TAX INVOICE NO : 138652 COUNTER :002 CPERATOR [NORIZZATI BT MOHD ZU-CASHIER] 22-06-2017 10:20:00 AM (RM) : KK KACANG GORENG 400G @7.20 21.60 SR 5556524004265 *3 TERUNG PENDEK 43.15 42066 3.15 ZR *1 HALIA MUDA LOCAL @2.30 42006 *1 2.30 ZR BAWANG BESAR INDIA G0.98 42901 *1 0.98 ZR QUANTITY : 6 Units Total Sales (Incl. GST @6) RM28.03 Rounding Adjustment RM0.02 Net Total RM28.05 CASH Payment Method Received Cash RM28.05 Change RM0.00 GST Summary Sales Amt Tax Amt (RM) (RM) SR (6%) 20.38 1.22 V X ZR (0%) 6.43 0.00 -L SE VERIFY YOUR RECEIPT BEFC ORE LEAVING THE COUNTER. GOODS SOLD ARE NOT RETURNABLE. THANK YOU']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-313-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "327.00", "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "327.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "327.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "327.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "9", "line_items": [{"name": "REPAIR ENGINE POWER SPRAYER (1UNIT) workmanship & service", "net_unit_price": "80.00", "unit_tax": null, "gross_unit_price": "80.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "80.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "GIANT 606 OVERFLOW: ASSY", "net_unit_price": "160.00", "unit_tax": null, "gross_unit_price": "160.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "160.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "ENGINE OIL", "net_unit_price": "10.00", "unit_tax": null, "gross_unit_price": "10.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "10.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "GREASE FOR TOOLS40ML (AKODA)", "net_unit_price": "17.00", "unit_tax": null, "gross_unit_price": "17.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "17.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "EY20 PLUG CHAMPION", "net_unit_price": "6.00", "unit_tax": null, "gross_unit_price": "6.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "6.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "STARTER TALI", "net_unit_price": "8.00", "unit_tax": null, "gross_unit_price": "8.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "8.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "EY20 STARTER HANDLE", "net_unit_price": "10.00", "unit_tax": null, "gross_unit_price": "10.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "10.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "HD40 1L COTIN", "net_unit_price": "18.00", "unit_tax": null, "gross_unit_price": "18.00", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "36.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['tan chay yee SOON HUAT MACHINERY ENTERPRISE JM0352019-K) NO.53 JALAN PUTRA 1, TAMAN SRI PUTRA, 81200 JOHOR BAHRU JOHOR FAX - 07-5624059 TEL: : 0/.5947280/016799397 SOONHUAT20000HOTMALCOM GST ID - 002116837376 CASH SALES Date: 11/01/2019 CS00004040 Doc No. USER Time: 09:44:00 Cashier Ref.: Salesperson : Amount Tax Qty S/Price S/Price Item 80.00 80.00 1 80.00 1072 REPAIR ENGINE POWER SPRAYER (1UNIT) workmanship & service 160.00 160.00 1 160.00 70549 GIANT 606 OVERFLOW: ASSY 17.00 17,00 17.00 1071 1 ENGINE OIL 10.00 10.00 10.00 70791 1 GREASE FOR TOOLS40ML (AKODA) 6.00 6.00 6.00 70637 1 EY20 PLUG CHAMPION 8.00 8.00 1 8.00 1643 STARTER TALI 10.00 10.00 1 10.00 70197 EY20 STARTER HANDLE 18.00 36.00 2 18.00 70561 HD40 1L COTIN 327 00 9 Total Qty: Total Sales : 327.00 0.00 Discount 1 327.00 Total 1 0.00 0.00 Rounding a 327.00 Total Sales : CASH : 327.00 Change : 0.00 GOODS SOLD ARE NOT RETURNABLE, THANK YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-332-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "21.70", "tax_rate": null, "tax_amount": "1.30", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "23.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "27.00", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "3", "menuquantity_sum": "6", "line_items": [{"name": "S SUS304 HOOK", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "9.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "9.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "S WOODEN SHEET 60*20CM", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.90", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "7.60", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "LAVA PAIL PL623 3 GALLON", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "5.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MR. D.I.Y. (M) SDN BHD CO-RE6:860671-D LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No :000306020352) (TESCO EXTRA ARA DAMANSARA) -TAX INVOICE- *S SUS304 HOOK 48804 TZ11 : 12/120 1 X 9.90 9.90 9073805 *S WOODEN SHEET 60*20CM AR11 : 12/192 4 X 1.90 7.60 9064189 LAVA PAIL PL623 3 GALLON *S WA53 : 12/48 1 X 9555047308370 5.50 5.50 Qty(s) : 6 Item(s) : 3 RM 23.00 TOTAL INCL. GST@6% CASH RM 50.00 RM 27.00 CHANGE GST Summary Amt(RM) Tax(RM) GST S86% 21.70 1.30 T1 R000235438 27-04-18 16:40 SH01 ZJ42 OPERATOR TADT - MUHAMMAD HAFIDZ EXCHANGE ARE ALLOWED WITHIN 7 DAY WITH RECEIPL, STRICTLY NO CASH REFUND. s bvy Woodn sheet']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-446-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "4.43", "tax_rate": null, "tax_amount": "0.26", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "4.70", "rounding_adjustment": "0.01", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.30", "cash_amount": "5.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "2", "menuquantity_sum": "2", "line_items": [{"name": "350ML CALPIS ORIGINAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.49", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.49", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "500ML COKE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.20", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.20", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MEGAH RETAIL SDN BHD 3-7. GROUND FLOOR, JLN PURTA DENGKIL 1 TMN PUTRA DENGKIL 43800 DENGKIL. SELANGOR DARUL EHSAN SST Reg No. : 000936312832 TAX INVOICE Inv No.:H019E09/0101 03/290900 1:12:43 PM Promoter:00 09/05/2018 Amt Qty U/Price Item Code 350ML CALPIS ORIGINAL 2.49 1 2.49 SR-9556404118038 500ML COKE 1 2.20 2.20 ER-9555589200392 Sub Total : RM 4.69 Rounding Adj : RM 0.01 Total Sales Inclusive eeT,: . RM 4.70 Cash): RM 5.00 Change : RM 0.30 GST Summary GST Amt Amount SRB6.00% 4.43 0.26 ZR80.00% 0.00 0.00 No. of Item : 2 Total Qty. : 2 PrintedBy : 290900 GOODS SOLD ARE NOT RETURNABLE THANK YOU, PLEASE COME AGAIN']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-155-0
| "{\"base_taxable_amount\": null, \"net_discounts\": [], \"net_service_charge\": null, \"taxable_amou(...TRUNCATED)
| "\n Extract the information in JSON format according to the following JSON schema: {\n \(...TRUNCATED)
|
End of preview. Expand
in Data Studio
README.md exists but content is empty.
- Downloads last month
- 18