Remove test data.

This commit is contained in:
Patrick Fic
2026-01-28 16:23:15 -08:00
parent 83be45a40b
commit 96731a29e1

View File

@@ -126,7 +126,7 @@ async function generateBillFormData({ processedData, jobid, bodyshopid, partsord
throw new Error('Job not found for bill form data generation.');
}
//Figure out which lines have a match and which don't.
//TODO: How do we handle freight lines and core charges?
//Create the form data structure for the bill posting screen.
@@ -378,413 +378,3 @@ function joblineFuzzySearch({ fuseToSearch, processedData }) {
module.exports = {
generateBillFormData
}
const processedDataFromCoache = {
"result": {
"summary": {
"ADDRESS": {
"value": "Capilano Audi\n813 Automall Drive, North Vancouver, BC V7P\n3R8, CA",
"label": "",
"normalizedLabel": "",
"confidence": 99.5746078491211
},
"STREET": {
"value": "813 Automall Drive,",
"label": "",
"normalizedLabel": "",
"confidence": 99.95982360839844
},
"CITY": {
"value": "North Vancouver,",
"label": "",
"normalizedLabel": "",
"confidence": 99.6387939453125
},
"STATE": {
"value": "CA",
"label": "",
"normalizedLabel": "",
"confidence": 90.67389678955078
},
"ZIP_CODE": {
"value": "3R8,",
"label": "",
"normalizedLabel": "",
"confidence": 99.11088562011719
},
"COUNTRY": {
"value": "Canada,",
"label": "",
"normalizedLabel": "",
"confidence": 99.96498107910156
},
"ADDRESS_BLOCK": {
"value": "813 Automall Drive, North Vancouver, BC V7P\n3R8, CA",
"label": "",
"normalizedLabel": "",
"confidence": 97.51412200927734
},
"NAME": {
"value": "Tekion Corp",
"label": "",
"normalizedLabel": "",
"confidence": 85.7325439453125
},
"DISCOUNT": {
"value": "$0.00",
"label": "Discount",
"normalizedLabel": "UNKNOWN_discount",
"confidence": 99.7116470336914
},
"INVOICE_RECEIPT_DATE": {
"value": "Jan 13 2026",
"label": "",
"normalizedLabel": "",
"confidence": 84.63554382324219
},
"INVOICE_RECEIPT_ID": {
"value": "72821",
"label": "Parts Invoice",
"normalizedLabel": "UNKNOWN_parts_invoice",
"confidence": 98.97218322753906
},
"TAX_PAYER_ID": {
"value": "713564805RT000",
"label": "G.S.T.#",
"normalizedLabel": "UNKNOWN_gst",
"confidence": 93.07450866699219
},
"VENDOR_VAT_NUMBER": {
"value": "713564805RT000",
"label": "G.S.T.#",
"normalizedLabel": "UNKNOWN_gst",
"confidence": 93.07450866699219
},
"PO_NUMBER": {
"value": "58117",
"label": "Customer PO No :",
"normalizedLabel": "UNKNOWN_customer_po_no_",
"confidence": 98.43647003173828
},
"RECEIVER_ADDRESS": {
"value": "1172 W 3RD ST\nNORTH VANCOUVER, BC\nCanada, V7P 1E6",
"label": "Billing Address",
"normalizedLabel": "UNKNOWN_billing_address",
"confidence": 99.65380859375
},
"RECEIVER_NAME": {
"value": "6992 COACHE COLLISION LTD.\n-",
"label": "",
"normalizedLabel": "",
"confidence": 76.0853500366211
},
"RECEIVER_PHONE": {
"value": "(604) 987 2211",
"label": "",
"normalizedLabel": "",
"confidence": 70.94715118408203
},
"SUBTOTAL": {
"value": "$4,421.82",
"label": "Sub Total",
"normalizedLabel": "UNKNOWN_sub_total",
"confidence": 99.92008972167969
},
"TAX": {
"value": "$221.09",
"label": "GST",
"normalizedLabel": "UNKNOWN_gst",
"confidence": 99.90827178955078
},
"TOTAL": {
"value": "$4,642.91",
"label": "Total",
"normalizedLabel": "UNKNOWN_total",
"confidence": 99.9670639038086
},
"VENDOR_ADDRESS": {
"value": "Capilano Audi\n813 Automall Drive, North Vancouver, BC V7P\n3R8, CA",
"label": "",
"normalizedLabel": "",
"confidence": 99.5746078491211
},
"VENDOR_NAME": {
"value": "Tekion Corp",
"label": "",
"normalizedLabel": "",
"confidence": 85.7325439453125
},
"VENDOR_PHONE": {
"value": "(604) 985-0693,",
"label": "Tel:",
"normalizedLabel": "UNKNOWN_tel",
"confidence": 92.17896270751953
}
},
"lineItems": [
{
"PRODUCT_CODE": {
"value": "80A-807-107-G-GRU",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 60.69740676879883
},
"ITEM": {
"value": "80A-807-107-G-GRU COVER\n-",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 80.92524719238281
},
"PRICE": {
"value": "$914.16",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.99465942382812
},
"QUANTITY": {
"value": "1",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 98.02381134033203
},
"UNIT_PRICE": {
"value": "$914.16",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 90.97144317626953
},
"EXPENSE_ROW": {
"value": "price\n1 80A-807-107-G-GRU COVER 1 SP-ORD $1,172.00 $914.16 $914.16\n-\nchange",
"label": "",
"normalizedLabel": "",
"confidence": 95.68555450439453
}
},
{
"OTHER": {
"value": "2",
"label": "1",
"normalizedLabel": "UNKNOWN_1",
"confidence": 75.68085479736328
},
"PRODUCT_CODE": {
"value": "80A-807-647-C-9B9",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 63.68674087524414
},
"ITEM": {
"value": "80A-807-647-C-9B9 GRILLE\n-",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 82.46648406982422
},
"PRICE": {
"value": "$191.88",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.9972915649414
},
"QUANTITY": {
"value": "1",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.20547485351562
},
"UNIT_PRICE": {
"value": "$191.88",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 93.8568344116211
},
"OTHER_2": {
"value": "SP-ORD",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 90.64925384521484
},
"OTHER_3": {
"value": "$246.00",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 90.83607482910156
},
"EXPENSE_ROW": {
"value": "2 80A-807-647-C-9B9 GRILLE 1 SP-ORD $246.00 $191.88 $191.88\n-",
"label": "",
"normalizedLabel": "",
"confidence": 95.46671295166016
}
},
{
"OTHER": {
"value": "3",
"label": "1",
"normalizedLabel": "UNKNOWN_1",
"confidence": 73.59772491455078
},
"PRODUCT_CODE": {
"value": "80A-807-661-A-GRU",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 73.04312133789062
},
"ITEM": {
"value": "80A-807-661-A-GRU CONN PIECE\n-",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 84.59918212890625
},
"PRICE": {
"value": "$223.08",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.99654388427734
},
"QUANTITY": {
"value": "1",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.30966186523438
},
"UNIT_PRICE": {
"value": "$223.08",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 91.8134765625
},
"OTHER_2": {
"value": "SP-ORD",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 88.12962341308594
},
"OTHER_3": {
"value": "$286.00",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 88.31619262695312
},
"EXPENSE_ROW": {
"value": "3 80A-807-661-A-GRU CONN PIECE 1 SP-ORD $286.00 $223.08 $223.08\n-",
"label": "",
"normalizedLabel": "",
"confidence": 95.99571228027344
}
},
{
"OTHER": {
"value": "4",
"label": "1",
"normalizedLabel": "UNKNOWN_1",
"confidence": 74.5914306640625
},
"PRODUCT_CODE": {
"value": "80A-853-765--3Q7",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 79.21212005615234
},
"ITEM": {
"value": "80A-853-765--3Q7 MOLDING\n-",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 75.85474395751953
},
"PRICE": {
"value": "$994.50",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.99325561523438
},
"QUANTITY": {
"value": "1",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 98.7352294921875
},
"UNIT_PRICE": {
"value": "$994.50",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 96.28019714355469
},
"OTHER_2": {
"value": "SP-ORD",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 89.3599853515625
},
"OTHER_3": {
"value": "$1,275.00",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 89.5396499633789
},
"EXPENSE_ROW": {
"value": "4 80A-853-765--3Q7 MOLDING 1 SP-ORD $1,275.00 $994.50 $994.50\n-",
"label": "",
"normalizedLabel": "",
"confidence": 96.20103454589844
}
},
{
"OTHER": {
"value": "5",
"label": "1",
"normalizedLabel": "UNKNOWN_1",
"confidence": 75.91088104248047
},
"ITEM": {
"value": "GRILLE",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 84.18718719482422
},
"PRICE": {
"value": "$2,098.20",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.97396087646484
},
"QUANTITY": {
"value": "1",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 99.32916259765625
},
"UNIT_PRICE": {
"value": "$2,098.20",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 98.04034423828125
},
"PRODUCT_CODE": {
"value": "80A-853-651-L-RP5",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 86.12691497802734
},
"OTHER_2": {
"value": "SP-ORD",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 90.96830749511719
},
"OTHER_3": {
"value": "$2,690.00",
"label": "38",
"normalizedLabel": "UNKNOWN_38",
"confidence": 91.14651489257812
},
"EXPENSE_ROW": {
"value": "5 80A-853-651-L-RP5 GRILLE 1 SP-ORD $2,690.00 $2,098.20 $2,098.20\n-",
"label": "",
"normalizedLabel": "",
"confidence": 93.76665496826172
}
}
],
}
}