Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
9
11
image
stringlengths
13
15
width
int64
436
4.96k
height
int64
605
7.02k
conversations
listlengths
2
2
train-619-0
train-619-0.jpg
920
1,864
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n[\"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\"]\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-429-0
train-429-0.jpg
708
1,699
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n[\"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.\"]\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-584-0
train-584-0.jpg
4,953
6,993
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n['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']\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-331-0
train-331-0.jpg
623
1,399
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n['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']\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-620-0
train-620-0.jpg
888
2,904
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n['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% *']\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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\"}]}" } ]
train-21-0
train-21-0.jpg
744
1,787
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n['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']\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-313-0
train-313-0.jpg
457
1,170
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n['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.']\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-332-0
train-332-0.jpg
621
1,280
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n['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']\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-446-0
train-446-0.jpg
884
1,854
[ { "from": "human", "value": "Extract the information in JSON format according to the following JSON schema: {\n \"$defs\": {\n \"InvoiceLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the menu item\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax amount per unit\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Unit price including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Quantity ordered (can be decimal for weights/volumes/litres)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price before tax (quantity \\u00d7 net_unit_price)\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total tax amount (quantity \\u00d7 unit_tax)\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price including tax\",\n \"title\": \"Gross Price\"\n },\n \"sub_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceSubLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Additional components or modifications\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Sub Items\"\n },\n \"net_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items before tax\",\n \"title\": \"Net Sub Items Total\"\n },\n \"gross_sub_items_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total price of all sub-items including tax\",\n \"title\": \"Gross Sub Items Total\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined net price of item and sub-items before discounts\",\n \"title\": \"Net Total\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to net total of this item\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"total_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Combined tax amount for item and sub-items\",\n \"title\": \"Total Tax\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to the gross total of this item\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final price including tax and after discounts\",\n \"title\": \"Gross Total\"\n }\n },\n \"title\": \"InvoiceLineItem\",\n \"type\": \"object\"\n },\n \"InvoiceSubLineItem\": {\n \"properties\": {\n \"name\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The name of the sub-item or modification\",\n \"title\": \"Name\"\n },\n \"net_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item before tax\",\n \"title\": \"Net Unit Price\"\n },\n \"unit_tax\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The tax amount per unit of the sub-item\",\n \"title\": \"Unit Tax\"\n },\n \"gross_unit_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The unit price of the sub-item including tax\",\n \"title\": \"Gross Unit Price\"\n },\n \"quantity\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The quantity of the sub-item (can be a decimal for items sold by weight or volume)\",\n \"title\": \"Quantity\"\n },\n \"net_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item before tax\",\n \"title\": \"Net Price\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total tax amount for the sub-item\",\n \"title\": \"Tax Amount\"\n },\n \"gross_price\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total price of the sub-item including tax\",\n \"title\": \"Gross Price\"\n }\n },\n \"title\": \"InvoiceSubLineItem\",\n \"type\": \"object\"\n }\n },\n \"properties\": {\n \"base_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to tax\",\n \"title\": \"Base Taxable Amount\"\n },\n \"net_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to taxable amount before tax calculation\",\n \"title\": \"Net Discounts\",\n \"unordered\": true\n },\n \"net_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to taxable amount before tax calculation\",\n \"title\": \"Net Service Charge\"\n },\n \"taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount that is subject to tax. This is the base amount plus net discounts and net service charges\",\n \"title\": \"Taxable Amount\"\n },\n \"non_taxable_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is not subject to tax\",\n \"title\": \"Non Taxable Amount\"\n },\n \"net_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Sum of taxable and non-taxable amounts with their modifiers\",\n \"title\": \"Net Total\"\n },\n \"tax_rate\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Tax rate percentage applied to taxable amount\",\n \"title\": \"Tax Rate\"\n },\n \"tax_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Total amount of tax on the invoice\",\n \"title\": \"Tax Amount\"\n },\n \"base_gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The base amount that is subject to gross discounts and service charges\",\n \"title\": \"Base Gross Total\"\n },\n \"gross_discounts\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Discounts applied to entire net total after tax\",\n \"title\": \"Gross Discounts\",\n \"unordered\": true\n },\n \"gross_service_charge\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Service charge applied to entire net total after tax\",\n \"title\": \"Gross Service Charge\"\n },\n \"gross_total\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Final amount after all taxes and modifications\",\n \"title\": \"Gross Total\"\n },\n \"rounding_adjustment\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amount added/subtracted to round to desired precision\",\n \"title\": \"Rounding Adjustment\"\n },\n \"commission_fee\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Commission amount deducted from total\",\n \"title\": \"Commission Fee\"\n },\n \"due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount due for the transaction before considering prior balance\",\n \"title\": \"Due Amount\"\n },\n \"prior_balance\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Previous balance or credit applied to the current transaction\",\n \"title\": \"Prior Balance\"\n },\n \"net_due_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The final amount due after applying prior balance\",\n \"title\": \"Net Due Amount\"\n },\n \"paid_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total amount paid by the customer\",\n \"title\": \"Paid Amount\"\n },\n \"change_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount returned to the customer if overpayment occurred\",\n \"title\": \"Change Amount\"\n },\n \"cash_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid in cash\",\n \"title\": \"Cash Amount\"\n },\n \"creditcard_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid by credit card\",\n \"title\": \"Creditcard Amount\"\n },\n \"emoney_amount\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The amount paid using electronic money\",\n \"title\": \"Emoney Amount\"\n },\n \"other_payments\": {\n \"anyOf\": [\n {\n \"items\": {\n \"type\": \"string\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Amounts paid using other methods (e.g., coupons, vouchers)\",\n \"title\": \"Other Payments\",\n \"unordered\": true\n },\n \"menutype_count\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The number of distinct menu item types in the order\",\n \"title\": \"Menutype Count\"\n },\n \"menuquantity_sum\": {\n \"anyOf\": [\n {\n \"type\": \"string\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"The total quantity of all menu items ordered\",\n \"title\": \"Menuquantity Sum\"\n },\n \"line_items\": {\n \"anyOf\": [\n {\n \"items\": {\n \"$ref\": \"#/$defs/InvoiceLineItem\"\n },\n \"type\": \"array\"\n },\n {\n \"type\": \"null\"\n }\n ],\n \"default\": null,\n \"description\": \"Detailed list of individual items in the order\",\n \"identifier_field_name\": \"nm\",\n \"title\": \"Line Items\"\n }\n },\n \"title\": \"Invoice\",\n \"type\": \"object\"\n}, Additional guidelines:\n- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.\n- Extract each element EXACTLY as it appears in the document.\n- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.\n- 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.\n- If no indication of tax is given, assume the amounts to be gross amounts.\n<ocr>\n['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']\n</ocr>\nPlease read the text carefully and follow the instructions.\n<image>" }, { "from": "gpt", "value": "{\"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}]}" } ]
train-155-0
train-155-0.jpg
619
1,511
[{"from":"human","value":"Extract the information in JSON format according to the following JSON sch(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
1