id
stringlengths 9
11
| image
imagewidth (px) 436
4.96k
| target_text
stringlengths 956
6.36k
| page_texts
stringlengths 17.1k
18.1k
|
|---|---|---|---|
train-619-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "1.60", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "28.20", "rounding_adjustment": null, "commission_fee": null, "due_amount": "28.20", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "71.80", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "VM McChicken", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "15.90", "sub_items": [{"name": "M Coke", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": null}, {"name": "M Fries", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": null}], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "SundaeChoc", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "6.40", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "McChicken", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "4.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "ChocTop", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "1.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["Golden Arches Restaurants Sdn Bhd (65351-M) Level 6, Bangunan TH, Damansara Uptown3 No.3, Jalan S21/39,47400 Petaling Jaya Selangor (GST ID No: 000504664064) McDonald's MRR2 Kepong DT(#251) Tel No. 03-6259-6498 TAX INVOICE MFY Side 1 INV# 002511900048269 ORD #95 -REG #19- 24/07/2016 14:21:51 QTY ITEM TOTAL 2 VM McChicken 15.90 2 M Coke 2 M Fries 1 McChicken 4.00 2 SundaeChoc 6.40 1 ChocTop 1.90 TakeOut Total (incl GST) 28.20 Total Rounded 28.20 Cash Tendered 100.00 Change 71.80 TOTAL INCLUDES 6% GST 1.60 Thank You and Please Come Again. Customer Service Hotline : 03-2726-5600"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-429-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": "169.08", "non_taxable_amount": "12.00", "net_total": null, "tax_rate": null, "tax_amount": "10.14", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "191.20", "rounding_adjustment": "-0.02", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": "191.20", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "PIL CHI-KIT TECK AUN (12'S)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "15.80", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-1.58"], "gross_total": "14.22"}, {"name": "PANADOL ACTIFAST 20'S", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "12.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "12.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "ALPHA LIPID LIFE LINE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "165.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "165.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["BEMED (SP) SDN. BHD. No.49,Jalan Dinar G U3/G, Subang Perdana, 40150 Shah Alam, Selangor D.E. 03-7845 8155 GST Reg : 001734164480 IBL 4 CASH RECEIPT 14/May/2017 02:56:39 CB# : 59581331715 Cashler : mimle 0 Total Price Qty Cade&Desc SR PIL CHI-KIT TECK AUN (12'S) 14.22 -1.58 15.80 1 160160 ZRL PANADOL ACTIFAST 20'S 12.00 12.00 1 458140 SR ALPHA LIPID LIFE LINE 165.00 165.00 1 184810 3 3 Type: 191.22 SubTotal: -0.02 Rounding Adj: 191.20 Total inclusive GST: 191.20 VISA 06 Tax Amount GST Summary: (MYR) (MYR) SR 10.14 169.08 ZRL 0.00 12.00 ONG GUAT CHYE 1q1-20 Palnts : 1,305 Thank you. Please come again."]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-584-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "92.80", "tax_rate": "6%", "tax_amount": "5.57", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "98.37", "rounding_adjustment": "-0.02", "commission_fee": null, "due_amount": "98.35", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "1.65", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "6", "line_items": [{"name": "KIT KAT SHARE B", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "14.99SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-5.00"], "gross_total": null}, {"name": "BERYLS TTOW", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "21.10SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "VH BOX 180G SE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "18.29SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-5.40"], "gross_total": null}, {"name": "VH BOX 180G RA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "18.29SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-5.40"], "gross_total": null}, {"name": "LINDT DT125", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "31.60SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "MILO NUGGETS FU", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1X", "net_price": null, "tax_amount": null, "gross_price": "9.90SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Ao4Hor AEON CO. (M) BHD (126926-H) 3RD FLR, AEON TAMAN MALURI SC JLN JEJAKA, TAMAN MALURI CHERAS, 55100 KUALA LUMPUR GST ID : 002017394688 SHOPPING HOURS SUN-THU:1000 HRS - 2230 HRS FRI-SAT:1000 HRS - 2300 HRS 14.99SR 1x 000008204363 KIT KAT SHARE B -5.00 Item promo @9.99 21.10SR 1x 000001018506 BERYLS TTOW 18.29SR 1x 000001057437 VH BOX 180G SE -5.40 Item promo @12.89 18.29SR 1x 000001057436 VH BOX 180G RA -5.40 Item promo @12.89 31.60SR 1x 000001011536 LINDT DT125 9.90SR 1X 000005914876 MILO NUGGETS FU 98.37 Sub-total 98.37 Total Sales Incl GST -0.02 Rounding Adj 98.35 Total After Adj Incl GST 100.00 CASH 1.65 Change Amt Item Count 6 Invoice No: 2018042210100080567 Tax Amount GST Summary 5.57 92.80 SR @ 6% 5.57 92.80 Total 1010 008 0080567 22/04/2018 19:26 0307614 PJ HAZIQ AEON PERMAS JAYA TEL 1-300-80-AEON (2366) THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-331-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "1.89", "tax_rate": null, "tax_amount": "0.11", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "2.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "2.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "2.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "MAX STAPLE 10-1M", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.00", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "2.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANYOSTATIONERYSHOP NO. 31G&33G, JALAN SETIA INDAH X,013/X 40170 SETIA ALAM Mobile Whatsapps : +6012-918 7937 Tel: +603-3362 4137 GST ID No: 001531760640 TAX INVOICE Owned By: : SANYU SUPPLY SDN BHD (1135772-K) CASH SALES COUNTER 1. 2011-0025 MAX STAPLE 10-1M 2X 1.0000 SR 2.00 Total Sales Inclusive GST @6% 2.00 Discount 0.00 Total 2.00 Round Adj 0.00 Final Total 2.00 CASH 2.00 CHANGE 0.00 GST Summary Amount(RM) Tax(RM) SR @ 6% 1.89 0.11 INV NO: CS-SA-0122858 Date : 07/11/2017 Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEPTHIS RECEIPT FOR PROVEOF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook : Sanyu.stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-620-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": "144.98", "non_taxable_amount": "26.40", "net_total": null, "tax_rate": "6%", "tax_amount": "8.70", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": "0.02", "commission_fee": null, "due_amount": "180.10", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": null, "creditcard_amount": "180.10", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "IBUPROFEN 400MG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.00", "quantity": "3.00", "net_price": null, "tax_amount": null, "gross_price": "9.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "AMOXICAP 500MG CAPSU", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "6.00", "quantity": "2.00", "net_price": null, "tax_amount": null, "gross_price": "12.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "NOFLUX TAB 90MG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.00", "quantity": "5.00", "net_price": null, "tax_amount": null, "gross_price": "19.98", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "FEBRICOL -RX", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.70", "quantity": "2.00", "net_price": null, "tax_amount": null, "gross_price": "5.40", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "VITAMORE EPO 1000MG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "68.00", "quantity": "2.00", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-28.00"], "gross_total": "108.00"}, {"name": "NOVA ROSELLE &F VIT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "28.60", "quantity": "1.00", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-2.90"], "gross_total": "25.70"}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['GREEN LANE PHARMACY SDN BHD 33 JLN BANGAU 1,KEPONG BARU, 52100 KEPONG,KL TEL : 62760693 FAX : 62760693 BRN : 631002-U GST No : 001888309248 TAX INVOICE Inv No : 16-073042 DATE : 12/13/2016 9:52:15 AM 1)9557892102639 IBUPROFEN 400MG 10 3.00 X 3.00 9.00 Z 2)0253K AMOXICAP 500MG CAPSU 2.00 X 6.00 12.00 Z 3)9557892201011 NOFLUX TAB 90MG 10 19.98 * 5.00 X 4.00 4)9556492002837K FEBRICOL -RX 10 2.00 X 2.70 5.40 Z 5)9316254866387 VITAMORE EPO 1000MG 2.00 X 68.00 -28.00 108.00 * DISC 6)9555197602366 NOVA ROSELLE &F VIT 1.00 X 28.60 DISC -2.90 25.70 * Rounding : 0.02 TOTAL 180.10 : ( GST : 8.70 ) PAYMENT : TOTAL PAYMENT : 180.10 0.00 CHANGE : > VISA 180.10 Rate % TOTAL GST * : 6% 144.98 8.70 26.40 Z : 0% 0.00 LEE MEI YEIN Prev Balance : 2651 Points Earn : 171 (Complete) FARMASI ALPHA.COM GOODS SOLD ARE NOT RETURNABLE * Total Sales Inclusive GST @ 6% *']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-21-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": null, "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM28.03", "rounding_adjustment": "RM0.02", "commission_fee": null, "due_amount": "RM28.05", "prior_balance": null, "net_due_amount": null, "paid_amount": "RM28.05", "change_amount": "RM0.00", "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "6", "line_items": [{"name": "KK KACANG GORENG 400G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "@7.20", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "21.60", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "TERUNG PENDEK", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.15", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.15", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "HALIA MUDA LOCAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.30", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "BAWANG BESAR INDIA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.98", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "0.98", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SUPER.SEVEN CASH & CARRY SEN 3HD 28-0 (590150-A) PASARAYA BORONG SUPER SEVEN NO. 1 Jalan Euro 1 Cff Jalan Batu Tiga Sungai Bulch Seksyen U3 Shah Alam,40150 p:/sM.sperl.co.y TEL : 03-78590861 FAX : 03-78590864 GST ID : 000639090588 TAX INVOICE TAX INVOICE NO : 138652 COUNTER :002 CPERATOR [NORIZZATI BT MOHD ZU-CASHIER] 22-06-2017 10:20:00 AM (RM) : KK KACANG GORENG 400G @7.20 21.60 SR 5556524004265 *3 TERUNG PENDEK 43.15 42066 3.15 ZR *1 HALIA MUDA LOCAL @2.30 42006 *1 2.30 ZR BAWANG BESAR INDIA G0.98 42901 *1 0.98 ZR QUANTITY : 6 Units Total Sales (Incl. GST @6) RM28.03 Rounding Adjustment RM0.02 Net Total RM28.05 CASH Payment Method Received Cash RM28.05 Change RM0.00 GST Summary Sales Amt Tax Amt (RM) (RM) SR (6%) 20.38 1.22 V X ZR (0%) 6.43 0.00 -L SE VERIFY YOUR RECEIPT BEFC ORE LEAVING THE COUNTER. GOODS SOLD ARE NOT RETURNABLE. THANK YOU']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-313-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "327.00", "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "327.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "327.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "327.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "9", "line_items": [{"name": "REPAIR ENGINE POWER SPRAYER (1UNIT) workmanship & service", "net_unit_price": "80.00", "unit_tax": null, "gross_unit_price": "80.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "80.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "GIANT 606 OVERFLOW: ASSY", "net_unit_price": "160.00", "unit_tax": null, "gross_unit_price": "160.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "160.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "ENGINE OIL", "net_unit_price": "10.00", "unit_tax": null, "gross_unit_price": "10.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "10.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "GREASE FOR TOOLS40ML (AKODA)", "net_unit_price": "17.00", "unit_tax": null, "gross_unit_price": "17.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "17.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "EY20 PLUG CHAMPION", "net_unit_price": "6.00", "unit_tax": null, "gross_unit_price": "6.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "6.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "STARTER TALI", "net_unit_price": "8.00", "unit_tax": null, "gross_unit_price": "8.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "8.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "EY20 STARTER HANDLE", "net_unit_price": "10.00", "unit_tax": null, "gross_unit_price": "10.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "10.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "HD40 1L COTIN", "net_unit_price": "18.00", "unit_tax": null, "gross_unit_price": "18.00", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "36.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['tan chay yee SOON HUAT MACHINERY ENTERPRISE JM0352019-K) NO.53 JALAN PUTRA 1, TAMAN SRI PUTRA, 81200 JOHOR BAHRU JOHOR FAX - 07-5624059 TEL: : 0/.5947280/016799397 SOONHUAT20000HOTMALCOM GST ID - 002116837376 CASH SALES Date: 11/01/2019 CS00004040 Doc No. USER Time: 09:44:00 Cashier Ref.: Salesperson : Amount Tax Qty S/Price S/Price Item 80.00 80.00 1 80.00 1072 REPAIR ENGINE POWER SPRAYER (1UNIT) workmanship & service 160.00 160.00 1 160.00 70549 GIANT 606 OVERFLOW: ASSY 17.00 17,00 17.00 1071 1 ENGINE OIL 10.00 10.00 10.00 70791 1 GREASE FOR TOOLS40ML (AKODA) 6.00 6.00 6.00 70637 1 EY20 PLUG CHAMPION 8.00 8.00 1 8.00 1643 STARTER TALI 10.00 10.00 1 10.00 70197 EY20 STARTER HANDLE 18.00 36.00 2 18.00 70561 HD40 1L COTIN 327 00 9 Total Qty: Total Sales : 327.00 0.00 Discount 1 327.00 Total 1 0.00 0.00 Rounding a 327.00 Total Sales : CASH : 327.00 Change : 0.00 GOODS SOLD ARE NOT RETURNABLE, THANK YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-332-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "21.70", "tax_rate": null, "tax_amount": "1.30", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "23.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "27.00", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "3", "menuquantity_sum": "6", "line_items": [{"name": "S SUS304 HOOK", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "9.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "9.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "S WOODEN SHEET 60*20CM", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.90", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "7.60", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "LAVA PAIL PL623 3 GALLON", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "5.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MR. D.I.Y. (M) SDN BHD CO-RE6:860671-D LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No :000306020352) (TESCO EXTRA ARA DAMANSARA) -TAX INVOICE- *S SUS304 HOOK 48804 TZ11 : 12/120 1 X 9.90 9.90 9073805 *S WOODEN SHEET 60*20CM AR11 : 12/192 4 X 1.90 7.60 9064189 LAVA PAIL PL623 3 GALLON *S WA53 : 12/48 1 X 9555047308370 5.50 5.50 Qty(s) : 6 Item(s) : 3 RM 23.00 TOTAL INCL. GST@6% CASH RM 50.00 RM 27.00 CHANGE GST Summary Amt(RM) Tax(RM) GST S86% 21.70 1.30 T1 R000235438 27-04-18 16:40 SH01 ZJ42 OPERATOR TADT - MUHAMMAD HAFIDZ EXCHANGE ARE ALLOWED WITHIN 7 DAY WITH RECEIPL, STRICTLY NO CASH REFUND. s bvy Woodn sheet']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-446-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "4.43", "tax_rate": null, "tax_amount": "0.26", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "4.70", "rounding_adjustment": "0.01", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.30", "cash_amount": "5.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "2", "menuquantity_sum": "2", "line_items": [{"name": "350ML CALPIS ORIGINAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.49", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.49", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}, {"name": "500ML COKE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.20", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.20", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MEGAH RETAIL SDN BHD 3-7. GROUND FLOOR, JLN PURTA DENGKIL 1 TMN PUTRA DENGKIL 43800 DENGKIL. SELANGOR DARUL EHSAN SST Reg No. : 000936312832 TAX INVOICE Inv No.:H019E09/0101 03/290900 1:12:43 PM Promoter:00 09/05/2018 Amt Qty U/Price Item Code 350ML CALPIS ORIGINAL 2.49 1 2.49 SR-9556404118038 500ML COKE 1 2.20 2.20 ER-9555589200392 Sub Total : RM 4.69 Rounding Adj : RM 0.01 Total Sales Inclusive eeT,: . RM 4.70 Cash): RM 5.00 Change : RM 0.30 GST Summary GST Amt Amount SRB6.00% 4.43 0.26 ZR80.00% 0.00 0.00 No. of Item : 2 Total Qty. : 2 PrintedBy : 290900 GOODS SOLD ARE NOT RETURNABLE THANK YOU, PLEASE COME AGAIN']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-155-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "6.60", "tax_rate": "6%", "tax_amount": "0.40", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "7.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "7.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "7.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "2", "line_items": [{"name": "SB-5882 CAMIS NCR BILL BOOK 5\"x8\" (BB-5882)", "net_unit_price": "3.50", "unit_tax": null, "gross_unit_price": null, "quantity": "2X", "net_price": null, "tax_amount": null, "gross_price": "7.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANYOSTATIONERYSHOP NO. 31G&33G, JALAN SETIA INDAH X,013/X 40170 SETIA ALAM Mobile Whatsapps : +6012-918 7937 Tel:+603:3362 4137 GSTID No: 001531760640 TAX INVOICE Owned By: SANYU SUPPLY SDN BHD (1135772-K) CASH SALES COUNTER 1. 2012-0021 SB-5882 CAMIS NCR BILL BOOK 5"x8" (BB-5882) 2X 3.5000 7.00 SR Total Sales Inclusive GST @6% 7.00 Discount 0.00 Total 7.00 Round Adj 0.00 Final Total 7.00 CASH 7.00 CHANGE 0.00 GST Summary Amount(RM) Tax(RM) SR @ 6% 6.60 0.40 INV NO: CS-SA-0129861 11/12/2017 Date : Total Qty: 2 Print Time : Monday, 11 December, 2017 8:47:34 PM Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEPTHIS RECEIPT FOR PROVE OF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook: Sanyu.Stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-252-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "29.81", "tax_rate": "6%", "tax_amount": "1.79", "base_gross_total": null, "gross_discounts": ["RMO.00"], "gross_service_charge": null, "gross_total": "RM31.60", "rounding_adjustment": null, "commission_fee": null, "due_amount": "RM31.60", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "6", "line_items": [{"name": "Omega Half Boiled Egg", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM3.10", "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": [], "gross_total": null}, {"name": "Toasted Bread (Homemade Kaya)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM4.30", "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": [], "gross_total": null}, {"name": "Honey Lemon (Hot)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM3.90", "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": [], "gross_total": null}, {"name": "Honey Lemon (Cold)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM4.20", "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": [], "gross_total": null}, {"name": "House Specialty Hot & Spicy Pan Mee (Dry) (b)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM8.00", "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": [], "gross_total": null}, {"name": "House Specialty Hot & Spicy Pan Mee (Dry) (a)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM8.00", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['FACE TO FACE NOODLE HOUSE FTOF NOODLE HOUSE (002049088-U) No.25, Jalan Metro Perdana Barat 2, Taman Usahawan Kepong, Kepong Utara, 52100 Kuala Lumpur. Tel: 016-680 8777 (GST ID: 001927782400) 21/05/2018Time: 11:12:56AM Date: INV No: 443181 Table: 12-Dine In Counter: C1 TY./ JAMES LELE Staff: Description Tax Amount Code Unit Price Unit Discount 711-Omega Half Boiled Egg 1 RM3.20SR RM 3.20 0.00 706-Toasted Bread (Homemade Kaya) RM4.30SR RM 4.30 1 0.00 837-Honey Lemon (Hot) RM3.90SR 1 RM 3.90 0.00 838-Honey Lemon (Cold) RM 4.20 1 0.00 RM4.20SR 2022-House Specialty Hot & Spicy Pan Mee (Dry) (b) RM8.00SR 0.00 RM 8.00 1 2021-House Specialty Hot & Spicy Pan Mee (Dry) (a) RM8.00 SR 1 0.00 RM 8.00 6 Total Amount: RM31.60 Qty: RMO.00 Discount: After Discount: RM31.60 RMO.00 Cent Rounding: TotalSales: RM31.60 Loo Tax(RM) GST Summary Excl Amount/RM) 29.81 1.79 SR = 6%']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-5-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "59.31", "tax_rate": null, "tax_amount": "3.49", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "62.80", "rounding_adjustment": null, "commission_fee": null, "due_amount": "62.80", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "62.80", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "8", "line_items": [{"name": "Guiness Stout (B) Promotion", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "15.40", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "61.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": "Bottle(B)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.30", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "1.20", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['RESTORAN WAN SHENG 002043319-W No. - Jalan Temenggung 19/9, Seksyen 9, Bandar Mahkota Cheras, 43200 Cherag, Selangor GST REG NO: 001335787520 Tax Invoice INV No. : 854150 Cashier: Nicole Date : 12-11-2017 18:45:28 Description Qty Total TAX U.price Guiness Stout (B) Promotion 4 X 15.40 61.60 SR Bottle(B) 4 X 0.30 1.20 ZRL Total QTY: 8 Total (Excluding GST): 59.31 GST payable (6%) : 3.49, Total (Inclusive of GST): 62.80 TOTAL: 62.80 CASH : 62.80 GST Summary Tax(RM) Amount (RM) SR @ 6%) 58.11 3.49 ZRL (@ 0%) 1.20 0.00']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-67-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "RM 1.30", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM 22.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "RM 0.10", "cash_amount": "RM 23.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "4", "menuquantity_sum": "6", "line_items": [{"name": "PARTITION 1072 10CM *S IC12 : 12/72", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "7.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "7.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": "TELESCOPIC ROD 2PCS 4065#*VS *S MD22 - 12/96", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.80", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "4.80", "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": "CURTAIN BAR-70CM *S JD32 - 100", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.10", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "9.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": "D/S TAPE 1.8*15M *S RH42 - 88", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "1.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MR. D.I.Y. (KUCHAI) SDN BHD LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No :000473792512) (SG WANG) PARTITION 1072 10CM *S IC12 : 12/72 1 X 7.30 4947989310729 7.30 TELESCOPIC ROD 2PCS 4065#*VS *S MD22 - 12/96 9067903 1 - X 4.80 4.80 CURTAIN BAR-70CM *S JD32 - 100 3 X 3.10 9.30 9063983 D/S TAPE 1.8*15M *S RH42 - 88 9080456 1 X 1.50 1.50 Qty(s) : 6 Item(s) : 4 Total Incl, 6ST86% RM 22.90 RM 23.00 CASH CHANGE RM 0.10 GST 86% included in total RM 1.30 17-04-16 14:01 SHOI B019 T3 R000034324 OPERATOR CHC - JIVAN EXCHANGE ARE ALLOWED WITHIN 3 DAY WITH RECEIPT. STRICTLY NO CASH REFUND.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-192-0
|
{"base_taxable_amount": "295.00", "net_discounts": [], "net_service_charge": "29.50", "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": "6%", "tax_amount": "19.47", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": "-0.02", "commission_fee": null, "due_amount": "343.95", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "HH GUINESS", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "150.00", "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": [], "gross_total": null}, {"name": "HH TIGER", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "145.00", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['THREE STOOGES BISTRO & CAFE 109, SS21/1A, DAMANSARA UTAMA GST ID : 001661886464 7 : BAR ABLE ORDER : 00012916 BIZDATE: 12/03/2018 CASHIER: CASHIER BILL DT: 12/03/2018 10:25:49 PM RM QTY ITEM AMOUNT 1 HH GUINESS 12 GLASSES 150.00 1 HH TIGER 12 GLASSES 145.00 2 SUB TOTAL 295.00 SERVICE CHARGE 10% 29.50 GST 6% 19.47 ROUNDING ADJ -0.02 343.95 NET TOTAL Tax a ar Tax Amount SVC - ERVICL CAANUL 10 295.00 0 SR GSI 6% 324.50 K Thank me Agani']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-261-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "66.98", "tax_rate": null, "tax_amount": "4.02", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "71.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "30.00", "cash_amount": "101.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Fried Rice 3 Pax", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "71.00(S)", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "71.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Mr.Dakgalbi Solaris BRN GST No. 000417619968 President: Kang No.J-G-02, Soho KI, Solaris Mont Kiera, 50 480 KL GST No. TEL)03 6206 5567 Sales)2018-01-05 22:55:25 PosNo:86 qty Description Price Fried Rice 3 Pax 1 71.00(S) 1 Item (Inclusive of GST) 71.00 Round Amt 0.00 TOTAL 71.00 Cash 71.00 Cash Received 101.00 Change 30.00 GST @6% 4.02 GSTSummary Amount(RM) GST(RM) S=GST @ 6%: 66.98 4.02 Z=GST @ 0%: 0.00 0.00 Receipt No: 18010500047 : S-Admin Person Table No: Hall]-9']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-581-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "69.15", "tax_rate": "6%", "tax_amount": "4.15", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "73.30", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "73.30", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "73.30", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "5", "menuquantity_sum": null, "line_items": [{"name": "Almond Cak", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "22.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}, {"name": "IKEA Retai", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "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}, {"name": "TKEA Drink", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "1.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": "Dark Chocolate 70% U", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "6.90", "quantity": "2 pc", "net_price": null, "tax_amount": null, "gross_price": "13.80", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['3181 012 IKANO HANDEL SDN BHD (1074617K) IKEA Cheras No 2A Jalan Cochrane Taman Maluri 55100 KUALA LUMPUR GST No.: 000115154944 23/B TAX INVOICE Slip: 000000171000395667 Date: 23/12/17 Time: 7:13 Staff: 95651 Trans: 411395568 Amount TX Description 910347623 Almond Cak 22.50 SR 36.00 SR 999900245 IKEA Retai 559937000 TKEA Drink 1.00 SR 999900701 Dark Chocolate 70% U 13.80 SR 2 pc 4 6.90 Total RM Including GST 6% 73.30 0.00 Rounding Adj. 73.30 Total Rounded Cash -73.30 4.15 / GST SR 6% 73.30 69.15 Amt. Excl. GST 5 No. of Items 73.30 Thank you. Please come again.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-439-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "8.21", "tax_rate": null, "tax_amount": "0.49", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "8.70", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "8.70", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "1.30", "cash_amount": "10.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "RESTAURANT ORDER CHIT NCR 3.5\"X6\"", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "8.70", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANYOSTATIONERYSHOP NO. 31G&33G, JALAN SETIA INDAH X,U13/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. 2012-0029 RESTAURANT ORDER CHIT NCR 3.5"X6" 3X2.9000 SR 8.70 Total Sales Inclusive GST @6% 8.70 Discount 0.00 Total 8.70 Round Adj 0.00 Final Total 8.70 CASH 10.00 CHANGE 1.30 GST Summary Amount(RM) Tax(RM) SR @ 6% 8.21 0.49 Date : 06/11/2017 INV NO: CS-SA-0122588 antol Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AC N. TERIMA KASIH SILA DA NG LAGI ** PLEASE KEEPTHIS RECEIPTFOR PROVEOF PURCHASE DATE FOR .T PRODUCT WARRANTY PURPOSE ** Follow usin Facebook:: Sanyu.Stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-603-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "10.75", "tax_rate": null, "tax_amount": "0.65", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "$0.00", "cash_amount": "$11.40", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Meat +3 Vege", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "$7.10", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "$7.10", "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": "Meat Dish", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "$3.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "$3.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": "Veggies", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "$1.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "$1.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['A0s160 UNIHAKKA INTERNATIONAL SDN BHD 22 May 2018 18:51 (867388-U) 12, Jalan Tampoi 7/4,Kawasan Perindustrian Tampoi81200 Johor Bahru,Johor TAXI INVOICE Invoice #: OR18052202160306 Total Qty Item SR 100100000035- 1 Meat +3 Vege $7.10 1 $7.10 SR 100100000171-Meat Dish $3.00 $3.00 1 SR 100100000169- Veggies $1.30 $1.30 1 Total Amount 1.40 GST @69o. 50.65 Nett Total: $11.40 Amount Payment Mode $11.40 CASH $0.00 Change Tax($) Amount($) GSTS Summary 0.65 10.75 SR=GST @6% GST REG #000656195584 BAR WANGI RICE@PERMAS JAYA (Price Inclusive Of GST) Thank You & Come Again! Like and Follow! Us on Facebook! Facebook.c com/BatWangRice']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-179-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "31.70", "tax_rate": "6%", "tax_amount": "1.90", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "33.60", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "33.60", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "16.40", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "18", "line_items": [{"name": "WIRE O (3:1) DOUBLE WIRE A4 34 LOOPS - 6.4MM (WHITE)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.00", "quantity": "6", "net_price": null, "tax_amount": null, "gross_price": "24.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": "PVC- RIGID SHEET BINDING CC A4", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.80", "quantity": "12", "net_price": null, "tax_amount": null, "gross_price": "9.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['- feR. CovA AWYOSTATIONERYSHOP NO. 31G&33G, JALAN SETIA INDAH X ,U13/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. 5002-0080 WIRE O (3:1) DOUBLE WIRE A4 34 LOOPS - 6.4MM (WHITE) 6 X 4.0000 24.00 SR 2. 5002-0004 PVC- RIGID SHEET BINDING CC A4 12 X 0.8000 9.60 SR Total Sales Inclusive GST @6% 33.60 Discount 0.00 Total 33.60 Round Adj 0.00 Final Total 33.60 CASH 50.00 CHANGE 16.40 GST Summary Amount(RM) Tax(RM) SR @ 6% 31.70 1.90 INV NO: CS-SA-0127449 Date : 29/11/2017 Total Qty: 18 Print Time : Wednesday, 29 November, 2017 4:18:55 Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEPTHIS RECEIPTFOR PROVEOF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook:: Sanyu.Stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-107-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "61.80", "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": "6.18", "gross_total": "67.98", "rounding_adjustment": "0.02", "commission_fee": null, "due_amount": "68.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": "68.00", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Green Tea", "net_unit_price": "1.00", "unit_tax": null, "gross_unit_price": null, "quantity": "3", "net_price": "3.00", "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": [], "gross_total": null}, {"name": "Sushi Yellow", "net_unit_price": "1.80", "unit_tax": null, "gross_unit_price": null, "quantity": "5", "net_price": "9.00", "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": [], "gross_total": null}, {"name": "Unagi Temaki", "net_unit_price": "5.80", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "5.80", "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": [], "gross_total": null}, {"name": "Tori Teriyaki Don", "net_unit_price": "12.80", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "12.80", "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": [], "gross_total": null}, {"name": "Shiro Ramen", "net_unit_price": "12.80", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "25.60", "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": [], "gross_total": null}, {"name": "Sushi Red", "net_unit_price": "2.80", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "5.60", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SUSHI MENTAI - MAHKOTA CHERAS MIZU MENTAI SDN. BHD. (1248446-V) NO: 1-182 GROUND FLOOR, JLN TEMENGGUNG 13/9, 43200 CHERAS SELANGOR. (GST Reg. No : 001375580160) Tax Invoice Table 9 Order#: 120820 Bill#: V042- 520388 Pax(s): 0 Date : 04-06-2018 18:11:23 Cashier: SOFYA Description Qty U.price Total TAX B1 Green Tea 3 X 3.00 SR 1.00 T2 Unagi Temaki 1 X 5.80 SR 5.80 R5 Tori Teriyaki Don 12.80 12.80 SR 1 X N8 Shiro Ramen 25.60 SR 2 X 12.80 SB01 Sushi Yellow 5 X 1.80 9.00 SR SB02 Sushi Red 2 X 5.60 SR 2.80 Total (Excluding GST): 61.80 Serv. Charge (10%): 6.18 Total (Inclusive of GST): 67.98 Rounding Adj: 0.02 TOTAL: 68.00 Closed: 201710016 04-06-2018 18:55:23 Server: SOFYA VISA 68.00 GST Summary Amount(RM) Tax(RM) SR (@ 0%) 67.98 0.00 Thank you!!! Please Come Again!!! Powered By WWW.SISPOS.COM.MY']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-476-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.28 RM", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "5.00 RM", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "5.00 RH", "cash_amount": "10.00 RM", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Pay parking ticket", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "5.00 RH", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Dion Realties Sdn Bhd (Co. No:20154-D) (GST Registration No : 000850247680) Kenara Dion H02-03, Level 2, 27, Jalan Sultan Ismail, 50250 Kuala Lumpur. Tel : +6 03 2026 6386 Fax : +6 03 2026 6387 >>>TAX INVOICE<KS Tax Invoice no. 7698/0601/00601 28/05/18 11:41 010100 Pay parking ticket 5.00 RH 28/05/18 11:23 - 28/05/18 11:40 Length of stay: 0 Dy. 0 Hr. 17 Min. ABTUATODMEAUAVA Anount Incl. GST 5.00 RM Accepted total 10.00 RM Change 5.00 RH GST 6% 0.28 RM ** Thank you **']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-480-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "28.58", "tax_rate": null, "tax_amount": "1.72", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "30.30", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "19.70", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "4", "line_items": [{"name": "Smoked Duck Spaghetti", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "12.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "12.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}, {"name": "Hot Green Tea", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.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": "Coffee(H)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "4.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": "Rendang Chicken Rice", "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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['31802013 SWEET FOREST CAFE NO 21,JLN BUNGA KANTAN TAMAN P.RAMLEE SETAPAK 53000 KUALA LUMPUR. (GST Reg. No : 000465809408) Tax Invoice Table 15 INV No.: 593101 Pax(s): 2 Date : 14-02-2018 13:02:42 Cashier: : SIM N WAI Description Qty U.price Total TAX Smoked Duck Spaghetti 1 X 12.50 12.50 SR Hot Green Tea 1 X 3.00 3.00 SR Coffee(H) 1 X 4.90 4.90 SR Rendang Chicken Rice 1 X 9.90 9.90 SR Total QTY: 4 Total (Excluding GST): 28.58 GST payable (6%): 1.72 Total (Inclusive of GST): 30.30 TOTAL: 30.30 Closed: 001 14-02-2018 13:50:58 Server: SIM JIAN WAI 14/5/18 CASH : 50.00 CHANGE : 19.70 30.30 GST Summary Amount(RM) Tax(RM) SR (@ 6%) 28.58 1.72/']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-62-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "20.00", "tax_rate": "6%", "tax_amount": "1.20", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "21.20", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "21.20", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "AIR ADAPTOR", "net_unit_price": "4.00", "unit_tax": null, "gross_unit_price": null, "quantity": "5", "net_price": "20.00", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['3-1707067 (481500-M) C W KHOO HARDWARE SDN BHD NO.50 / JALAN PBS 14/11, KAWASAN PERINDUSTRIAN BUKIT SERDANG, Tel : 03-89410243 Fax : 03-89410243 GST Reg No. : 000549584896 Tax Invoice Invoice No. : CR 1803/0064 Date 01-03-18 5:23:26 PM : khoo Cashier No. Counter No. : cl Printed Date : 01-03-18 5.23:30 PM Qty Item Name Unit Price Amount AIR ADAPTOR @ 1 5 4.00 20.00 SR 5 Item(s) Total (MYR) : 20.00 GST @ 6% : 1.20 Net Total (MYR) : 21.20 Rounding Adj. : 0.00 Net Total Rounded (MYR) : 21.20 Cash 21.20 Change 0.00 GST Summary Item Amount (MYR) 3ST (MYR) SR @ 6% 1 1.20 20.00 Thank You. Please Come Again !']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-467-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "44.90", "tax_rate": null, "tax_amount": "0.38", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "44.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "55.10", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "9", "line_items": [{"name": "SEAFOOD", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "23.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": "KENKO BEBOLA IKAN 200G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.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": "SILKEN TOFU 300G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "1.10", "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": "VEGETABLES", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "1.80", "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": "VEGETABLES", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "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}, {"name": "VEGETABLES", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "1.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": "VEGETABLES", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "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}, {"name": "MAS GOOD MELAKA NOODLES", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.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}, {"name": "VEGETABLES", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['A04070 PASAR MINI JIN SENG 379, JALAN PERMAS SATU, BANDAR BARU PERMAS JAYA 81750 PLENTONG, JOHOR. TEL : 07-3874904 (CO. NO. JM0195368-D) (GST NO. 000150511616) TAXINY:003-1565495 15/04/18 Cashier : CASHIER3 1 SEAFOOD 23.40 ZRL 1 KENKO BEBOLA IKAN 200G 2.40 SR 1 SILKEN TOFU 300G 1.10 SR 1 VEGETABLES 1.80 ZRL 1 VEGETABLES 5.50 ZRL 1 VEGETABLES 1.30 ZRL 1 VEGETABLES 2.20 ZRL MAS GOOD MELAKA NOODLES 3.20 SR VEGETABLES 4.00 ZRL Item Count 9 SUBTOTAL: 44.90 TL:RM 44.90 6% GST 0.38 Payment Details CASH 100.00 CASH CHANGE 55.10 15/04/18 08:53 #003-1565495# CASHIER3 GST Summary Amount(RM) Tax(RM) SR (@6%) 6.70 0.38 ZRL (@0%) 38.20 0.00 Thank you Please come again 14HBI1, HBIE GOODS SOLD ARE NOT REFUNDABLE']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-595-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "27.27", "tax_rate": "6", "tax_amount": "1.64", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "28.90", "rounding_adjustment": "-0.01", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "28-90", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "2", "line_items": [{"name": "SUPER SAFE POWDER FREE NITRIL (BOX 100S)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "14.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "14.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": "SUPER SAFE LATEX GLOVE POWDER F (S SIZE)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "14.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "14.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SIMPLIFIED TAX INVOICE AA PHARMACY SUBANG HEALTHCARE SDN BHD 1118258-K GST NO: 001536708608 B-8, JALAN SS15/4D, 47500 SUBANG JAYA, SELANGOR TEL: 03-56127718 CASH RECEIPT #: CS00251915 DATE: 29/10/2017 TIME: 20:18:00 SALESPERSON : C3 CASHIER : C3 ITEM QTY AMOUNT U/P (GST) (GST) 030249 14.90 14.90 5 1 (BOX 100S) SUPER SAFE POWDER FREE NITRIL 03022 1 14.00 14.00 S (S SIZE) SUPER SAFE LATEX GLOVE POWDER F TOTAL QUANTITY 2 SUB-TOTAL 27.27 DISC 0.00 GST 1.64 ROUNDING -0.01 TOTAL 28.90 CASH 28-90 CHANGE 0.00 GOODS SOLD ARE NOT RETURNABLE, THANK YOU. S=STANDARD RATED, Z=ZERO RATED GST SUMMARY CODE AMOUNT % TAX/AMT SR 27.27 1.64 6 TAX TOTAL: 1.64']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-133-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "9.34", "tax_rate": null, "tax_amount": "0.56", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "9.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "RM 0.10", "cash_amount": "RM 10.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "PADLOCK ST-P6150 50MM", "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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MR. D.I.Y. SDN BHD (CO.REG 704427-T ) LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No 001092886528) (CHERAS LEISURE MALL) -TAX INVOICE- PADLOCK ST-P6150 50MM *S 0Z02 : 12/48 1 X 9.90 6942131561507 9.90 Item(s) : 1 Qty(s) : 1 Total Incl. GSTQ6% RM 9.90 CASH RM 10.00 RM 0.10 CHANGE GST Summary Amt(RM) Tax(RM) GST S@6% 9.34 0.56 28-12-17 18:52 SH01 ZT09 T1 R000020832 OPERATOR TRAINEE CASHIER EXCHANGE ARE ALLOWED WITHIN 7 DAYS WITH RECEIPT. STRICTLY NO CASH REFUND.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-100-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "39.09", "tax_rate": "6.00%", "tax_amount": null, "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM41.43", "rounding_adjustment": "RM0.02", "commission_fee": null, "due_amount": "41.45", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "RM10.05", "cash_amount": "RM51.50", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "WS CUT SCISSORS", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "18.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": "QVS TEMPO TWEEZER", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "17.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": "WS BABY WIPES FRAG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "7.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-2.37"], "gross_total": null}, {"name": "WATSONS BASKET", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "0.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["3-1708032 wotsons. st A Watson's Personal Care Stores Sdn Bhd Company Reg No. 289892V GST Reg No. 000947339264 USJ Summit, Subang (SS) 22241 WS CUT SCISSORS 18.00 S 64542 QVS TEMPO TWEEZER 17.90 S 21434 WS BABY WIPES FRAG 7.90 S PWP LESS 30% MAR 18 -2.37 95448 WATSONS BASKET 0.00 Z SUBTOTAL (QTY 4) RM41.43 ROUNDING RMO.02 SUBTOTAL (QTY 4) RM41.45 RM51.50 CASH CHANGE CASH RM10,05 GST SUMMARY Net/RM) GST(RM) Total(RM) Rate 39-09 S 6.00% 234 41.43 STATEMENT ******* 4 Loyalty acc.number 9926016** Description Total Points Opening Balance 2264 Earned Points 43 2307 Closing Balance 00440010036 25032018 13:11:54 0003 ika"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-146-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "235.85", "tax_rate": "6%", "tax_amount": "14.15", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "250.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": "250.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "50.00", "cash_amount": "300.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "ALARM .008133)L-A/L-ATL (LC)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "250.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "250.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['TNGNS6 IN-SPARKLE TRADING SDN BHD (Co.no.639240 H) No.Lot 24, Batu 11 Kampung Dato, Ujang Balakong, 43200 Cheras, Sel. Tel: 03-9076 8160 GST ID : 001429012480 Date: Sat 21/10/2017 01:31:54 PM Tax Invoice No: 10100023492 250.00 250.00 5 1 531600309035 ALARM .008133)L-A/L-ATL (LC) 1 : SK05 CHAN ZHI BEW Promoter Total Sales Incl. GST a 6% RM 250.00 RM 250.00 Total Sales RM 300.00 Cash RM 50.00 Changes Tax(RM) Amount(RM) GST Summary 14.15 235.85 S E 6% 0.00 0.00 Z E 0% 1,000 Oty Cashier: 0005 CASHIER Outlet: SK2 Counter: 101 Have a nice day Thank you : *(POS 6.63)*** Customer Name : Customer Signature :']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-253-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.12", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "2.10", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "2.10", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "BRUSH 1.5'", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.10", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.10", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["31804051 MR. D.I.Y. (M) SDN BHD (CO.REG 860671-D) LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No 000306020352) (IOI PUCHONG) -TAX INVOICE- *S BRUSH 1.5' 628 KE51 = 12/720 2.10 1 X 2.10 9071503 Qty(s) : 1 Item(s) : 1 RM 2.10 Total Incl. GST@6% RM 2.10 CASH RM 0.12 GST @6% included in total - T2 R000120516 26-04-18 16:59 SH01 ZJ86 OPERATOR TRAINEE CASHIER EXCHANGE ARE ALLOWED WITHIN 7 DAY WITH RECEIPT. STRICTLY NO CASH REFUND. GOUDS SULU ARE RUT METUNDNDLE"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-316-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.72", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "36.36", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.13", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "6.39", "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": "KAYA-ORI", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.40", "quantity": "5", "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": "WHOLEMEAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.78", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "8.34", "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": "O.C. JUMBO", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.97", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "8.91", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERIES (KL) SDN BHD (139386 X) Lot 3, Jalan Pelabur 23/1, 40300 Shah Alam, Selangor. Tel: 03- 55423228 Fax:03- 55423213 GSTID: 000381399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7825F713 VE0514 Date: 25/08/2017 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/4B, 47500 SUBANG JAYA, SELANGOR VI E05: Ridzuan(11900) DD: 25/08/2017 10:29 Description U.P Iss Exc D Sale Ant(RM) 2.13 2 0 3 6.39 0.C. WHITE 5 WHOLEMEAL 2.78 3 3 8.34 0 0 0.C JUMBO 2.97 2 3 8.91 5 1 Total 0% supplies: 23.64 2.40 0 0 KAYA-ORI 5 5 12.00 Total 6% supplies (excl. GST): 12.00 GST: 0.72 Total 6% supplies (Inc. GST): 12.72 Total 0% supplies: 23.64 Total Payable: 36.36 E.8.0.E. Received above goods in good order condition. The recipient of Gardenia's products is required to make necessary adjus trients to its input tax claims, on the basic of the adjus tments shown in this Tax Invoice / Adjus tment Note CUSTOMER'S COPY"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-298-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "15.67", "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": "1.55", "gross_total": "17.22", "rounding_adjustment": "0.02-", "commission_fee": null, "due_amount": "17.20", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "2.80", "cash_amount": "20.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "B02 HALF BL EGG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "4.53", "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": [], "gross_total": null}, {"name": "B03 HNN TST+b+k", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "5.57", "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": [], "gross_total": null}, {"name": "D19 CHAM (I)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "5.57", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['PappaRich BMC NO.19 & 21 JALAN TEMENGGUNG 23/9 BANDAR MAIKOTA CHERAS 43200 SELANGOR DARUL EHSAN, MALAYSIA TAX INVOICE GST ID:0 00164270080 2 COUNTER1 2003 saifui Chk 274898 Guest1 15 Jun 18 08:34:31 PM / 1 TBL35 1 B02 HALF BL EGG E 4.53 S 1 B03 HNN TST+b+k E 5.57 S 1 D19 CHAM (I) E 5.57 S CASH 20.00 15.67 Subtotal 15.67 10% Srv Chg 1.55 Total: 17.22 RND ADJ 0.02- TTL ATF RND 17.20 Payment 20.00 Change Due 2.80 -2003 CLOSED 15 Jun 18 09:08:37 PM--- THANK YOU! PLEASE COME AGAIN! GST AT 0% GSTSummary Amount(RM) GST(RM) S=GST @0%: 17.20 0.00 Z=GST @0%: 0.00 0.00']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-41-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": "77.76", "non_taxable_amount": "35.92", "net_total": null, "tax_rate": null, "tax_amount": "4.67", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "118.35", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": null, "creditcard_amount": "RM 118.35", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "10", "line_items": [{"name": "MFM ROSES ALL PURPOSE FLOUR", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "18.60", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "18.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": "TLC SOTONG SAUCE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.69", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.69", "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": "TLC FISH SAUCE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.70", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.70", "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": "ROYAL BAKING POWDER", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "11.69", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "23.38", "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": "KUAT HARIMAU BLEACH LEMON TP", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.51", "quantity": "2", "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.53"], "gross_total": "7.96"}, {"name": "INDOCAFE COFFEEMIX 3IN1 - 100X20G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "33.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "33.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": "UDANG XL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "39.90", "quantity": "0.434", "net_price": null, "tax_amount": null, "gross_price": "17.32", "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": "BURUNG PUYUH PC", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.95", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "11.80", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Ségi Caskf& Carry Sdn. Bhd. Pt17920 Sek U9, Shah Alam GST Reg No : 001951645696 POSTED D6 : 34867 Invoice No : 25 May 2017 09:41am Date : 09 Counter MFM ROSES ALL PURPOSE FLOUR 12X8506 18.60 Z 1 X 18.60 TLC SOTONG SAUCE 725G 2.69 S 1 X 2.69 TLC FISH SAUCE 725G 2.70 S 1 X 2.70 ROYAL BAKING POWDER 450G 2 X 11.69 23.38 S KUAT HARIMAU BLEACH LEMON TP 2X900ML 7.96 S 2 X 5.51 (Disc: 1.53) INDOCAFE COFFEEMIX 3IN1 - 100X20G 33.90 S 1 X 33.90 UDANG XL 17.32 Z 0.434 X 39.90 BURUNG PUYUH PC 4 X 2.95 11.80 S No of itens: 10 Total Incl. GST:RM 118.35 118.35 Master XXXXXXXXXXX XX0000: 0.00 Change:RM Savings:RM 3.06 Missed Point Today: 113 118-75 Served by ASHOK KUMAR ** 7 ** **X**** GST Summary %5 * GST Code Amount(RM) Tax(RM) Z 00.0% 35.92 0.00 S 06.0% 4.67 77.76 Ref No: 00600736354034867 Goods Sold Are Not Returnable. TQ']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-582-0
|
{"base_taxable_amount": "79.60", "net_discounts": ["-30.00"], "net_service_charge": "4.9", "taxable_amount": "54.56", "non_taxable_amount": null, "net_total": null, "tax_rate": "6%", "tax_amount": "3.27", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": "-0.03", "commission_fee": null, "due_amount": "57.80", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "3", "menuquantity_sum": null, "line_items": [{"name": "SABA SHIO YAKI SET", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "3", "net_price": "53.70", "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": [], "gross_total": null}, {"name": "SALMON SHIO SET", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "21.90", "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": [], "gross_total": null}, {"name": "ICED GREEN TEA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "4", "net_price": "4.00", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['403060 WARAKUYA PERMAS CITY SDN BHD Reg No: 1203194-W JALAN PERMAS UTARA 1, PERMAS JAYA 81750 MASAI JOHOR Tel:0111-558 0000 GST ID: 0016 6993 5104 TAX INVOICE NO 42 58244 PAX NO: 4 Date: 10/03/2018 5:41:06 Cashier: cashiers Wai ter: HANYIN Qty Code/Desc Total RM 3 SABA SHIO YAKI SET 53.70 1 SALMON SHIO SET - 21.90 4 ICED GREEN TEA 4.00 SUBTOTAL 79. 60 DISCOUNT -30. 00 Total Amount : 49.60 Serv Charge 10% 4.9 GST @ 6% 3.27 Rounding Adj : -0.03 Total Anount t: 57.80 TOTAL: RM 57.80 Type 3 CST Summary Amouini Ri TAX RM SR 6 54.56 3.37 Thariks Von ! Picase Coms Again 1']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-383-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "19.34", "tax_rate": "6", "tax_amount": "1.16", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "20.50", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "20.50", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.50", "cash_amount": "21.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "FLANIL ANALGESIC CR 60G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "20.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "20.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MY HAPPY PHARMACY PLT LLP0007299-LGN, NO 12GF, JALAN MAMANDA 5, TAMAN DATO AHMAD RAZALI, JALAN AMPANG, 68000 AMPANG, SELANGOR. TEL +60342661226 GST ID 000241512448 SIMPLIFIED TAX INVOICE CASH Doc No Date: 01/02/2018 CS00038813 Time: 16:07:00 Cashier ASIFA Ref Salesperson $005 Item Qty Tax Amount S/Price 1 20.50 OTC-000127 20.50 SR FLANIL ANALGESIC CR 60G TotalQty 1 20.50 Totai Saies (Excluding GST) 19.34 0.00 Discount Total GST 1.16 0.00 Rounding Total Sales (inclusiva ofGST) : 20.50 CASH 21.00 Change : 0.50 GST SUMMARY Tax Code % Amt (RM) Tax(RM) SR 6 19.34 1.16 Total : 19.34 1 GOODS SOLD ARE NOT RETURNABLE, THANK YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-544-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "RM0.47", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM8.35", "rounding_adjustment": "-RM0.02", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "RM2.15", "cash_amount": "RM10.50", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Yam Fresh Signature-C", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM7.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "RM7.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Yam Fresh No.145G, Jalan Rimbunan Raya 1, Laman Rimbunan Kepong, 52100 Kuala Lumpur Tel: (603) 6243 5520 GST ID-001817907200 Invoice: 001-9822 Dine In Date: 2016-07-31 13:48:37 208 Yam Fresh Signature-C 1 RM7.90 : 1 Milk Sub-Total RM7.90 6% GST RM0.47 -RM0.02 Rounding RM8.35 Grand Total Cash RM10.50 Change RM2.15 Thank You. Please visit us at:- Facebook:-Yam Fresh 001-9822 [1] 001-2016-07-31 13:48:51 LiJie']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-144-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "25.30", "tax_rate": "6.00", "tax_amount": "1.52", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "26.82", "rounding_adjustment": "-0.02", "commission_fee": null, "due_amount": "26.80", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "23.20", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "350PCS FRUIT PLUS-APPLE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "14.31", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "14.31", "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": "300PCSLOT100 CANDY-ASSORTED", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "12.51", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "12.51", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['HAPPY SNACKS ENTERPRISE (002022599 - U) 19 & 19A - JALAN MERANTI 2A, : SEKSYEI BANDAR BARU BATANG KALI, 44300 03-60570314 Prmackseyphotmal.com ST Reg No: 000129863680 Billl No : HP01-188357 Date 20/03/2018 1:11:38 PM : Cashier : 123 Iax Invoice Qty Description Price Amount SR 9556173380636 14.31 14.31 1 1 350PCS FRUIT PLUS-APPLE 2 SR 9556296307411 1 12.51 12.51 300PCSLOT100 CANDY-ASSORTED Total: 26.82 0.00 26.82 Total Sales Inclusive GST: : Rounding Adjustment: -0.02 Amount To Be Paid : 26.80 Cash Received: . 50.00 Change : 23.20 GST Summary Tax Code % Taxable Amount GST SR 6.00 25.30 1.52 GST : 1.52 GST Include Item Thank You. Please Come Again.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-244-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.23", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "4.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "4.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "16.00", "cash_amount": "20.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "15AMP UMS BLUG TOP (SIRIM)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.00", "quantity": "1", "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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['AIK HUAT HARIWARE ENTERPRISE (SETIA ALAM) SENN 3D 822737-X NO. 17-6, JALAM SETIA INDAH (X) U13/X, SETIA ALAM SEKSYEN 013, 40170 SHAH ALAM 13623603 TELE 012 - 6651783 FAHI 03 GST NO: 000394529768 SIMPLIFIED TAX INVOICE CASH RECEIPT #: CSP0397224 DATE: 13/07/2017 SALESPERSONE E AH002 TIME: 08:13:00 ITEM QTY UAP AMOUNT (RM) (RM) 4.00 4.00 S 1 4060150000005 15AMP UMS BLUG TOP (SIRIM) TOTAL QUANTITY SUB-TOTAL (GSC) 4.00 DISD 0.00 ROUNDING 0.00 TOTAL n 000 CASH OHANGE 16:00 *GST @ 64 INCLBDED IN TOTAL GST SUMMARY TAX/AMT CODE AMGUNT 1 SR 3-77 6 0.23 TAX TOTALE 0.23 COODS SOLD ARE NOT RERUNDABLE THANK yOU ROR CHOOSING US FS FROVIDE ORIGINAL BIL BOR 0000E BHANGE WITHIN 1 MEK ROX FANSATIONE COODS MUST BE IA ORIGINAL SIATE TO 33 ENTSTED BOR BACHANGE:']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-88-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "4.80", "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "4.80", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "4.80", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "4", "line_items": [{"name": "Cham (B)", "net_unit_price": "2.20", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "4.40", "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": [], "gross_total": null}, {"name": "Take Away", "net_unit_price": "0.20", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "0.40", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['RESTORAN WAN SHENG 002043319-W No.2, Jalan Temenggung 19/9, Seksyen 9, Bandar Mahkota Cheras, 43200 Cheras, Selangor GST REG NO: 001335787520 Tax Invoice INV No.: 1170190 Cashier: Nicole : 01-06-2018 18:21:09 Date Qty Total TAX U.price Description Cham (B) 2 X 4.40 ZRL 2,20 Take Away 2 X 0.20 0.40 ZRi Total QTY: 4 Total (Excluding GST): 4.80 Total (Inclusive of GST): 4.80 4.80 TOTAL: CASH : 4.80 GST Summary Amount(RM) Tax(RM) (@ 0%) 4.80 0.00 ZRL']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-156-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "96.23", "tax_rate": "6%", "tax_amount": "5.77", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "102.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": "102.00", "prior_balance": null, "net_due_amount": null, "paid_amount": "102.00", "change_amount": "0.00", "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "SAFETY PINS BUTTERFLY-S", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "17.00", "quantity": "6.00", "net_price": null, "tax_amount": null, "gross_price": "102.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['3180303 GL HANDICRAFT & TAILORING 19, JALAN KANCIL, OFF JALAN PuDu, 55100 KUALA LUMPUR MALAYSIA Company Reg No.:75495-W GST Reg No. 001948532736 TAX INVOICE GS 10012 Invoice No.: Date: 20/03/2018 13:01 01 Cashier #: RMI Code SAFETY PINS BUTTERFLY-S 17.00 102.00 6.00 B0AS SR X Subtotal: - 102.00 Total Excl. or GST 98.23 102.00 Total incl. of GST 102.00 Total Amt Rounded Payment : 102.00 0.00 Change Due : Total Item(s):6 Tax(RM) Amount(RM) GST Summary 6% 96.23 5.77 SR A4AA THANK YOu PLEASE COME AGAIN 444']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-269-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "2.18", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "49.39", "rounding_adjustment": "0.01", "commission_fee": null, "due_amount": "49.40", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.60", "cash_amount": "-50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "5", "line_items": [{"name": "TOMBOW C/Tape CX5N", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "9.89", "quantity": "2pc", "net_price": null, "tax_amount": null, "gross_price": "19.78", "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": "L11 X-VENTURE UNEXPLA[BK]", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "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": ["-1.20"], "gross_total": null}, {"name": "PU EXPANDING FILE-TS", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "20.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-2.09"], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['BOOK POPULAR (M) CO. SDN BHD (Co. No. 113825-W) (GST Reg No. 001492992000) No 8, Jalan 7/118B, Desa Tun Razak 56000 Kuala Lumpur, Malaysia SUNWAY VELOCITY Tel : 03-9201 6281/6920 Slip No. : 0010104733 01/03/18 19:14 WONG PEI YI Trans: 114793 Member Card No: 2008011381468 Card Expiry: 30/09/18 Description Amount TOMBOW C/Tape CX5N 19.78 T 2pc @ 9.89 Spring Issue 20% Reba L11 X-VENTURE UNEXPLA[BK] 12.00 Z -1.20 Member Discount 20.90 T PU EXPANDING FILE-TS Member Discount -2.09 49.39 Total RM Incl. of GST Rounding Ad.j 0.01 Total RM 49.40 -50.00 Cash 0.60 CHANGE 5 Item Count GST Summary Amount (RM) Tax (RM) 36.41 T @ 6% 2.18 Z @ 0% 0.00 10.80 Total Savings -3.29 BE A POPULAR CARD MEMBER AND ENJOY SPECIAL DISCOUNTS THANK YOU. PLEASE COME AGAIN. www.popular.com. my Buy Chinese books online Www. popularonline. com. my']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-418-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "1.65", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "29.33", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": "2.13", "unit_tax": null, "gross_unit_price": null, "quantity": "-1", "net_price": "-2.13", "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": [], "gross_total": null}, {"name": "WHOLEMEAL", "net_unit_price": "2.78", "unit_tax": null, "gross_unit_price": null, "quantity": "0", "net_price": "0.00", "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": [], "gross_total": null}, {"name": "O.C. JUMBO", "net_unit_price": "2.97", "unit_tax": null, "gross_unit_price": null, "quantity": "0", "net_price": "0.00", "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": [], "gross_total": null}, {"name": "DELICIA-B/SCOTCH", "net_unit_price": "3.72", "unit_tax": null, "gross_unit_price": null, "quantity": "-2", "net_price": "-7.44", "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": [], "gross_total": null}, {"name": "CR-CORN", "net_unit_price": "0.72", "unit_tax": null, "gross_unit_price": null, "quantity": "20", "net_price": "14.40", "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": [], "gross_total": null}, {"name": "SQ-CHOCMLT", "net_unit_price": "0.84", "unit_tax": null, "gross_unit_price": null, "quantity": "12", "net_price": "10.08", "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": [], "gross_total": null}, {"name": "TWIG-C.DRM", "net_unit_price": "1.33", "unit_tax": null, "gross_unit_price": null, "quantity": "8", "net_price": "10.64", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERIES (KL) SDN BHD (139386 X) Lot 3, Jalan Pelabur 23/1, 40300 Shah Alam, Selangor. Tel: 03- 55423228 Fax:03- 55423213 GSTID: 00038 1399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7010F714 V Date: 10/10/2017 4 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/48, 47500 SUBANG JAYA, SELANGOR VE05: Ridzuan (11900) DD: 10/10/2017 12:07 U.P Iss Exc D Sale Ant(RM) Description 4 0 -2.13 0.C. WHITE 2.13 3 -1 0.00 2.78 3 WHOLEMEAL 3 0 0 2.97 3 3 0 0.00 0.C JUMBO 0 Total 0% supplies: -2.13 0 -7.44 DELICIA-B/SCOTCH 3.72 2 0 -2 14.40 CR-CORN 0.72 20 0 0 20 0 0 10.08 0.84 12 12 SQ-CHOCMLT 0 0 10.64 TWIG-C.DRM 8 8 1.33 Total 6% supplies (excl. GST): 27.68 GST: 1.65 Total 6% supplies (Inc. GST): 29.33 Total 0% supplies: -2.13 Total Payable: 27.20 E.&.0.E. Received above goods in good order condition. The recipient of Gardenia's products is required to make necessary adjustments to its input tax claims, on the basic of the adjus tments shown in this Tax Invoice / Adjustinent Note CUSTOMER'S COPY"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-586-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "94.51", "tax_rate": null, "tax_amount": "5.39", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "99.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.10", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "7", "line_items": [{"name": "NATUREL PREMIU", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "11.25SR", "quantity": "1x", "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": [], "gross_total": null}, {"name": "JOY DISHWASHIN", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "10,50SR", "quantity": "1x", "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": [], "gross_total": null}, {"name": "303027 COOK KN", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "45.90SR", "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [{"name": null, "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "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": ["-2.75"], "gross_total": null}, {"name": "CED NATURAL HIM", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.59ZR", "quantity": "1x", "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": [], "gross_total": null}, {"name": "BL 5004C 4 GALL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.90SR", "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": null, "sub_items": [{"name": null, "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "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": ["-0.29"], "gross_total": null}, {"name": "KLEENEX FT SOF", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "12.15SR", "quantity": null, "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": [], "gross_total": null}, {"name": "ONWARDS TOM &", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "13.65SR", "quantity": null, "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['A6748 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 VALUED CUSTOMER: 1170008317 1x 000001048211 11.25SR NATUREL PREMIU 1x 000005043675 10,50SR JOY DISHWASHIN 1x 000001427416 45.90SR 303027 COOK KN 6% Off @43.15 -2.75 1x 000006783617 4.59ZR CED NATURAL HIM 1x 000007787980 4.90SR BL 5004C 4 GALL 6% Off @4.61 -0,29 1x 000004820628 12.15SR KLEENEX FT SOF 1x 000003596418 13.65SR ONWARDS TOM & Sub-total 99.90 Total Sales Incl GST 99.90 Total After Adj Incl GST 99.90 CASH 100.00 Item Count 7 Change Amt 0.10 Invoice No: 2018052710100070177 GST Summary Amount Tax SR @ 6% 89.92 5.39 ZR @ 0% 4.59 0.00 Total 94.51 5.39 27/05/2018 13:48 1010 007 0070177 0300892 PJ HANIF REGULAR STAMP(S) : 3 BONUS STAMP(S) : 0 TOTAL STAMP(S) : 3']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-497-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "139.62", "tax_rate": "6%", "tax_amount": "8.38", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "148.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": "148.00", "prior_balance": null, "net_due_amount": null, "paid_amount": "148.00", "change_amount": "0.00", "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "CARD", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "148.00", "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "148.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['- K STATIONERY & OFFICE SUPPLIES NO.9, JALAN MANIS 3, TAMAN SEGAR CHERAS, 56100 KUALA LUMPUR. TEL: 03-91321611 FAX: 03-91321664 Emall: [email protected] Company Reg No. 001260452-W GST Reg No. 001506648064 TAX INVOICE Invoice No.: CSA34539 Date: 15/07/2017 12:07 Cashler: #: 1 RM Code NAME CARD 1x SR 148.00 148.00 Subtotal : 148.00 Total Excl. of GST 139.62 Total Incl. of GST 148.00 148.00 Payment : Change Due : 0.00 Total Item(s): : 1 Amount(RM) Tax (RM) GST Summary 6% SR. 139.62 8.38 : AAAA THANK YOLI aaa PLEASE COME AGAIN']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-263-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "11.13", "tax_rate": null, "tax_amount": "0.67", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "11.80", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "-11.80", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "2", "menuquantity_sum": null, "line_items": [{"name": "PB D/S Tape 12mm", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "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}, {"name": "H/C A4 400'S", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["POPULAR BOOK (M) CO. SDN BHD (Co. No. 113825-W) (GST Reg No. 001492992000) No 8, Jalan 7/118B, Desa Tun Razak 56000 Kuala Lumpur, Malaysia AMPANG POINT CENTRE Tel : 03-42601064/66 Slip No.: 6030098553 11/02/18 19:21 Mohd Nor Azmi Trans: 79369 Description Amount PB D/S Tape 12mm 1.90 T H/C A4 400'S 9.90 T Total RM Incl. of GST 11.80 Cash -11.80 Item Count 2 GST Summary Amount (RM) Tax (RM) T @ 6% 11.13 0.67 Total Savings 0.00 BE A POPULAR CARD MEMBER AND ENJOY SPECIAL DISCOUNTS THANK YOU. PLEASE COME AGAIN. www. popular.com. my Buy Chinese books online wwy.popularonline.com. my"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-474-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "4.25", "tax_rate": null, "tax_amount": "0.25", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "4.50", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "4.50", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "45.50", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "MULTI PURPOSE PAPER 40'S A4120GSM", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.50", "quantity": "1X", "net_price": null, "tax_amount": null, "gross_price": "4.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["SANYOSTATIONERYSHOP NO.3 31G833G, 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) y CASH SALES COUNTER S-69 MULTI PURPOSE PAPER 1. 2000-0063 40'S A4120GSM 1X 4.5000 SR 4.50 Total Sales Inclusive GST @6% 4.50 Discount 0.00 Total 4.50 Round Adj 0.00 Final Total 4.50 CASH 50.00 CHANGE 45.50 GST Summary Amount(RM) Tax(RM) SR @ 6% 4.25 0.25 INV NO: CS-SA-0094236 Date : 06/07/2017 Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEP THIS RECEIPT FOR PROVE OF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook: Sanyu.Stationery"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-616-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "65.28", "tax_rate": null, "tax_amount": "3.92", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "69.20", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "69.20", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "3", "line_items": [{"name": "ARTLINE WHITEBOARD MAKER PEN 500A (R", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.10", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.10", "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": "ARTLINE WHITEBOARD MAKER PEN 500A (B", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.10", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.10", "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": "MAGNETIC WHITEBOARD LD001# 120*90CM", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "63.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "63.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MR. D.I.Y. (M) SDN BHD (CO REG : 860871-D) LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No : 000306020352) (MELAWATI MALL) -TAX INVOICE- ARTLINE WHITEBOARD MAKER PEN 500A (R *S WA25 - 24/288 1 X 3.10 4974052854583 3.10 ARTLINE WHITEBOARD MAKER PEN 500A (B *S WA26 - 24/288 4974052854569 1 X 3.10 3.10 *S MAGNETIC WHITEBOARD LD001# 120*90CM HC07-08 - 6 1 X 63.00 63.00 9087397 Item(s) : 3 Qty(s) : 3 RM 69.20 Total Incl. GST@6% RM 69.20 CASH Tax(RM) GST Summary Amt(RM) GST S@6% 65.28 3.92 * 03-05-18 14:12 SH02 ZJ94 T1 R000090406 OPERATOR MLWC - SITI AISHAH EXCHANGE ARE ALLOWED WITHIN 7 DAYS WITH RECEIPT. STRICTLY NO CASH REFUND.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-25-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": "40.00", "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "2.40", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "42.40", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "42.40", "prior_balance": null, "net_due_amount": null, "paid_amount": "42.40", "change_amount": "0.00", "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "3", "menuquantity_sum": "5", "line_items": [{"name": "14\" MINI ROLLER REFILL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.65", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "5.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": "24\"X18\" ROLLERPAINT HANDLE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.18", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "6.36", "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": "33.5LRT BLACK OXIDE PAINT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "30.74", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "30.74", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['3 I 813012 a WAHIN HARDWARE SDN BHD 148481-U 425, JALAN PAHANG, SETAPAK, 53000 KUALA LUMPUR. TEL: 603-40232487, 40238191, 40218976, STORE: 40225409 FAX : 603-40217507. GST Number B 000048898048 TAX INVOICE Invoice No.: CS0013132 Date 5:06 PM 04/12/17 : : WAHIN Cashier ItemDescription Amount Price (GST Inc.) Quantity - 14" MINI ROLLER REFILL 5.30 SR 2 2.6500 24"X18" ROLLERPAINT HANDLE 6.36 SR 2 3.1800 33.5LRT BLACK OXIDE PAINT 30.74 SR 1 30.7400 40.00 Gross Amount : Total GST Amt : 2.40 42.40 Sub Total : 0.00 Rounding Adj. : 42.40 Total (RM) : 42.40 Amount Paid : 0.00 Amount Change : 5 Quantity Count: 3 Total Item Sold: GST SummaryAmount/Rn) GST Amount(RM) :E - 2.40/ 40.00 SRE6% THANK YOU !']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-587-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "4.-10", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "79.35", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "79.35", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "20.65", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "BMS MILK THISTLE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "111.30", "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": ["36.75"], "gross_total": "72.35"}, {"name": "TRILON-E CRM", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "7.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "7.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['3180301 Leoy Sayp Flele Fr TEh Farmasi Maluri S/B(587969-U) GST NO: 000342237184 (ID:5033) 23, JIn Burung Jentayu, Tmn Bukit Maluri, Kepong, 52100 KL. TAX INVOICE M/c. ID : POS7 Cashier : pos1N 02/03/18 05:16 PM Receipt : 71857936 Description Disc. Subtotal 061558 - **BMS MILK THISTLE 1 X 111.30 36.75 72.35 S 910845 - TRILON-E CRM 1 X 7.00 7.00 Z 79.35 TOTAL (Including GST) 0.00 ROUNDING NET 79.35 100.00 TENDER 20.65 CHANGE/BALANCE GST Summary Amt (Excl.Gst) Tax(RM) ZRL @0.00% 7.00 0.00 SR @6. 00% 68.25 4.-10 GOODS SOLD ARE NON-REFUNDABLE BUT EXCHANGEABLE WITHIN 7 DAYS WITH RECEIPT PLUS GOODS ARE IN RESALEABLE CONDITION. All face mask & injectable are non-returnable & non -exchangeable **special promot ion']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-131-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": "6.0%", "tax_amount": "1.22", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "21.50", "rounding_adjustment": "0", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.50", "cash_amount": "22.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Double Rg. Cup", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "20,00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "20,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": "Colour Rice", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.50", "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "1.50", "sub_items": [{"name": null, "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['baskiwBRrobbiNS Desa Park City Golden Scoop Sdn Bhd (169609-A) A-16-1, Tower A, Northpoint Office, Mid Valley City, No1, Medan Syed Putra Utara Kuala Lumpur Malaysia GST ID: 001513148416 Outlet Tel: (603) 6280 7131 Tax invoice . DPC11 53409-001-0006 Invoice No DPC11 POS No DPC1PT1 Cashier 15/02/2018 12:04:58 Date & time Description Qty U.Price Total(RM) 1 20,00 20.00SR Double Rg. Cup 1,50SR 1.50 Colour Rice 1 21.50 Sub Total 0 Rounding adj. 21.50 Total (Incl.GST) 22.00 Cash (MYR) 0.50 Cash Change: GST Tax Rate Sale (RM) Tax (RM) Summary 1.22 SR 6.0% 20.28 Thank you! Please come again! ww.basMimotums.con.my ding']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-295-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.48", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "35.01", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.13", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "6.39", "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": "WHOLEMEAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.78", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "8.34", "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": "CR-CHOCLT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.72", "quantity": "11", "net_price": null, "tax_amount": null, "gross_price": "7.92", "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": "O.C. JUMBO", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.97", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "11.88", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERIESTKI) SDN BID (139386 X) Lot 3, Jalan Pelabur 23/1, 40300 Shah Alam, Selangor. Tel: 03- 55423228 Fax:03- 55423213 GSTID: 000381 1399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7025F713 VE0514 Date: 25/10/2017 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/4B, 47500 SUBANG JAYA, SELANGOR VI E05: Ridzuan (11900) DD: 25/10/20:7 11:43 Description U.P Iss Exc D Sale Amt(RM) 6.39 0 0 3 0.C. WHITE 2.13 3 0 0 3 8.34 2.78 3 WHOLEMEAL 0.C JUMBO 2.97 0 0 4 11.88 4 Total 0% supplies: 26.61 7.92 9 0 11 0.72 20 CR-CHOCLT Total 6% supplies (excl. GST): 7.92 0.48 GST: Total 6% supplies (Inc. GST): 8.40 Total 0% supplies: 26.61 Total Payable: 35.01 E.&.0.E. Received above goods in good order condition. The reciptent of Gardenia's products LS required to make necessary adjus tments to its input tax claims, on the basic of the adjus tments shown in this Tax Invoice / Adjus tment Note CUSTOMER'S COPY"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-333-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "233.54", "tax_rate": null, "tax_amount": "14.01", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "247.55", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "52.45", "cash_amount": "300.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "PUNCHER MAX DP-F2BN", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "7.30", "quantity": "18", "net_price": null, "tax_amount": null, "gross_price": "131.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": "UEW 6\"x7*\" (5's/pack)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "14.85", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "14.85", "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": "CD SLEEVE REFIEE OAIBAO OB103 (VR100)/KAYE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "92.80", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "92.80", "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": "CD-R MAXELL (MX-CDR) 100's", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "8.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "8.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['BECON STATIONER Becon Enterprise Sdn Bhd (82256-V) Damansara Utama Outlet No.41G,JIn 521/60,Damansara Utama,47400 PJ, Selangor. Tel: 603 7732 0925 GST No.000670859264 Tax Invoice: 0017756 : Norlida Mond Rashdi Cashier Date Time : 1648 : 13-09-2017 Pos No 181 Shift : 1 MEMBER PRICE : SIA BAN YI Name Point : 496 Product Name Code Total (RM) Qty @ U/(RM) GST Payment Voucher UEW 6"x7*" (5\'s/pack) 18 @ 7.30 SR #1011801-5 131.40 CD-R MAXELL (MX-CDR) 100\'s 1 @ 92.80 92.80 #1120221 SR CD SLEEVE REFIEE OAIBAO OB103 (VR100)/KAYE 1 @ 8,50 #1120472 SR 8.50 PUNCHER MAX DP-F2BN #1240302-02 1 @ 14.85 SR 14.85 Sub Total 247.55 (GST) 14.01 0.00 Rounding Total Include GST 247.55 300.00 Cash 52.45 Change Custcmer Saving from RRP 27.30 Price Inclusive of GST6% GST Summary Amount(RM) Tax(RM) [email protected]% 233.54 14.01 Thank You for shopping at BECON. Goods sold are not exchangable refundable']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-392-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "3.01", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "53.20", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "47.00", "cash_amount": "100.20", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "3", "menuquantity_sum": "7", "line_items": [{"name": "ALUMINIUM FOIL 25SQ# 30CM*7.62M", "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}, {"name": "SEKOPLAS H/D GARBAGE 89cm*117cm 10s", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "9.50", "quantity": "5", "net_price": null, "tax_amount": null, "gross_price": "47.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}, {"name": "PLASTIC BAGS", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.20", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "0.20", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['31804048 MR. D.I.Y. (M) SDN BHD (CO.REG 860671-D) LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No 000306020352) (IOI PUCHONG) -TAX INVOICE- *S ALUMINIUM FOIL 25SQ# 30CM*7.62M BJ41/2-52 : 24 1 X 9069295 5.50 5.50 *S SEKOPLAS H/D GARBAGE 89cm*117cm 10s WA58 = 16 5 X 9.50 47.50 9557002081113 *S PLASTIC BAGS 1 X 99999 0.20 0.20 Item(s) : 3 Qty(s) : 7 RM 53.20 Total Incl. GST@6% RM 100.20 CASH RM 47.00 CHANGE RM 3.01 GST @6% included in total * * 28-04-18 15:40 SH01 ZJ86 T3 R000064333 OPERATOR TRAINEE CASHIER EXCHANGE ARE ALLOWED WITHIN 7 DAY WITH RECEIPT. STRICTLY NO CASH REFUND.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-86-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "15.00", "tax_rate": null, "tax_amount": "0.90", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "15.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "34.10", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "5", "menuquantity_sum": "6", "line_items": [{"name": "TOILET BRUSH 47-2311", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.70", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.70", "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": "CEMENT KN BLK-2", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.60", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "1.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": "HSS TWIST DRILL 5.5*", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.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": "HSS TWIST DRILL 6*1", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.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": "CURTAIN STRAPS", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.50", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "5.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MR.D.I.Y(M)SDN BHD Co-REG:860671-D LOT 1851-A & 1851-B, JALAN KPB 6, KAWASAN PERINDUSTRIAN BALAKONG, 43300 SERI KEMBANGAN, SELANGOR (GST ID No :000306020352) (ENDAH PARADE) -TAX INVOICE- TOILET BRUSH 47-2311 *S HD03-04-06 - 5/40/160 9067860 1 X 2.70 2.70 CEMENT KN BLK-2 *S KF12 - 12/240 9071872 1 X 1.60 1.60 HSS TWIST DRILL 5.5* *S KH22 - 10/500 6909906163102 1 X 3.30 3.30 HSS TWIST DRILL 6*1 *S KH12 - 10/500 6909906163103 1 - X 3.30 3.30 CURTAIN STRAPS *S CK11-22-31 - 10/400 8720019 2 X 2.50 5.00 Item(s) : 5 Qty(s) : 6 TOTAL INCL.GST86% RM 15.90 CASH RM 50.00 CHANGE RM 34.10 GST Summary Amt(RM) Tax(RM) GST S@6% 15.00 0.90 19-09-17 15:39 SH01 ZJ03 T3 R000100808 OPERATOR TSGC - KARKI DAMMAR BAHADUR EXCHANGE ARE ALLOWED WITHIN 7 DAY WITH RECEIPT. STRICTLY NO CASH REFUND.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-549-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "261.32", "tax_rate": null, "tax_amount": "15.68", "base_gross_total": null, "gross_discounts": ["0.90"], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "277.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "277.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "10", "menuquantity_sum": "44", "line_items": [{"name": "3/4\" TOWEL ROD BRACKET", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.00", "quantity": "2", "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": "1\" TOWEL ROD BRACKET(END)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "6.00", "quantity": "2", "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": "3/4\" TOWEL ROD BRACKET (END)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.00", "quantity": "5", "net_price": null, "tax_amount": null, "gross_price": "20.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": "3/4\" TOWEL ROD BRACKET (ROUND)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.50", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "22.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": "25MM X 10 WALL PLUG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.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}, {"name": "SANDFLEX SAW BLADE 18T", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "4.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}, {"name": "SCREW", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "7.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "7.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": "5 3/4\"V BRACKET", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "1.50", "quantity": "5", "net_price": null, "tax_amount": null, "gross_price": "7.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}, {"name": "6 1\" S/STEEL ROD", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "15.80", "quantity": "6", "net_price": null, "tax_amount": null, "gross_price": "94.80", "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": "17 3/4\" ALUMINIUM ROD", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.80", "quantity": "17", "net_price": null, "tax_amount": null, "gross_price": "98.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['HON HWA HARDWARE TRADING Company Reg. No. : 001055194X NO 37, JALAN MANIS 7, TAMAN SEGAR, 56100 CHERAS, KUALA LUMPUR. +603-9130 2672 GST Reg : 001125220352 TAX INVOICE CB#: 69158 08/02/2017 3:43:01 PM M# : C1-0 Cashier : cash3 - Oly Description Price Tolal(RM, - 2 "TOWEL ROD 6.00 12.00 SR BRACKET(END) 2 3/4" TOWEL ROD 4.00 8.00 SR BRACKET 5 3/4"TOWEL ROD 4.00 20.00 SR BRACKET(END) 4 3/4"TOWEL ROD 5.50 22.00 SR BRACKETROUND) 1 25MM X 10 WALL PLUG 3.50 3.50 SR 1 SANDFLEX SAW 4.50 4.50 SR BLADE 18T 1 SCREW 7.00 7.00 SR 5 3/4"V BRACKET 1.50 7.50 SR 6 1" S/STEEL ROD 15.80 94.80 SR Item Discount 0.00 17 3/4" ALUMINIUM ROD 5.80 98.60 SR 44 Type: 10 Total 277.90 0.90 Discount: Rounding Adi 0.00 Total Inclusive GST: 277.00 CASH 277.00 GST Summary Code % Net Amt GST Total(RM) SR SR 261.32 15.68 277.00 Tofal 15.68 261.32 277.00 Thank you ! & Please come again !! Goods sold are not returnable for relund or exchange I']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-457-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "1.69", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "22.58", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": "2.13", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "4.26", "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": [], "gross_total": null}, {"name": "WHOLEMEAL", "net_unit_price": "2.78", "unit_tax": null, "gross_unit_price": null, "quantity": "-1", "net_price": "-2.78", "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": [], "gross_total": null}, {"name": "O.C. JUMBO", "net_unit_price": "2.97", "unit_tax": null, "gross_unit_price": null, "quantity": "-3", "net_price": "-8.91", "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": [], "gross_total": null}, {"name": "CR-VANILLA", "net_unit_price": "0.72", "unit_tax": null, "gross_unit_price": null, "quantity": "10", "net_price": "7.20", "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": [], "gross_total": null}, {"name": "CR-CORN", "net_unit_price": "0.72", "unit_tax": null, "gross_unit_price": null, "quantity": "20", "net_price": "14.40", "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": [], "gross_total": null}, {"name": "SQ-CHOCMLT", "net_unit_price": "0.84", "unit_tax": null, "gross_unit_price": null, "quantity": "8", "net_price": "6.72", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERIES (KL) SDN BHD Lot 3, Jalan Pelabur 23/1, 40300 Shah Alam, Selangor. Tei: 03 55423228 Fax:03- 55423213 GSTID: 000381399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7919F712 VI Date: 19/09/2017 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/4B, 47500 SUBANG JAYA, SELANGOR VI E05: Ridzuan (11900) DD: 19/09/2017 11:09 Desc cription U.P Iss Exc D Sale AmtCRM) 0.C. WHITE 2.13 4.26 6 4 0 2 WHOLEMEAL 2.78 2 3 0 -1 -2.78 2.97 3 0 -3 -8.91 0 0.C JUMBO Total 0% supplies: -7.43 10 CR-VANILLA 0.72 10 0 0 7.20 0 0 20 0.72 20 14.40 CR-CORN 6.72 SQ-CHOCMLT 0.84 0 0 8 8 Total 6% supplies (excl. GST): 28.32 1.69 GST: 30.01 Total 6% supplies (Inc. GST): Total 0% supplies: -7.43 Total Payable: 22.58 E.&.0.E. Received above goods in good order fition. The recipient of Gardenia's products 1S required to make necessary adjus tments to its input tax claims, on the basic of the adjus tments shown in this Tax Invoice / Adjus tment Note CUSTOMER'S COPY"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-189-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "21.30", "tax_rate": null, "tax_amount": "1.31", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": "0.65", "gross_total": "23.26", "rounding_adjustment": "-0.01", "commission_fee": null, "due_amount": "23.25", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "SUONG NON RAM CHUA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "9.90", "tax_amount": null, "gross_price": null, "sub_items": [{"name": "Sweet &Sour Pork Ribs", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "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": "Tau Hu Don Thit Chi", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "9.90", "tax_amount": null, "gross_price": null, "sub_items": [{"name": "Stuff Meat Tau Fu", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "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": "TRA DA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "1.50", "tax_amount": null, "gross_price": null, "sub_items": [{"name": "Vietnamese Iced Tea", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Banh Mi CafE Dimiliki: banh mi cafe sdn bhd 1110644-W No. 1 Jalan Puteri 7/10 Bandar Puteri, 47100 Puchong Selangor, Malaysia (GST Reg. No : 000306700288) GUEST CHECK Table A INV No.: 153887 Pax(s): 2 Date : 29-10-2017 18.31:45 Cashier: Cashier A Qty Description Total TAX 1 205 SUONG NON RAM CHUA 9.90 SR. 205 Sweet &Sour Pork Ribs 1 217 Tau Hu Don Thit Chi 9.90 SR 217 Stuff Meat Tau Fu 1 605 TRA DA 1.50 SR 605 Vietnamese Iced Tea Total (Excluding GST): 21.30 Serv. Charge (3%): 0.65 GST payable (6%): 1.31 Total (Inclusive of GST): 23.26 Rounding Adj: -0.01 23.25 TOTAL: Closed: 29-10-2017 Server: Cashier A GST Summary Amount(RM) Tax(RM) Inquries: 012-3225548 Like us @ Facebook: banhmikl Email : Danlaicafelegmail.com']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-553-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "7.74", "tax_rate": null, "tax_amount": "$0.46", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "$8.20", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "$0.00", "cash_amount": "$8.20", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Meat + 3 Vege", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "$7.10", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "$7.10", "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": "Vegetable", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "$1.10", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "$1.10", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['A04063 UNIHAKKA INTERNATIONAL SDN BHD 16 Apr 2018 18:23 (867388-U) 12, Jalan Tampoi 7/4,Kawasan Perindustrian Tampoi,81200 Johor Bahru,Johor TAXINVOICE Invoice #: OR18041602170486 Total Item Qty SR 100100000035- 1 Meat + 3 Vege $7.10 $7.10 1 SR 100100000015- Vegetable $1.10 $1.10 1 Total Amount: $8.20 GST @69: $0.46 Nett Total: $8.20 Paymient Mode Amount $8.20 CASH $0.00 Change Amount(s) Tax($) GST Summary SR = GST @6% 7.74 0.46 GST REG #000656195584 BAR WANG RICE@PERMAS JAYA (Price Inclusive Of GST) Thank You & Come Again! Like and Follow Us on Facebook! FascabokcomgawangPe']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-504-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "155.50", "tax_rate": null, "tax_amount": "9.31", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": null, "rounding_adjustment": "-0.01", "commission_fee": null, "due_amount": "164.80", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "7", "menuquantity_sum": "9", "line_items": [{"name": "CREAM OF MUSHROOM SOUP", "net_unit_price": "6.10", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "12.20", "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": [], "gross_total": null}, {"name": "NOODLE SOUP O.T.ROCK", "net_unit_price": "12.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "12.90", "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": [], "gross_total": null}, {"name": "SPICY T/S SPAGHETTI", "net_unit_price": "14.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "14.90", "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": [], "gross_total": null}, {"name": "SIRLOIN STEAK", "net_unit_price": "34.90", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "69.80", "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": [], "gross_total": null}, {"name": "GRILLED MARINATED", "net_unit_price": "19.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "19.90", "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": [], "gross_total": null}, {"name": "GRILLED CHICKEN CHOP", "net_unit_price": "18.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "18.90", "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": [], "gross_total": null}, {"name": "ICED LEMON TEA", "net_unit_price": "6.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "6.90", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['ROSIII SIZZLING STONEGRILL Dimiliki Oleh : Dove Holdings Sdn Bhd Reg No 91694-X Lot S25, AEON Tebrau City Jusco No 1, Jln Desa Tebrau, Tmn Desa Tebrau, 81100 Johor Bahru, Johor +607-357 1177 GST ID: 0013 7941 8112 15 TAX INVOICE NO 80292 Date: 26/05/2018 8:53:27 PM Cashier: c001 Tax Qty Code/Desc Unit Price Total RM SR 2 6.10 12.20 07 CREAM OF MUSHROOM SOUP SR 1 12.90 12.90 101 NOODLE SOUP O.T.ROCK SR 1 14.90 14.90 107 SPICY T/S SPAGHETTI SR 2 69.80 34.90 40 SIRLOIN STEAK SR 1 19.90 19.90 51 GRILLED MARINATED SR 1 18.90 18.90 54 GRILLED CHICKEN CHOP SR 1 6.90 6.90 99 ICED LEMON TEA Total Amount : 155. 50 9.31 GST 6% Rounding Adj : -0.01 Total Amount: 164. 80 TOTAL: RM 164.80 26/05/2018 8:53:37 Type 7 Qty: 9 GST Summary Amount RM TAX RM 155.50 9.31 SR 6% 0.00 0.00 ZR 0% Xposmart WiFiPOS Since 1985']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-506-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "165.00", "tax_rate": "6", "tax_amount": "9.90", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "174.90", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "25.10", "cash_amount": "200.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "3", "line_items": [{"name": "B.R.C A10 1.7X4M", "net_unit_price": "55.00", "unit_tax": null, "gross_unit_price": "58.30", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "174.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Cele R MBB 264 - 100 KEDAI PAPAN YEW CHUAN (0005583085-K) LOT 276 JALAN BANTING 43800 DENGKIL, SELANGOR. TEL : 03-87686092 FAX : 03-87686092 GST ID : 000781500416 TAX INVOICE Bill To: SUCI ALAM JAYA TRANSPORT NO 1 JALAN AMAN 2 TAMAN DESA 43800 DENGKIL SELANGOR 017-6057770 Doc No. CS00010930 Date: 17/03/2018 Cashier USER Time: 15:02:00 Salesperson Ref.: (GST) (GST) Qty Item Amount S/Price S/Price Tax 100088 3 55.00 58.30 174.90 SR B.R.C A10 1.7X4M Total Qty: 3 174.90 Total Sales (Excluding GST) : 165.00 Discount : 0.00 Total GST : 9.90 Rounding : 0.00 Total Sales (Inclusive of GST) : 174.90 CASH : 200.00 Change : 25.10 GST SUMMARY Tax Code % Amt (RM) Tax(RM) SR 6 165.00 9.90 Total : 9.90 165.00 GOODS SOLD ARE NOT RETURNABLE, THANK YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-372-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "31.60", "tax_rate": null, "tax_amount": "1.90", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "33.50", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "33.50", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "16.50", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "DEFLECT-O 120 X 55MM L SHAPE TAG HOLDER (LANDSCAPE) (DDKRL-120X55)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "5", "net_price": null, "tax_amount": null, "gross_price": "11.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": "7\" POP MOBILE STAND (M- 1755)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "5", "net_price": null, "tax_amount": null, "gross_price": "22.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANYOSTATIONERYSHOP NO. 31G&33G, JALAN SETIA INDAH X,U13/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. 2022-0124 DEFLECT-O 120 X 55MM L SHAPE TAG HOLDER (LANDSCAPE) (DDKRL-120X55) 5 X 2.2000 SR 11.00 2. 2020-0231 7" POP MOBILE STAND (M- 1755) 5 X 4.5000 22.50 SR Total Sales Inclusive GST @6% 33.50 Discount 0.00 Total 33.50 Round Adj 0.00 Final Total 33.50 : CASH 50.00 CHANGE 16.50 GST Summary Amount(RM) Tax(RM) SR @ 6% 31.60 1.90 INV NO: CS-SA-0121370 Date : 01/11/2017 Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEPTHIS RECEIPT FOR PROVEOF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook: Sanyu.Stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-489-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "4.00", "tax_rate": "6", "tax_amount": "0.24", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": "0.00", "gross_total": null, "rounding_adjustment": "0.01", "commission_fee": null, "due_amount": "4.25", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.05", "cash_amount": "4.30", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "8", "line_items": [{"name": "A4 CIR COPY", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.53", "quantity": "8", "net_price": null, "tax_amount": null, "gross_price": "4.24", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['PRINT EXPERT SDN BHD (989625-A) NO 18, 20, 22, JALAN BUNGA TANJONG 2/16, 40000 SHAH ALAM, SELANGOR TEL 03-55250588 GST ID : 000886677504 TAX INVOICE Receipt #: CS00489817 Table: 13 Staff: ELYN Date: 12/01/2018 Cashier USER Time 16:57:00 Amt Tax Qty Price Description A4 CIR COPY 0.53 4.24 SR 8 Totai 8 4.24 fctal Sales (Excluding GST) 4.00 Discount 0.00 Service Charge 0.00 TotalGST 024 Rounding 0.01 Total Sales (inclusive of GST) 4.25 CASH 4.30 CHANGE 0.05 GST SUMMARY Tax Code % Amt (RM) Tax (RM) SR 6 4.00 0.24 Total: 4.00 0.24 # indicaled this tax codo beiong to service charges. GOODS SOLD ARE NOT RETURNABLE, ITEM NOT nr nirnnern caurten Ahr TIAaI']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-498-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": "6.00 %", "tax_amount": "RM0.40", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM7.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Parking Fee", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "RM6.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Ampang 210 First City Parking Sdn Bhd (961394-x) A-09-10 Prima Averue 1/39, Dataran Prima The Tube, 47301 Petaling Jaya Selangor DE (GST ID No : 001656262656) Tel : 03-7887 2622 Ta Invoice /S 03 A INV-NO.2003160418000001 T/D #22 Ticket No.071811 16/04/2018 (Mon) 8:21 ntry Time 16/04/2018 (Mon) 9:49 Paid Time 1:28 arking Time Rate A RM7.00 Parking Fee RM6.60 Amount 6.00 % RM0.40 ST(Included) RM7.00 Total RM7.00 Paic RMO.00 Change Inclusive 6% GST Thark You']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-517-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "35.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "635.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": "635.00", "emoney_amount": null, "other_payments": [], "menutype_count": "3", "menuquantity_sum": null, "line_items": [{"name": "PRISTIN OMEGA-3 FISH OIL 2X150'S(VIP)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "300.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "300", "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 450MG 450G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "165.00", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "330", "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": "0-(DERMAPRO OINT) 15G", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "5", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["TOSTFD BEMED (SP) SDN. BHD. No.49, Jatan OinarG U3/G, Subang Perdana, 40150 Shah Alam, selangor D. 03-7845 8155 GST Reg : 001734164480 CASH RECEIPT 15/Apr/2017 04:56:46 CB# : 83679570476 Cashier: be () Total Qy Code&Desc Price PRISTIN OMEGA-3 FISH OIL 2X150'S(VIP) 300 8R 1 209250 300.00 ALPHA LIPID LIFE LINE 450MG 450G 330 BR 2 184810 105.00 0-(DERMAPRO OINT) 15G V 5 ZRL 1 178104 5.00 4 Type: 3 035.00 SubTotal: 0.00 Rounding Adi: 635.00) inclusive GST: 635.00 MASTER Tax GST Summary: Amount (MYR) (MYR) 35.00 V SR 594.34 0.00 ZRL 5.00 ONG GUAT CHYE Points : 1,124 Thank you. Please come again."]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-338-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.72", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "36.55", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.13", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "6.39", "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": "WHOLEMEAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.78", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "5.56", "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": "O.C. JUMBO", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.97", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "11.88", "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": "DELICIA-E/SCOICH", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.72", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "11.16", "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": "CR-CHOCLT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.72", "quantity": "-13", "net_price": null, "tax_amount": null, "gross_price": "-9.36", "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": "CR-B'SCOTCH", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.84", "quantity": "-5", "net_price": null, "tax_amount": null, "gross_price": "-4.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}, {"name": "SQ-S.BERRY", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.72", "quantity": "20", "net_price": null, "tax_amount": null, "gross_price": "14.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERI ES (KL) SDN BHD (139386 X) Lot 3, Jalan Pelabur 23/1, 40300 Shah Alam, Selangor. Tel: 03- 55423228 Fax:03- 55423213 GSTID: 000381399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7925F716 VEE Date: 25/09/2017 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/4B, 47500 SUBANG JAYA, SELANGOR VE05: Ridzuan (11900) 12:12 DD: 25/09/2017 U.P Iss Exc D Sale Amt(RM) Description 6.39 0 0 3 0.C. WHITE 3 2.13 5.56 0 0 2.78 2 2 WHOLEMEAL 11.88 2.97 0 0 4 4 0.C JUMBO Total 0% supplies: 23.83 11.16 3 DELICIA-E/SCOICH 3.72 3 0 @ 14.40 20 0.72 20 0 @ CR-CHOCLT -9.36 0.72 0 13 0 -13 CR-B'SCOTCH -5 -4.20 0 5 0 SQ-S.BERRY 0.84 12.00 Total 6% supplies (excl. GST): GST: 0.72 Total 6% supplies (Inc. GST): 12.72 23.83 Total 0% supplies: Total Payable: 36.55 E.&.0.E. Received above goods in good order condition. The recipient of Gardenia's products is required to make necessary adjus tments to its input tax claims, on the basic of the adjus tments shown in this Tax Invoice / Adjustment Note RE PRINT"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-520-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "2.36", "tax_rate": "6%", "tax_amount": "0.14", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "2.50", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "2.50", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "1", "menuquantity_sum": "1", "line_items": [{"name": "ALL SOIT DRINK CAN", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.50", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANG KEE CHERAS RESTAURANT (001910559-U) 09, JALAN TEMENGGUNG 3/9 BANDAR MAHKOTA CHERAS 43200 CHERAS SELANGOR ( NO ID GST 001226018816 ) TAX INVOICE NO. : 74285 999 01-01 03/05/2018 20:24 EMSRet 180:0320240).74285 - dh2476558+014 BCODE QTY U/PRICE AMT 1 9556570105139 2.50 2.50s ALL SOIT DRINK CAN SUB-TOTAL 2.50 Total GST(I) 0.14 1 Total Iteme S) Total Quanuty - 1 RM Total Incl GST 2.50 Pay cash 2.50 0.00 Change THANK YoU. - PLEASE COME AGAIN GST Taxabie Amt GST Amt S-SRC) - 6% 2.36 0.14']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-469-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "7.00", "tax_rate": "6", "tax_amount": "0.42", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "7.42", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "7.42", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "SPRAY PAINT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "7.42", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "7.42", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['ssfAwon ISLNN ne 1 212 - ol 2 3 SYARIKAT PERNIAGAAN GIN KEE (81109-A) NO 290, JALAN AIR PANAS, SETAPAK, 53200, KUALALUMPUR. TEL:C 03-40210276 GST ID : 000750673920 SIMPLIFIED TAX INVOICE CASH Date: 02/12/2017 CS00011955 Doc No. Time: 17 21:00 USER Cashier Ref.: Salesperson SIPrice Amount Tax Qty Item SR 7.42 7.42 1 1587 SPRAY PAINT 742 1 Total Qty 7.00 Total Sales (Excluding GST) . 0.00 Discount : 0.42 Total GST . 0.00 Rounding 7.42 Total Sales (Inclusive of GST) : 7.42 CASH : 0.00 Change : GST SUMMARY Tax( (RM) Amt (RM) % Tax Code 042 700 6 SR 0.42 7.00 Total: IRNABLE THANK YOU']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-340-0
|
{"base_taxable_amount": "97.60", "net_discounts": [], "net_service_charge": "9.76", "taxable_amount": "107.36", "non_taxable_amount": null, "net_total": null, "tax_rate": "6%", "tax_amount": "6.44", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "113.80", "rounding_adjustment": null, "commission_fee": null, "due_amount": "113.80", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": "113.80", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "4", "line_items": [{"name": "Salmon Teriyaki Wazen", "net_unit_price": "25.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "25.90", "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": [], "gross_total": null}, {"name": "Chicken Salad & Sashimni Gozen", "net_unit_price": "25.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "25.90", "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": [], "gross_total": null}, {"name": "Chicken Katsu Curry Wazen", "net_unit_price": "19.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "19.90", "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": [], "gross_total": null}, {"name": "Saba Teriyaki Wazen", "net_unit_price": "25.90", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "25.90", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['TOKYO KITCHEN (CITTA MALL) TOKYO KITCHEN SDN BHD (945402-P) G-26, GRD FLOOR,CITTA MALL, 4 NO 1, JALAN PJU, 1A/4B, JLN PJU 1,ARA DAMANSARA, 47301 PETALING JAYA. SELANGOR. GST Reg. No : 002007515136 Tax Invoice POSTED Table D2 Order#. 149308 Pax(s): 4 Bil#: V007- 147795 : 23-04-2017 21:04:28 Date Casher: IMIE U.price Total TAX Description Qty Salmon Teriyaki Wazen 1 X 25.90 25.90 SR Chicken Salad & Sashimni Gozen 1 X 25.90 25.90 SR Chicken Katsu Curry Wazen 1 X 19.90 19.90 SR Saba Teriyaki Wazen 1 X 25.90 25.90 SR 97.60 Total (Excluding GST): Serv. Charge (10%): 9.76 GST Payable: 6.44 Total (Inclusive of GST): 113.80 TOTAL: 113.80 Closed: 1528 23-04-2017 21:42:00 Server: PETER VISA 113.80 ##*#**###7501 WONG TAI CHIN %b42 GST Summary Amount(RM) Tax(RM) SR (@ 6%) 107.36 6.44 (Guest Signature) **** Thank You **** Please Come Again T13- POWERED BY WWW.MYSIS.COM.MY.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-230-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "RM 0.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM 30.00", "rounding_adjustment": "RM 0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "RM 30.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "TNG Reload", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "RM 29.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}, {"name": "Reload Fee", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "RM 0.50", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['MRT aperatad. ty rapidKL TAX INVOICE RAPID RAIL SDT. BHD No1 JALAN PJU A/46, OFF JALAN LAPANGAN TERBANG SUBANG PETALING JAYA SELANGOR 47301 GST Reg. No : 001345261568 OTP Sale receipt TSC : 22MGOOSUBS- 11002 Agent ID : 114500 SHIFT ID : 38599 Transaction : 89 Date : 18/06/2018 08:18.00 Quantity Amount Description Tax (RM) code 3097352783 Media nb RM 1.90 Balance before Balance after RM 31.40 1 RM 29 50 ES TNG Reload RM 30 RM 0.50 SR Reload Fee 1 - RM 30.00 Total RM 0.00 Rounding RM 0.00 Inclucing GST Amount GST GST Summary RM 0.00 RM 0.50 SR=GST 0.00%: RM 0.00 RM 29.50 ES=GST 0.00% Amsunt Payment mode RM 30.00 Cash **** Please retain receipt for reference *R** JK Date printed 18/06/2018 08:18:01']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-360-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "15.00", "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "15.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "15.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "1.00", "menuquantity_sum": "1.00", "line_items": [{"name": "MAKANAN", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "15.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "15.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['RESTORAN HASSANBISIRO NO.2-1-1 JALAN ETIA PRIMA Q U 13/0 SETIA Al AM 40170 SHArl A! AM SELANLOR TAX INVOICE TERMINAL : CI : HASSAN CASHIER BILL NO : C1-0170778 DATE : 12/28/2017 10:17:32 PM : CT1 TOKEN TABLE : CT1 Pru ct Qty U.Price GST Total MAKANAN 1 15.00 0 15.00 ZR Total Items = 1.00 Total Qty 1.00 : Sub Total RM 15.00 Discount RM 0.00 Total Excl.63 GST RM 15.00 GST 63 RM 0.00 Total Incl.62 GST RM 15.00 Rounding RM 0.00 CASH RM 15.00 CHANGE RM Q.00 Thank You.Come Again 2017-12-28 22:17PM']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-237-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "42.20", "tax_rate": "6", "tax_amount": "2.53", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "44.73", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "44.73", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "44.73", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "5", "line_items": [{"name": "25MM GI NIPPLE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.71", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.71", "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": "SEAL TAPE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.64", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "1.27", "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": "32MM POLY SOCKET", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.83", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "5.83", "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": "1\" BALL VALVE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "33.92", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "33.92", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['31,8 )1 0L1 SYARIKAT PERNIAGAAN GIN KEE (81109-A) NO 290, JALAN AIR PANAS, SETAPAK, 53200, KUALA LUMPUR. TEL : 03-40210276 GST ID : 000750673920 SIMPLIFIED TAX INVOICE CASH Doc No. CS00012543 Date: 04/01/2018 Time: 15:39:00 USER Cashier Ref.: Salesperson Qty Tax Item S/Price Amount 2402 1 3.71 3.71 SR 25MM GI NIPPLE 1462 2 0.64 1.27 SR SEAL TAPE 1 5.83 5.83 SR 1748 32MM POLY SOCKET 1 33.92 33.92 2247 SR 1" BALL VALVE 44.73 Total Qty: 5 42.20 Total Sales (Excluding GST) : 0.00 Discount : 2.53 Total GST : 0.00 Rounding : 44.73 Total Sales (Inclusive of GST) : CASH : 44.73 Change : 0.00 GST SUMMARY Tax Code % Amt (RM) Tax(RM) 2.53 42.20 SR 6 Total : 42.20 2.53 GOODS SOLD ARE NOT RETURNABLE, THANK YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-308-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "165.00", "tax_rate": "6", "tax_amount": "9.90", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "174.90", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "174.90", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "10", "line_items": [{"name": "SIMEN", "net_unit_price": "16.50", "unit_tax": null, "gross_unit_price": "17.49", "quantity": "10", "net_price": null, "tax_amount": null, "gross_price": "174.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['R KEDAI PAPAN YEW CHUAN (0005583085-K) LOT 276 JALAN BANTING 43800 DENGKIL, SELANGOR. TEL : 03-87686092 FAX : 03-87686092 GST ID : 000781500416 TAX INVOICE Bill To SUCI ALAM JAYA TRANSPORT NO 1 JALAN AMAN 2 TAMAN DESA 43800 DENGKIL SELANGOR 017-6057770 Doc No. CS00011351 Date: 31/03/2018 USER Time: 09:29:00 Cashier Ref.: Salesperson (GST) (GST) S/Price S/Price Amount Qty Item Tax 101756 10 16.50 SR 17.49 174.90 SIMEN Total Qty: 10 174.90 - Total Sales (Excluding GST) : 165.00 Discount : 0.00 Total GST : 9.90 0.00 Rounding : Total Sales (Inclusive of GST) : 174.90 CASH : 174.90 0.00 Change : GST SUMMARY Tax(RM) Tax Code % Amt (RM) SR 165.00 9.90 6 Total : 165.00 9.90 GOODS SOLD ARE NOT RETURNABLE, THANK YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-288-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "5.57", "tax_rate": null, "tax_amount": "0.33", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "5.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "44.10", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "WET TISSUE 150S", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "5.90SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['V AEON CO. (M) BHD. (126926-H) - 3 FLOOR, AEON TAMAN MALURI SC JLN JEJAKA, TAMAN MALURI CHERAS, 55100 KUALA LUMPUR GST ID : 002017394688 SHOPPING HOURS SUN = THU:1000 HRS - 2200 HRS FRI - SAT:1000 HRS = 2300 HRS 1x 000004497295 5.90SR WET TISSUE 150S Sub-total 5.90 Total Sales Incl GST 5.90 Total After Adj Incl GST 5.90 CASH 50.00 Item Count 1 Change Amt 44.10 Invoice No: 2018032251310415556 GST Summary Amount Tax SR @ 6% 5.57 0.33 Total 5.57 0.33 22/03/2018 10:18 5131 041 0415556 0305215 DIANA BINTI JASMAN AEON DAISO FESTIVAL MALL TEL -300-00-AEDN(2366) THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-20-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "59.99", "tax_rate": null, "tax_amount": "3.36", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "63.35", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "63.35", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "26", "line_items": [{"name": "SR:FEI YAN BRAND YOUNG CORN 425G", "net_unit_price": "2.33", "unit_tax": null, "gross_unit_price": null, "quantity": "24", "net_price": "55.99", "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": [], "gross_total": null}, {"name": "ZRL:ASAM BOI 65G", "net_unit_price": "2.00", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "4.00", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['CP YONG CEN ENTERPRISE 9, JALAN SUBANG JASA 3, 40150 SHAH ALAM, SELANGOR. TEL: 012-9719498 GST NO: 001147981824 CASH RECEIPT #: CS00677115 DATE: 02/03/2018 TIME: 09:43:00 SALESPERSON: COUNTER: U/P AMOUNT QTY ITEM 55.99 2.33 24 9555223500307 SR:FEI YAN BRAND YOUNG CORN 425G (2.333X 4.00 2.00 2 9557166110018 ZRL:ASAM BOI 65G 26 TOTAL QUANTITY 59.99 SUB-TOTAL 0.00 DISC GST 3.36 63-15 TAX 0.00 0.00, ROUNDING TOTAL 63.35 9 CASH 63.35 CHANGE 0.00 GOODS SOLD ARE NOT RETURNABLE, THANK - YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-612-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.88", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "5.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.13", "quantity": "-6", "net_price": null, "tax_amount": null, "gross_price": "-12.78", "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": "WHOLEMEAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.78", "quantity": "-1", "net_price": null, "tax_amount": null, "gross_price": "-2.78", "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": "O.C. JUMBO", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.97", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "5.94", "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": "DELICIA-B/SCOTCH", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.72", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "7.44", "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": "CR-CHOCLT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.72", "quantity": "10", "net_price": null, "tax_amount": null, "gross_price": "7.20", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERIES (KL) SDN BIID (139386 X) Lot 3, Jalan Pelabur 23/1, 40300 Shah Alam, Selangor. Tel: 03 55423228 Fax:03- 55423213 GSTID: 00038 1399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7918F715 VI EUS 14 Date: 18/09/2017 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/48, 475 00 SUBANG JAYA, SELANGOR VE0S: Azlan(3737) 12:33 DD: 18/09/2017 U.P Iss ExC D Sale Amt(RM) Description -12.78 0.C. WHITE 2.13 2 & 0 -6 1 0 WHOLEMEAL 2.78 0 -1 -2.78 0.C JUMBO 2.97 2 5.94 0 0 2 Total 0% supplies: -9.62 0 0 DELICIA-B/SCOTCH 3.72 2 2 7.44 0.72 10 0 0 10 7.20 CR-CHOCLT Total 6% supplies (excl. GST): 14.64 0.88 GST: Total 6% supplies (Inc. GST): 15.52 Total 0% supplies. -9.62 Total Payable: 5.90 E.8..E. Received above goods in good order condition. The recipient of Gardenia's products LS required to make necessary adjus tments to its input tax clains, on the basic of the adjus tments shown in this Tax Invoice A Adjus tment Note CUSTOMER'S COPY"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-443-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "28.00", "tax_rate": "6", "tax_amount": "1.68", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "29.68", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "29.68", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "(W33) 105MM/4' CUTTING DISC", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "29.68", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "29.68", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["31812012 SYARIKAT PERNIAGAAN GIN KEE (81109-A) NO 290, JALAN AIR PANAS, SETAPAK, 53200, KUALA LUMPUR. TEL:0 03-40210276 GST ID:000750673920 SIMPLIFIED TAX INVOICE CASH Date. 02/12/2017 CS00011926 Doc No. Time: 08:44:00 USER Cashier Ref.: Salesperson : Amount Tax S/Price Qty Item 29.68 SR 29.68 1 3122 (W33) 105MM/4' CUTTING DISC 29.68 1 TotalQty: 28.00 Total Sales (Excluding GST) : 0.00 : Discount : - 1.68 Total GST : 0.00 Rounding : 29.68 Total Sales (Inclusive of GST) : 29.68 CASH : 0.00 Change : GST SUMMARY Tax(RM) Amt( (RM) Tax Code % 1.68 28.00 6 SR 1.68 28.00 Total: THANK you"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-615-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "21.00", "tax_rate": null, "tax_amount": null, "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "21.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "29.00", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "5", "line_items": [{"name": "NORMAL KEY", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "4.00", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "16.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": "NORMAL KEY LONG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "5.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['31803053 GOLDEN KEY MAKER (000760274-K) No 5, Jalan Kenari 2, Bandar Puchong Jaya, 47100 Puchong, Selangor TEL: 03-58919941 . FAX: 03-58919941 E-Mail: 0dekeytakerigail.con Website: w.golcenke/maker.C0a S/P : HOE Inv No : CS-0014134 24 Mar-2018 03:44:22 PM INVOICE Qty No.Desc/Code Price Disc% Amount 1 NORMAL KEY 33100 4 16.00 4.00 0.00 2 NORMAL KEY LONG 1 33101 5.00 0.00 5.00 Total Qty : 5 Sub-Total : 21.00 0.00 Discount : Net Total : 21.00 Cash Received : 50.00 Change : 29.00 GOODS SOLD ARE NOT REUANABLE/REFUNDABLE']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-172-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "44.25", "tax_rate": null, "tax_amount": "2.65", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "46.90", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "46.90", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "53.10", "cash_amount": "100.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "5", "line_items": [{"name": "PRO ADHESIVE LABEL (WHITE)", "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}, {"name": "RESTAURANT ORDER CHIT NCR 3.5\"x6\"", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.90", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "8.70", "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": "SONOFAX - EC THERMAL ROLL (BLUE) - 57MMX60MMX12MM) (10ROLL/PKT)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "36.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "36.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANYUS STATIONERYSHOF NO. 31G&33G, JALAN SETIA INDAH X,U13/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 PRO ADHESIVE LABEL (WHITE) 1. 2008-0040 2585 1 X 2.2000 2.20 SR 2. 2012-0029 RESTAURANT ORDER CHIT NCR 3.5"x6" 3 X 2.9000 8.70 SR 3. 7002-0014 SONOFAX - EC THERMAL ROLL (BLUE) - 57MMX60MMX12MM) (10ROLL/PKT) 1 X 36.0000 36.00 SR Total Sales Inclusive GST @6% 46.90 Discount 0.00 Total 46.90 Round Adj 0.00 Final Total 46.90 CASH 100.00 CHANGE 53.10 GST Summary Amount(RM) Tax(RM) SR @ 6% 44.25 2.65 INV NO: CS-SA-0133215 28/12/2017 Date : Total Qty: 5 Print Time : Thursday, 28 December, 2017 5:26:39 PN Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEP THIS RECEIPT FOR PROVE OF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook: Sanyu.Stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-589-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "26.60", "tax_rate": null, "tax_amount": "1.76", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": "2.66", "gross_total": "31.02", "rounding_adjustment": "-0.02", "commission_fee": null, "due_amount": "31.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "31.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Tori Teriyaki Don", "net_unit_price": "12.80", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "12.80", "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": [], "gross_total": null}, {"name": "Tako Ball", "net_unit_price": "0.00", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "0.00", "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": [], "gross_total": null}, {"name": "Sushi", "net_unit_price": "1.80", "unit_tax": null, "gross_unit_price": null, "quantity": "4", "net_price": "7.20", "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": [], "gross_total": null}, {"name": "Sushi", "net_unit_price": "2.80", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "5.60", "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": [], "gross_total": null}, {"name": "Green Tea", "net_unit_price": "1.00", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "1.00", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SUSHI MENTAI - PANDAN INDAH KMF FOODICIOUS SDN BHD (1132106-H) NO. 9-G, JALAN PERUBATAN 2, PANDAN INDAH, 55100 KUALA LUMPUR. Tel : +603 2856 0385 GST Reg. No : 000897208320 Tax Invoice Table T13 Order#: 275705 Bill#: V015- 673381 Pax(s): 0 Date : 09-04-2018 19:22:25 Cashier: Cashier Qty U.price Total TAX Description Tori Teriyaki Don 1 X 12.80 SR 12.80 Tako Ball 1 X 0.00 0.00 Sushi 1.80 4 X 1.80 7.20 SR Sushi 2.80 2.80 2 X 5.60 SR Green Tea 1x 1.00 SR 1.00 Total (Excluding GST): 26.60 Serv. Charge (10%): 2.66 GST Payable: 1.76 Total (Inclusive of GST): 31.02 Rounding Adj: -0.02 TOTAL: 31.00 Closed: 0 20:01:23 09-04-2018 Server: Cashier CASH : 31.00 GST Summary Amount(RM) Tax(RM) SR (@ 6%) 29.26 1.76 Thank You!!! Please Come Again!!!']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-216-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "141.50", "tax_rate": null, "tax_amount": ".00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM 141.50", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "RM 8.50", "cash_amount": "RM 150.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "YONGCHUR LOKAM MNDRN S", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "RM 12.50", "quantity": "@5", "net_price": null, "tax_amount": null, "gross_price": "RM62.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}, {"name": "YONGCHUN LOKAM MNDRN M", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "@5", "net_price": null, "tax_amount": null, "gross_price": "RM79.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['99 SPEED MART S/D (519537: X) LOT P.T. 2811, JALAN ANSSA, TAMAN BERKELEY 41150 KLANG, SCLANGOR 1317 TRILLIUM 56 BESI GST ID. NO : 000181747712 INVOICE NO : 18299/102/T0230 05 02-18 568817 01:34PM RM62.50 Z 2506 YONCCHUR LOKAM MNDRN S e5 X RM 12.50 2508 YONGCHUN LOKAM MNDRN M RM79.00 Z C5 X RM 15.80 Total Sales (Inclusive GST) RM 141.50 CASH RM 150.00 CUANGE RM 3.50 GST Sumsary Amount(RM) Tax(RM) Z : 0X 141.50 .00 Thank You. Please conE again Keep the invoice for applicable returns']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-369-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "5.00", "tax_rate": "6", "tax_amount": "0.30", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "5.30", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "5.30", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "NAIL (PER/PACK) - RM5", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "5.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['I 80201C, 3 SYARIKAT PERNIAGAAN GIN KEE (81109-A) NO 290, JALAN AIR PANAS, SETAPAK, 53200, KUALA LUMPUR. TEL: 03-40210276 GST ID : 000750673920 SIMPLIFIED TAX INVOICE CASH Doc No CS00013254 Date: 12/02/2018 Time: 15:29:00 USER Cashier Ref. - Salesperson Qty Item S/Price Amount Tax 5.30 SR 1921 1 5.30 NAIL (PER/PACK) - RM5 Total Qty: 5.30 1 Total Sales (Excluding GST) : 5.00 Discount : 0.00 Total GST : 0.30 0.00 Rounding : Total Sales (Inclusive of GST) : 5.30 5.30 CASH : 0.00 Change : GST SUMMARY % Tax(RM) Tax Code Amt (RM) SR 6 0.30 5.00 5.00 Total : 0.30 GOODS SOLD ARE NOT RETURNABLE, THANK YOU']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-304-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "33.40", "tax_rate": null, "tax_amount": "2.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "35.40", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "14.60", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "6", "line_items": [{"name": "Plastic spoons 8pcs", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.90", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "17.70", "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": "Plastic forks 8pcs", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.90", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "17.70", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['51803044 & #000002 BAIFU (M) Sdn Bhd COMPANY NO(874198-X) DAISO JAPAN, IOI MALL PHONE 03-80763806 GST ID : 001389649920 WELCOME TAX INVOICE 20/03/2018 7:07pm RCPT NO.18252 REG:01 CSH:00000008 4997642045475 Plastic spoons 8pcs 17.70 SR 5.90 X 3 4997642045482 Plastic forks 8pcs 5.90 X 3 17.70 SR SUB TOTAL (INCL. GST) 35.40 RM 35.40 TOTAL CASH 50.00 CHANGE 14.60 # ITEMS SOLD 6 Amt(RM) GST(RM) Tax Code GST (6.000%) 2.00 33.40 THANK YOU "PLEASE COME AGAINT']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-113-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "14.06", "tax_rate": "6%", "tax_amount": "0.84", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "14.90", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "14.90", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "5.10", "cash_amount": "20.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "RESTAURANT ORDER CHIT NCR 3.5\"x6\"", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.90", "quantity": "4", "net_price": null, "tax_amount": null, "gross_price": "11.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": "CASH BOOK 80PGS A4 70GSM CARD COVER (SCB-4012)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.30", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['ANVOSTATONENYSHON NO. 31G833G, JALAN SETIA INDAH X,U13/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. 2012-0029 RESTAURANT ORDER CHIT NCR 3.5"x6" 4 X 2.9000 SR 11.60 2. 2012-0042 CASH BOOK 80PGS A4 70GSM CARD COVER (SCB-4012) 1 X 3.3000 3.30 SR Total Sales Inclusive GST @6% 14.90 Discount 0.00 Total 14.90 Round Adj 0.00 Final Total 14.90 - CASH 20.00 CHANGE 5.10 GST Summary Amount(RM) Tax(RM) SR @ 6% 14.06 0.84 INV NO: CS-SA-0075638 Date : 04/04/2017 Goods sold are not Returnable & Refundable THANK YOUFOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEPTHIS RECEIPT FOR PROVEOF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow usin Facebook:: Sanyu.Stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-548-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "37.55", "tax_rate": "6%", "tax_amount": "2.25", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": "0.00", "gross_total": "39.80", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "39.80", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "2", "menuquantity_sum": "2.0", "line_items": [{"name": "1059 18W SQ WW BK SUR LED LIGHT 1059 SQUARE BLACK FRAME", "net_unit_price": "18.77", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "37.55", "tax_amount": "2.25", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SDN BHD LIGHTROOM GALLERY No: 28, JALAN ASTANA 1C, BANDAR BUKIT RAJA, 41050 KLANG SELANGOR D. E, MALAYSIA ROC No. : (1072825-A) GST No. : 000584089600 4395 Tel:03-3362 4395 Fax:03-3362 CREDIT NOTE C/N No: LCN00211 Station: CASHIER Cover : 1 Cashier: ANGELA Bill Date : 20/11/2017 Bill Start: 20/11/2017 03:55:07 PM Code 300-E0009 Name ESWARAN 012-6369400 Address GST No. SR REFER LCS03158 0 * INIT YT51775 SR 1059 18W SQ WW BK SUR LED LIGHT 1059 SQUARE BLACK FRAME 2 * RM 18. 77 UNI ( 2. 25) =RM 37. 55 Sub 1 tal RM 37.55 Service Charge RM : 0.00 GST/TAX 6% RM 2.25 TOTAL : RM 39.80 CASH : RM 39.80 CHANGE: RM 0.00 Item Count: 2 Qty n mt : 2.0 Closud Bill: 20/11/2017 03:55:56 PM Thank You, Please come again. Goods Sold are not refundable, returnable BANK ACC MBB 5128 4851 2118 BANK ACC MBB 5626 4732 1744 BANK ACC AMBANK 888 100 123 3706 GST Summary Amount (RM) Tax (RM) SR @ 6% 37.55 2.25 ZR/OS/EZ 0.00 0.00 00 S o 3 RI aE boIsI']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-37-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "38.60", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "11.40", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": "3", "menuquantity_sum": null, "line_items": [{"name": "PREMIER 4X200S", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "14.85SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-3.86"], "gross_total": null}, {"name": "APACHE BLACK &", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "13.86SR", "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": "SUPER ESSENSO M", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1x", "net_price": null, "tax_amount": null, "gross_price": "15.00SR", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-1.25"], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['A06067 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.85SR 1x 000001082678 PREMIER 4X200S -3.86 Item promo @10.99 1x 000003384541 13.86SR APACHE BLACK & 1x 000006420611 15.00SR SUPER ESSENSO M -1.25 Item promo @13.75 38.60 Sub-total Total Sales Incl GST 38.60 Total After Adj Incl. GST 38.60 CASH 50.00 Change Amt Item Count 3 11.40 Invoice No: 2018061210100070285 GST Summary Tax Amount SR @ 0% 38.60 0.00 Total 38.60 0.00 1010 007 0070265 12/06/2018 19:40 0306651 PJ NUR AYU REGULAR STAMP(S) : 1 BONUS STAMP(S) : 0 TOTAL STAMP(S) : 1 AEON Stamps Loyalty Program "Product(s)" sold are neither exchangeable nor refundable AEON PERMAS JAYA TEL 1-300-80-AEON (2366) THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-416-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "3.68", "tax_rate": null, "tax_amount": "0.22", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "3.90", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "3.90", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "6.10", "cash_amount": "10.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "1", "line_items": [{"name": "CAMPAP CR 36364 A4 10S BRIEF CARD (CAMPAP ARTO)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "3.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "3.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['SANYO STATIONERYSHOP NO. 31G&33G, JALAN SETIA INDAH X,U13/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. 2000-0240 CAMPAP CR 36364 A4 10S BRIEF CARD (CAMPAP ARTO) 1 X 3.9000 3.90 SR Total Sales Inclusive GST @6% 3.90 Discount 0.00 Total 3.90 Round Adj 0.00 Final Total 3.90 CASH 10.00 CHANGE 6.10 GST Summary Amount(RM) Tax(RM) SR @ 6% 3.68 0.22 INV NO: CS-SA-0128324 04/12/2017 Date : Total Qty: 1 Print Time : Monday, 4 December, 2017 1:55:54 PM Goods sold are not Returnable & Refundable THANK YOU FOR YOUR PATRONAGE PLEASE COME AGAIN. TERIMA KASIH SILA DATANG LAGI ** PLEASE KEEP THIS RECEIPTF FOR PROVE OF PURCHASE DATE FOR I.T PRODUCT WARRANTY PURPOSE ** Follow us in Facebook:: Sanyu.Stationery']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-601-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "46.16", "tax_rate": null, "tax_amount": "2.77", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "48.93", "rounding_adjustment": "0.02", "commission_fee": null, "due_amount": "48.95", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": "48.95", "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "2", "line_items": [{"name": "EAC [SR] WONDER CHEESE FIRMING CREAM", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "69.90", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "69.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-20.97"], "gross_total": null}, {"name": "EAC [ZR] DISCOUNT 30%", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.00", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "0.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['TONYMOLY VIVA CITY (TONYMOLY SHOP (95874)) UNIT L1-044B, VIVACITY MEGAMALL, JALAN WAN ALWI, 93350 KUCHING, SARAWAK. GST ID : 000349356032 Tax Invoice : 880 TERMINAL : 8807946 SALES NO. : 29/03/2018 20:19:07 SALES DATE : Then Fiona CASHIER : CASH CLIENT : 0 POINT EARNED EAC [SR] WONDER CHEESE FIRMING CREAM 1 * 69. 90 69.90 FE02001600 -20.97 DIsC 30. 00% EAC [ZR] DISCOUNT 30% 0.00 1 * 0.00 DIS30 2 Item Count 48.93 Total Sales Incl. GST 0.02 Rounding Adjustment 48.95 Total After Rounding 48.95 VISA 46 XXXXXXXX 1819 Card No a0000000031010 App. Code 46 XXXXXXXX 1819- Tax(RM) Amount(RM) GST Summary 2.77 46.16 SR = 6% 0.00 0.00 ZR = 0% 20.97 Total promotional saving i: inted on: 29-03-2018 20:19:33 Thank You Please Come Again']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-195-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "8.11", "tax_rate": null, "tax_amount": "0.49", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "8.60", "rounding_adjustment": null, "commission_fee": null, "due_amount": "8.60", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "8.60", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "8", "line_items": [{"name": "Teh (B)", "net_unit_price": "2.20", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "2.20", "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": [], "gross_total": null}, {"name": "Cham (B)", "net_unit_price": "2.20", "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": "2.20", "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": [], "gross_total": null}, {"name": "Herbal Tea", "net_unit_price": "1.70", "unit_tax": null, "gross_unit_price": null, "quantity": "2", "net_price": "3.40", "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": [], "gross_total": null}, {"name": "Take Away", "net_unit_price": "0.20", "unit_tax": null, "gross_unit_price": null, "quantity": "4", "net_price": "0.80", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['RESTORAN WAN SHENG 002043319-W No.2, Jalan Temenggung 19/9, Seksyen 9, Bandar Mahkota Cheras, 43200 Cheras, Selangor GST REG NO: 001335787520 Tax Invoice INV No.: 1085405 Cashier: Thandar Date : 09-04-2018 13:16:21 Qty Description U.price Total TAX Teh (B) 1 - X 2.20 2.20 SR Cham (B) 1 X 2.20 2.20 SR Herbal Tea 2 X 1.70 3.40 SR Take Away 4x 0.20 0.80 SR Total QTY: 8 Total (Excluding GST): 8.11 GST payable (6%): 0.49 Total (Inclusive of GST): 8.60 TOTAL: 8.60 CASH : 8.60 GST Summary Tax(RM) Amount(RM) (@ 6%) 0.49 SR 8.11']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-161-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": "6%", "tax_amount": "RM2.90", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "RM51.30", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "RM51.30", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "DoubleCoco Slice", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "RM12.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": "Tiramisu Slice", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "RM12.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": "Mother's Slices", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "RM13.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}, {"name": "Cheese Slice", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "RM12.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["NADEJE PLATINUM SDN BHD GK101,GND FLR,ONE UTAMA SHOPPING CENTRE NO.1,LEBUH BANDAR UTAMA, 47800 PETALING JAYA, SELANGOR. Tel:03-7710 0302 GST 0:001151160320 Bill No.: 000-049909 Take Out Date: 2016/05/01 14:11:20 1 DoubleCoco Slice RM12.60 1 Mother's Slices RM13.50 1 Tiramisu Slice RM12.60 1 Cheese Slice RM12,60 Grand Total RM51.30 (Bill Inclusive of 6% GST : RM2.90) Cash RM51.30 002-2016/05/01 14:13:10 Elin (1) 000-049909 [1]"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-447-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "82.50", "tax_rate": "6", "tax_amount": "4.95", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "87.45", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "87.45", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "5", "line_items": [{"name": "SIMEN", "net_unit_price": "16.50", "unit_tax": null, "gross_unit_price": "17.49", "quantity": "5", "net_price": null, "tax_amount": null, "gross_price": "87.45", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['KEDAI PAPAN YEW CHUAN (0005583085-K) LOT 276 JALAN BANTING 43800 DENGKIL, SELANGOR TEL : 03-87686092 FAX 03-87686092 GST ID : 000781500416 TAX INVOICE Bill To: SUCI ALAM JAYA TRANSPORT NO 1 JALAN AMAN 2 TAMAN DESA 43800 DENGKIL SELANGOR 017-6057770 Doc No. CS00012013 Date: 20/04/2018 Cashier USER Time: 16:03:00 Salesperson Ref.: (GST) (GST) Item Qty S/Price S/Price Amount Tax 101756 5 16.50 17.49 87.45 SR SIMEN 5 Total Qty: 87.45 Total Sales (Excluding GST) 82.50 Discount : 0.00 4.95 Total GST : 0.00 Rounding : Total Sales (Inclusive of GST) : 87.45 CASH : 87.45 Change : 0.00 GST SUMMARY Tax Code % Tax(RM) Amt (RM) SR 6 82.50 4.95 Total : 4.95 82.50 GOODS SOLD ARE NOT RETURNABLE, THANK YOU']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-499-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.73", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "31.05", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.13", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "6.39", "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": "WHOLEMEAL", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.78", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "2.78", "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": "O.C. JUMBO", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.97", "quantity": "3", "net_price": null, "tax_amount": null, "gross_price": "8.91", "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": "CR-CHOCLT", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.72", "quantity": "20", "net_price": null, "tax_amount": null, "gross_price": "14.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": "CR-CORN", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.72", "quantity": "-3", "net_price": null, "tax_amount": null, "gross_price": "-2.16", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERI ES (KL) SDN BHD (139386 X) Loi 3, JalanlPelabur 23/1, $0300 Shah Alam, Selangor. Tel:03- 55423228 Fax:03- 55423213 GSTI ID: 000381399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7018F712 V 1U3 14 Date: 18/10/2017 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/4B, 47500 SUBANG JAYA, SELANGOR VEOS: Ridzuan (11900) DD: 18/10/2017 11:18 Description U.P Iss Exc D Sale Amt(RM) 0.C. WHITE 2.13 3 0 0 3 6.39 WHOLEMEAL 2.78 2 0 3 1 2.78 0.C JUMBO 2.97 1 0 4 3 8.91 Total 0% supplies: 18.08 0.72 20 0 0 CR-CHOCLT 20 14.40 0 3 0 CR-CORN 0.72 -3 -2.16 Total 6% supplies (excl. GST): 12.24 GST: 0.73 Total 6% supplies (Inc. GST): 12.97 Total 0% supplies: 18.08 Total Payable: 31.05 E.&.0.E. Received above goods in good order condition. The recipient of Gardenia's products is required to make necessary adjus tments to its input tax claims, on the basic of the adjus tments shown in this Tax Invoice / Adjus tment Note CUSTOMER'S COPY"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-276-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "15.00", "tax_rate": null, "tax_amount": "0.90", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "15.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "34.10", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "MMx7Y M.ONE TAPE", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "15.90", "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "15.90", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['HOME MASTER HARDWARE & ELECTRICAL NO.113G & 115G, JALAN SETIA GEMEILANG U13/EG EANDARSETIA ALAM, 40170 BANDARSETIA ALAM, SELANGOR. Company Reg No. SA03711551-P GST Reg No. 001637511168 TAX OICE Involce No.: CS 67832 Date: 22/12/2017 14:03 Cashler #: CASHIER Code RM 24MMx7Y M.ONE TAPE 1.00 SR 15.90 15.90 X Gubtotai: 15.90 Total Excl. of GST 15.00 Total Incl. OFGST 15.90 - Total Amnt Rounded 15.90 Payment : 50.00 Change Due : 34.10 Total Item():1 G Tax (RM) mmary Amouni(RM) SR @ 6% 15.00 0.90 44:414. THANK You - : ANY GOODS RETURN PLEASE Da WITHIN 7DAYS WITH ORIGINAL RECEIPT TQAA']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-405-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "7.55", "tax_rate": "6", "tax_amount": "0.45", "base_gross_total": null, "gross_discounts": ["0.00"], "gross_service_charge": null, "gross_total": "8.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "0.00", "cash_amount": "8.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "CAR PARKING COUPON", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "7.55", "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "7.55", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['A0 3090 PERNIAGAAN ZHENG HUI JM0325955-V NO.59 JALAN PERMAS 9/5 BANDAR BARU PERMAS JAYA 81750 JOHOR BAHRU TEL: 07-386 7524 FAX:07-386 3793 GST NO: 000800589824 SIMPLIFIED TAX INVOICE CASH Receipt# CS00085298 Salesperson: Date: 15/03/2018 Cashier: USER Tima: 17:34:00 (RM; (RM) Qty RSP Amount Item 1 7.56 7.56 3934 SR: CAR PARKING COUPON 7.66 TOTQTY: (Excluded GST) Sub Total (RM) : 7.55 Discount (RM) : 0.00 Total GST (RM) : 0.45 Rounding (RM) : 0.00 Total (RM) : 8.00 CASH : 8.00 0.00 Ghange (RM) : GST SUMMARY Tax Code % Amount GST SR 6 7.55 0.45 Total : 7.50 0.45 GOODS SOLD ARE NOT RETURNABLE, THANK YOU.']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-318-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "489.30", "tax_rate": null, "tax_amount": "0.00", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "489.30", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "489.30", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "BERAS ASAS 10KG***", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "24.90", "quantity": "15*BAG", "net_price": null, "tax_amount": null, "gross_price": "373.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}, {"name": "SUN SOS TIRAM 6KG", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "15.95", "quantity": "4BOTOL*", "net_price": null, "tax_amount": null, "gross_price": "63.80", "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": "COKE 24 X 325ML", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "26.00", "quantity": "2PETI *", "net_price": null, "tax_amount": null, "gross_price": "52.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Cash Sale KT WONG TRADING (001904043-H) 22, Jalan Perindustrian Hijau 5, Taman Perindustrian Hijau, Phone: +603-6093 9078 GST Registration No.: 000613294080 Document No. : KTW031475 Date : 09/06/2018 12:17:20 PM DESC PRICE Disc AMOUNT TAX CODE QTY BERAS ASAS 10KG*** 24.90% 15*BAG * 373.50 SR SUN SOS TIRAM 6KG 15.95 X 4BOTOL* 63.80 SR COKE 24 X 325ML 26.00 X 2PETI * 52.00 SR Sub Total Inclusive GST : 489.30 0.00 Rounding Adj. : Rounded Total (RM): 489.30 Tax GST Summary Amount 0.00 SR @ 0% 489.30 Payment Detail Cash 489.30 09/06/2018']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-266-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "9.34", "tax_rate": "6%", "tax_amount": "0.56", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "9.90", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "10.10", "cash_amount": "-20.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "SC Acr Frame SI03M", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "5.50", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "11.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": ["-1.10"], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['BOOK POPULAR (M) CO. SDN BHD (Co. No. 113825-W) (GST Reg No. 001492992000) No 8, Jalan 7/118B, Desa Tun Razak 56000 Kuala Lumpur, Malaysia EMPIRE SHOPPING GALLERY Tel : 03-56319320 Slip No.: 1010104759 05/03/18 15:02 Li Fong Trans: 104610 Member Card No: 1001016668849 Card Expiry: 31/05/18 Amount Description SC Acr Frame SI03M 2pc @ 5.50 11.00 T Member Discount -1.10 Total RM Incl. of GST 9.90 Cash -20.00 CHANGE 10.10 Item Count 2 GST Summary Amount (RM) Tax (RM) T @ 6% 9.34 0.56 Total Savings -1.10 BE A POPULAR CARD MEMBER AND ENJOY SPECIAL DISCOUNTS THANK YOU. PLEASE COME AGAIN. WWW. popular.com. my Buy Chinese books online www.popularonline.com. my']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-33-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "1.87", "base_gross_total": null, "gross_discounts": ["27.60"], "gross_service_charge": null, "gross_total": "33.00", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "17.00", "cash_amount": "50.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "9\"HT (BQ) 2 2P2C-R-2", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "30.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": "9\"NYC (CP) 2 2P2C-R-2", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": "1", "net_price": null, "tax_amount": null, "gross_price": "30.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['TAX INVOICE DOMINO\'S PIZZA GST REF NO : 001694261248 DOMINO\'S PIZZA SEGAMBUT D-08, M Avenue - Jln 1 / 38A Segambut Bahagia 51200 Kuala Lumpur Pay By: CASH CARRY OUT NOW : 5224 : 1955 By Order Order Time : 12:54:37 Date 26/03/18 Name: MS YING Pickup Time: 13:09:37 Disc Price Qty Menu Coupon Desc 1 (BQ) 2i 2P2C-R-2 30.30 9"HT 9"NYC (CP) 2i 2P2C-R-2 30.30 1 27.60 60.60 Total Items 60.60 Sub-Total 27.60 Coupon Discount 33.00 Grand Total 50.00 Payment 17.00 Change Due 1.87 *6% GST Included SUPPORT OUR SMILE CAMPAIGN : ) Did we smile at you? Let us know at w.dminencem.aile and receive a 30% off side item e-coupon upon survey submission Survey Code: CBC261940195554 Thank you for visiting Domino\'s. Please Come Again! 33 3 1 - 300 8 8 8 WWW . dominos.com.my We are compliant to the PDPA 2010. Visit www : deminos.co.my/terat to view our Personal Data Protection Policy. Owned by Dommal Food Services Sdn Bhd 1 Co. No. 419060-A']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-282-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": null, "tax_amount": "0.64", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "26.80", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "O.C. WHITE", "net_unit_price": "2.13", "unit_tax": null, "gross_unit_price": null, "quantity": "10", "net_price": "21.30", "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": [], "gross_total": null}, {"name": "O.C. JUMBO", "net_unit_price": "2.97", "unit_tax": null, "gross_unit_price": null, "quantity": "-2", "net_price": "-5.94", "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": [], "gross_total": null}, {"name": "CR-VANILLA", "net_unit_price": "0.72", "unit_tax": null, "gross_unit_price": null, "quantity": "-5", "net_price": "-3.60", "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": [], "gross_total": null}, {"name": "CR-B'SCOTCH", "net_unit_price": "0.72", "unit_tax": null, "gross_unit_price": null, "quantity": "20", "net_price": "14.40", "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": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
["GARDENIA BAKERIES (KI.) SDN BHD (139386 X) Lot 3, Jalan Pelabur 23/1, 40300 Shah Alam, Selangor. Tel: 03- 55423228 Fax:03- 55423213 GST ID: 000381399040 TAX INVOICE / ADJUSTMENT NOTE Cash Inv No.: 7930F713 VE0S 14 Date: 30/09/2017 MAKASSAR FRESH MARKET SDN BHD GROUND FLOOR, NO. 4 & 6, JALAN SS 15/48, 47500 SUBANG JAYA, SELANGOR VE05: Ridzuan (11900) DD: 30/09/2017 11:52 Description U.P Iss Exc D Sale Ant(RM) 10 21.30 0.C. WHITE 2.13 10 0 0 0 -2 -5.94 2.97 2 0 0.C JUMBO Total 0% supplies: 15.36 CR-VANILLA 0.72 0 5 0 -5 3.60 0 0 CR-B'SCOTCH 0.72 20 20 14.40 Total 6% supplies (excl. GST): 10.80 0.64 GST: Total 6% supplies (Inc. GST) 11.44 Total 0% supplies. 15.36 Total Payable: 26.80 E.&.0.E. Received above goods in good order condition. The recipient of Gardenia's products 1S required to make necessary adjus tments to its input tax claims, on the basic of the adjus tments shown in this Tax Invoice / Adjus tment Note CUSTOMER'S COPY"]
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-431-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "4.54", "tax_rate": null, "tax_amount": "0.26", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "4.80", "rounding_adjustment": null, "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": "4.80", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "4", "line_items": [{"name": "Teh (B)", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.20", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "4.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": "Take Away", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "0.20", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "0.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}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['RESTORAN WAN SHENG 002043319-W No.2, Jalan Temenggung 19/9, Seksyen 9, Bandar Mahkota Cheras, 43200 Cheras, Selangor GST REG NO: 001335787520 Tax Invoice INV No.: 1159923 Cashier: Thandar Date : 26-05-2018 15:16:13 Qty Description Total TAX U.price Teh (B) 2x 2.20 4.40 SR Take Away 2 X 0.20 0.40 SR Total QTY: 4 Total (Excluding GST): 4.54 GST payable (6%): 0.26 Total (Inclusive of GST): 4.80 TOTAL: 4.80 CASH : 4.80 GST Summary Amount(RM) Tax(RM) (@ 6%) SR 4.54 0.26']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-54-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": null, "tax_rate": "6%", "tax_amount": "0.28 RM", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "5.00 RM", "rounding_adjustment": null, "commission_fee": null, "due_amount": "5.00 RM", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": null, "line_items": [{"name": "Pay parking ticket", "net_unit_price": null, "unit_tax": null, "gross_unit_price": null, "quantity": null, "net_price": null, "tax_amount": null, "gross_price": "5.00 RM", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['Dion Realties Sdn Bhd (Co. No:20154-T) (GST Registration No : 000650247680) Menara Dion #02-03, Level 2, 27, Jalan Sultan Ismail, 50250 Kuala Lumpur. Tel : +6 03 2026 6386 Fax : +6 03 2026 6387 >>>TAX INVOICESKS Tax Invoice no. 3521/0602/00602 30/05/18 11:01 010100 Pay parking ticket 5.00 RM 30/05/18 10:45 : 30/05/1B 11:01 Length of stay: 0 Dy. 0 Hr. 16 Min. 0299280700201101815030704072 Amount Incl. GST 5.00 RM Accaptad total 5.00 RM GST 6% 0.28 RM Thank you ** **']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-596-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "4.72", "tax_rate": "6%", "tax_amount": "0.28", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "5.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": "5.00", "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": "5.00", "cash_amount": "10.00", "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "2", "line_items": [{"name": "EVEREADY BAT H/D 1015 SW4 AA", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.50", "quantity": "2", "net_price": null, "tax_amount": null, "gross_price": "5.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['TRI SHAAS SDN BHD (728515-M) MYDIN MART SRI MUDA 4-20, Jalan Ria 25/62 Taman Sri Muda Seksyen 25, 40400 Shah Alam Selangor Tel : 03-51217970, Fax : 03-51218059 GST ID::000429166592 RECEIPT Terminal: 188,- 5505P0S004 Trans # : 255018 Date : 13/03/2017 03:00:42PM Cashier : CH110137 MSM - ROHINI EVEREADY BAT H/D 1015 SW4 AA EA .S 8999002310564 2 * 2.50 5.00 Item Count 2 Total 5.00 Rounding Adjustment 0.00 Total After Rounding 5.00 Cash 10.00 CHANGE 5.00 GST Rate Amt Excl GST(RM) Tax(RM) S : 6% 4.72 0.28 Z = 0% 0.00 0.00 Points Misséd: Join our-Meria Programme today! a 6MCA0SOS Print Date: 13/03/2017 03:00:44PM Note: Any request for production of fuil tax invoice must be made within 3 months from the date of purchase. If the request is not made within the prescribed time frame,MYDIN may based on its absolute discretion reject the request. Thank You and Please Come Again']
</ocr>
Please read the text carefully and follow the instructions.
|
|
train-280-0
|
{"base_taxable_amount": null, "net_discounts": [], "net_service_charge": null, "taxable_amount": null, "non_taxable_amount": null, "net_total": "32.07", "tax_rate": null, "tax_amount": "1.93", "base_gross_total": null, "gross_discounts": [], "gross_service_charge": null, "gross_total": "34.00", "rounding_adjustment": "0.00", "commission_fee": null, "due_amount": null, "prior_balance": null, "net_due_amount": null, "paid_amount": null, "change_amount": null, "cash_amount": null, "creditcard_amount": null, "emoney_amount": null, "other_payments": [], "menutype_count": null, "menuquantity_sum": "4", "line_items": [{"name": "2kgs. Wood Lacquer Thinner", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "19.00", "quantity": "1.00", "net_price": null, "tax_amount": null, "gross_price": "19.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": "1.5kg. Ufixx Putty Filler.", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "10.00", "quantity": "1.00", "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": "100# X 8\" X 45m Sand Paper Roll.", "net_unit_price": null, "unit_tax": null, "gross_unit_price": "2.50", "quantity": "2.00", "net_price": null, "tax_amount": null, "gross_price": "5.00", "sub_items": [], "net_sub_items_total": null, "gross_sub_items_total": null, "net_total": null, "net_discounts": [], "total_tax": null, "gross_discounts": [], "gross_total": null}]}
|
Extract the information in JSON format according to the following JSON schema: {
"$defs": {
"InvoiceLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the menu item",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax amount per unit",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Unit price including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Quantity ordered (can be decimal for weights/volumes/litres)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price before tax (quantity \u00d7 net_unit_price)",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total tax amount (quantity \u00d7 unit_tax)",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price including tax",
"title": "Gross Price"
},
"sub_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceSubLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Additional components or modifications",
"identifier_field_name": "nm",
"title": "Sub Items"
},
"net_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items before tax",
"title": "Net Sub Items Total"
},
"gross_sub_items_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total price of all sub-items including tax",
"title": "Gross Sub Items Total"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined net price of item and sub-items before discounts",
"title": "Net Total"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to net total of this item",
"title": "Net Discounts",
"unordered": true
},
"total_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Combined tax amount for item and sub-items",
"title": "Total Tax"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to the gross total of this item",
"title": "Gross Discounts",
"unordered": true
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final price including tax and after discounts",
"title": "Gross Total"
}
},
"title": "InvoiceLineItem",
"type": "object"
},
"InvoiceSubLineItem": {
"properties": {
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The name of the sub-item or modification",
"title": "Name"
},
"net_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item before tax",
"title": "Net Unit Price"
},
"unit_tax": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The tax amount per unit of the sub-item",
"title": "Unit Tax"
},
"gross_unit_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The unit price of the sub-item including tax",
"title": "Gross Unit Price"
},
"quantity": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quantity of the sub-item (can be a decimal for items sold by weight or volume)",
"title": "Quantity"
},
"net_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item before tax",
"title": "Net Price"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total tax amount for the sub-item",
"title": "Tax Amount"
},
"gross_price": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total price of the sub-item including tax",
"title": "Gross Price"
}
},
"title": "InvoiceSubLineItem",
"type": "object"
}
},
"properties": {
"base_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to tax",
"title": "Base Taxable Amount"
},
"net_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to taxable amount before tax calculation",
"title": "Net Discounts",
"unordered": true
},
"net_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to taxable amount before tax calculation",
"title": "Net Service Charge"
},
"taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount that is subject to tax. This is the base amount plus net discounts and net service charges",
"title": "Taxable Amount"
},
"non_taxable_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is not subject to tax",
"title": "Non Taxable Amount"
},
"net_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Sum of taxable and non-taxable amounts with their modifiers",
"title": "Net Total"
},
"tax_rate": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Tax rate percentage applied to taxable amount",
"title": "Tax Rate"
},
"tax_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Total amount of tax on the invoice",
"title": "Tax Amount"
},
"base_gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The base amount that is subject to gross discounts and service charges",
"title": "Base Gross Total"
},
"gross_discounts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Discounts applied to entire net total after tax",
"title": "Gross Discounts",
"unordered": true
},
"gross_service_charge": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Service charge applied to entire net total after tax",
"title": "Gross Service Charge"
},
"gross_total": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Final amount after all taxes and modifications",
"title": "Gross Total"
},
"rounding_adjustment": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Amount added/subtracted to round to desired precision",
"title": "Rounding Adjustment"
},
"commission_fee": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Commission amount deducted from total",
"title": "Commission Fee"
},
"due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount due for the transaction before considering prior balance",
"title": "Due Amount"
},
"prior_balance": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Previous balance or credit applied to the current transaction",
"title": "Prior Balance"
},
"net_due_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The final amount due after applying prior balance",
"title": "Net Due Amount"
},
"paid_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total amount paid by the customer",
"title": "Paid Amount"
},
"change_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount returned to the customer if overpayment occurred",
"title": "Change Amount"
},
"cash_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid in cash",
"title": "Cash Amount"
},
"creditcard_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid by credit card",
"title": "Creditcard Amount"
},
"emoney_amount": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The amount paid using electronic money",
"title": "Emoney Amount"
},
"other_payments": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Amounts paid using other methods (e.g., coupons, vouchers)",
"title": "Other Payments",
"unordered": true
},
"menutype_count": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The number of distinct menu item types in the order",
"title": "Menutype Count"
},
"menuquantity_sum": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The total quantity of all menu items ordered",
"title": "Menuquantity Sum"
},
"line_items": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/InvoiceLineItem"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Detailed list of individual items in the order",
"identifier_field_name": "nm",
"title": "Line Items"
}
},
"title": "Invoice",
"type": "object"
}, Additional guidelines:
- Extract only the elements that are present verbatim in the document text. Do NOT infer any information.
- Extract each element EXACTLY as it appears in the document.
- Each value in the OCR can only be used AT MOST once. If a value can correspond to multiple fields, pick the best one.
- For each object, output all the keys from the schema even if the value is null. Empty lists should be outputted as lists with no elements.
- If no indication of tax is given, assume the amounts to be gross amounts.
<ocr>
['ENW Hardware Centre (M) Sdn. Bhd. Co. Reg. No.: 795225-A GST Reg. No. : 000155453440 No: G3, Bik G, Jin PJU 1A/3, Ara Damansara, 47301 Petaling Jaya, Selangor Darul Ehsan. TEL: 03-7832 6929,012-659 9829 10/03/2018 Tax Invoice No. CS00230322 Cash Sale (Ara D\'sara) Tel: 03-7832 6929 H/P: 012-659 9829 Item Qty U.Price RM 19.00 SR 1.00 19.00 001533 2kgs. Wood Lacquer Thinner 1.00 10.00 SR 000920 10.00 1.5kg. Ufixx Putty Filler. 2.50 5.00 SR 2.00 006828 100# X 8" X 45m Sand Paper Roll. 34.00 Total Amt Incl. GST @6%: 0.00 Rounding Adjusment : Total Amt Payable : 34.00 Total Qty Tender : 4 GST Summary Amount (RM) GST (RM) SR = 6 % 1.93 32.07 POINT: . 0.00 *Goods sold are not returnable Thank you for shopping at ENW Hardware Centre (M) Sdn. Bhd. buy pan']
</ocr>
Please read the text carefully and follow the instructions.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.