{
  "kit": "restaurant-group",
  "title": "Harbour Kitchen Group",
  "code": "GRP",
  "asOf": "2026-09-08",
  "currency": "CAD",
  "taxName": "GST",
  "taxRate": "0.05",
  "buyer": {
    "buyer_id": "BUY-GRP",
    "name": "Harbour Kitchen Group",
    "street": "1 Harbour Quay",
    "city": "Halifax",
    "region": "NS",
    "postcode": "B3L 7G7",
    "country": "CA",
    "tax_id": "CA-BN-200000007",
    "gln": "0626004000016"
  },
  "suppliers": {
    "SUP-01": {
      "supplier_id": "SUP-01",
      "name": "Alder Wholesale",
      "item_prefix": "AW",
      "street": "41 Alder Way",
      "city": "Halifax",
      "region": "NS",
      "postcode": "B3H 1A1",
      "country": "CA",
      "tax_id": "CA-BN-100000001",
      "gln": "0614141000012",
      "terms": "Net 30",
      "iban_label": "Transit 00011 Institution 001 Account 1000001"
    },
    "SUP-02": {
      "supplier_id": "SUP-02",
      "name": "Harbour Food Supply",
      "item_prefix": "HF",
      "street": "8 Harbour Road",
      "city": "Halifax",
      "region": "NS",
      "postcode": "B3J 2B2",
      "country": "CA",
      "tax_id": "CA-BN-100000002",
      "gln": "0614141000029",
      "terms": "Net 30",
      "iban_label": "Transit 00022 Institution 002 Account 2000002"
    }
  },
  "items": {
    "ING-01": {
      "ingredient_id": "ING-01",
      "name": "Chicken Breast",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-02": {
      "ingredient_id": "ING-02",
      "name": "Burger Bun",
      "uom": "each",
      "uom_code_unece": "H87",
      "uom_code_x12": "EA",
      "case_pack_quantity": 24
    },
    "ING-03": {
      "ingredient_id": "ING-03",
      "name": "Beef Patty",
      "uom": "each",
      "uom_code_unece": "H87",
      "uom_code_x12": "EA",
      "case_pack_quantity": 24
    },
    "ING-04": {
      "ingredient_id": "ING-04",
      "name": "Tomatoes",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-05": {
      "ingredient_id": "ING-05",
      "name": "Potatoes",
      "uom": "kg",
      "uom_code_unece": "KGM",
      "uom_code_x12": "KG",
      "case_pack_quantity": 10
    },
    "ING-06": {
      "ingredient_id": "ING-06",
      "name": "Whole Milk",
      "uom": "l",
      "uom_code_unece": "LTR",
      "uom_code_x12": "LT",
      "case_pack_quantity": 12
    }
  },
  "priceList": [
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "10.75",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "107.50",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "10.32"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "10.93",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "109.30",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "10.49"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "11.12",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "111.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "10.68"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "11.30",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "113.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "10.85"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-05",
      "list_unit_price": "0.63",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "15.12",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.60"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-12",
      "list_unit_price": "0.62",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "14.88",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.60"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-19",
      "list_unit_price": "0.61",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "14.64",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.59"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-26",
      "list_unit_price": "0.60",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "14.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.58"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-05",
      "list_unit_price": "2.30",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "55.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.21"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-12",
      "list_unit_price": "2.30",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "55.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.21"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-19",
      "list_unit_price": "2.30",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "55.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.21"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-26",
      "list_unit_price": "2.30",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "55.20",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.21"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "3.37",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "33.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.24"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "3.43",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "34.30",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.29"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "3.49",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "34.90",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.35"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "3.55",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "35.50",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.41"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "1.74",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "17.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.67"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "1.71",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "17.10",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.64"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "1.69",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "16.90",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.62"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "1.67",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "16.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.60"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-05",
      "list_unit_price": "2.00",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "24.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.92"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-12",
      "list_unit_price": "2.00",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "24.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.92"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-19",
      "list_unit_price": "2.00",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "24.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.92"
    },
    {
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "supplier_item_code": "AW-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-26",
      "list_unit_price": "2.00",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "24.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.92"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "10.00",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "100.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "9.60"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "10.17",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "101.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "9.76"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "10.34",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "103.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "9.93"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-01",
      "gtin": "0614141601000",
      "ingredient_id": "ING-01",
      "description": "Chicken Breast",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "10.51",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "105.10",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "10.09"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-05",
      "list_unit_price": "0.60",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "14.40",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.58"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-12",
      "list_unit_price": "0.59",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "14.16",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.57"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-19",
      "list_unit_price": "0.58",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "13.92",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.56"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-02",
      "gtin": "0614141602000",
      "ingredient_id": "ING-02",
      "description": "Burger Bun",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-26",
      "list_unit_price": "0.57",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "13.68",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "0.55"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-05",
      "list_unit_price": "2.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "51.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.05"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-12",
      "list_unit_price": "2.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "51.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.05"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-19",
      "list_unit_price": "2.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "51.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.05"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-03",
      "gtin": "0614141603000",
      "ingredient_id": "ING-03",
      "description": "Beef Patty",
      "uom": "each",
      "uom_code": "H87",
      "effective_from": "2026-08-26",
      "list_unit_price": "2.14",
      "currency": "CAD",
      "case_pack_quantity": 24,
      "price_per_case": "51.36",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "2.05"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "3.20",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "32.00",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.07"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "3.26",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "32.60",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.13"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "3.31",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "33.10",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.18"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-04",
      "gtin": "0614141604000",
      "ingredient_id": "ING-04",
      "description": "Tomatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "3.37",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "33.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "3.24"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-05",
      "list_unit_price": "1.61",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "16.10",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.55"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-12",
      "list_unit_price": "1.59",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.90",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.53"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-19",
      "list_unit_price": "1.57",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.70",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.51"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-05",
      "gtin": "0614141605000",
      "ingredient_id": "ING-05",
      "description": "Potatoes",
      "uom": "kg",
      "uom_code": "KGM",
      "effective_from": "2026-08-26",
      "list_unit_price": "1.55",
      "currency": "CAD",
      "case_pack_quantity": 10,
      "price_per_case": "15.50",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.49"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-05",
      "list_unit_price": "1.90",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "22.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.82"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-12",
      "list_unit_price": "1.90",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "22.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.82"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-19",
      "list_unit_price": "1.90",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "22.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.82"
    },
    {
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "supplier_item_code": "HF-ING-06",
      "gtin": "0614141606000",
      "ingredient_id": "ING-06",
      "description": "Whole Milk",
      "uom": "l",
      "uom_code": "LTR",
      "effective_from": "2026-08-26",
      "list_unit_price": "1.90",
      "currency": "CAD",
      "case_pack_quantity": 12,
      "price_per_case": "22.80",
      "contract_tier_min_quantity": 250,
      "contract_tier_unit_price": "1.82"
    }
  ],
  "purchaseOrders": [
    {
      "po_number": "PO-GRP-1001",
      "po_date": "2026-08-05",
      "supplier_id": "SUP-01",
      "buyer_id": "BUY-GRP",
      "ship_to_location_id": "LOC-01",
      "ship_to_location_name": "Main kitchen",
      "requested_delivery_date": "2026-08-07",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "supplier_item_code": "AW-ING-01",
          "gtin": "0614141601000",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 18,
          "unit_price": "10.75",
          "line_net": "193.50",
          "tax_rate": "0.05",
          "tax_amount": "9.68"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-02",
          "supplier_item_code": "AW-ING-02",
          "gtin": "0614141602000",
          "description": "Burger Bun",
          "uom": "each",
          "uom_code": "H87",
          "ordered_quantity": 21,
          "unit_price": "0.63",
          "line_net": "13.23",
          "tax_rate": "0.05",
          "tax_amount": "0.66"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-03",
          "supplier_item_code": "AW-ING-03",
          "gtin": "0614141603000",
          "description": "Beef Patty",
          "uom": "each",
          "uom_code": "H87",
          "ordered_quantity": 24,
          "unit_price": "2.30",
          "line_net": "55.20",
          "tax_rate": "0.05",
          "tax_amount": "2.76"
        }
      ],
      "net_total": "261.93",
      "tax_total": "13.10",
      "gross_total": "275.03"
    },
    {
      "po_number": "PO-GRP-1002",
      "po_date": "2026-08-12",
      "supplier_id": "SUP-02",
      "buyer_id": "BUY-GRP",
      "ship_to_location_id": "LOC-02",
      "ship_to_location_name": "Harbour branch",
      "requested_delivery_date": "2026-08-14",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "supplier_item_code": "HF-ING-01",
          "gtin": "0614141601000",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 20,
          "unit_price": "10.17",
          "line_net": "203.40",
          "tax_rate": "0.05",
          "tax_amount": "10.17"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-03",
          "supplier_item_code": "HF-ING-03",
          "gtin": "0614141603000",
          "description": "Beef Patty",
          "uom": "each",
          "uom_code": "H87",
          "ordered_quantity": 26,
          "unit_price": "2.14",
          "line_net": "55.64",
          "tax_rate": "0.05",
          "tax_amount": "2.78"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-05",
          "supplier_item_code": "HF-ING-05",
          "gtin": "0614141605000",
          "description": "Potatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 32,
          "unit_price": "1.59",
          "line_net": "50.88",
          "tax_rate": "0.05",
          "tax_amount": "2.54"
        }
      ],
      "net_total": "309.92",
      "tax_total": "15.49",
      "gross_total": "325.41"
    },
    {
      "po_number": "PO-GRP-1003",
      "po_date": "2026-08-19",
      "supplier_id": "SUP-01",
      "buyer_id": "BUY-GRP",
      "ship_to_location_id": "LOC-03",
      "ship_to_location_name": "Market branch",
      "requested_delivery_date": "2026-08-21",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-04",
          "supplier_item_code": "AW-ING-04",
          "gtin": "0614141604000",
          "description": "Tomatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 31,
          "unit_price": "3.49",
          "line_net": "108.19",
          "tax_rate": "0.05",
          "tax_amount": "5.41"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-05",
          "supplier_item_code": "AW-ING-05",
          "gtin": "0614141605000",
          "description": "Potatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 34,
          "unit_price": "1.69",
          "line_net": "57.46",
          "tax_rate": "0.05",
          "tax_amount": "2.87"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "supplier_item_code": "AW-ING-06",
          "gtin": "0614141606000",
          "description": "Whole Milk",
          "uom": "l",
          "uom_code": "LTR",
          "ordered_quantity": 37,
          "unit_price": "2.00",
          "line_net": "74.00",
          "tax_rate": "0.05",
          "tax_amount": "3.70"
        }
      ],
      "net_total": "239.65",
      "tax_total": "11.98",
      "gross_total": "251.63"
    },
    {
      "po_number": "PO-GRP-1004",
      "po_date": "2026-08-26",
      "supplier_id": "SUP-02",
      "buyer_id": "BUY-GRP",
      "ship_to_location_id": "LOC-01",
      "ship_to_location_name": "Main kitchen",
      "requested_delivery_date": "2026-08-28",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-02",
          "supplier_item_code": "HF-ING-02",
          "gtin": "0614141602000",
          "description": "Burger Bun",
          "uom": "each",
          "uom_code": "H87",
          "ordered_quantity": 21,
          "unit_price": "0.57",
          "line_net": "11.97",
          "tax_rate": "0.05",
          "tax_amount": "0.60"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-04",
          "supplier_item_code": "HF-ING-04",
          "gtin": "0614141604000",
          "description": "Tomatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "ordered_quantity": 27,
          "unit_price": "3.37",
          "line_net": "90.99",
          "tax_rate": "0.05",
          "tax_amount": "4.55"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "supplier_item_code": "HF-ING-06",
          "gtin": "0614141606000",
          "description": "Whole Milk",
          "uom": "l",
          "uom_code": "LTR",
          "ordered_quantity": 33,
          "unit_price": "1.90",
          "line_net": "62.70",
          "tax_rate": "0.05",
          "tax_amount": "3.14"
        }
      ],
      "net_total": "165.66",
      "tax_total": "8.29",
      "gross_total": "173.95"
    }
  ],
  "goodsReceived": [
    {
      "grn_number": "GRN-GRP-2001",
      "grn_date": "2026-08-07",
      "delivery_note_number": "DN-GRP-3001",
      "po_number": "PO-GRP-1001",
      "supplier_id": "SUP-01",
      "received_at_location_id": "LOC-01",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-01",
          "delivered_ingredient_id": "ING-01",
          "description": "Chicken Breast",
          "uom": "kg",
          "ordered_quantity": 18,
          "delivered_quantity": 18,
          "returned_quantity": 0,
          "accepted_quantity": 18,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-02",
          "delivered_ingredient_id": "ING-02",
          "description": "Burger Bun",
          "uom": "each",
          "ordered_quantity": 21,
          "delivered_quantity": 21,
          "returned_quantity": 0,
          "accepted_quantity": 21,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-03",
          "delivered_ingredient_id": "ING-03",
          "description": "Beef Patty",
          "uom": "each",
          "ordered_quantity": 24,
          "delivered_quantity": 24,
          "returned_quantity": 0,
          "accepted_quantity": 24,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        }
      ]
    },
    {
      "grn_number": "GRN-GRP-2002",
      "grn_date": "2026-08-14",
      "delivery_note_number": "DN-GRP-3002",
      "po_number": "PO-GRP-1002",
      "supplier_id": "SUP-02",
      "received_at_location_id": "LOC-02",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-01",
          "delivered_ingredient_id": "ING-01",
          "description": "Chicken Breast",
          "uom": "kg",
          "ordered_quantity": 20,
          "delivered_quantity": 20,
          "returned_quantity": 0,
          "accepted_quantity": 20,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-03",
          "delivered_ingredient_id": "ING-03",
          "description": "Beef Patty",
          "uom": "each",
          "ordered_quantity": 26,
          "delivered_quantity": 22,
          "returned_quantity": 0,
          "accepted_quantity": 22,
          "line_status": "short delivery",
          "note": "4 each ordered were not on the vehicle; the driver recorded a short delivery."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-05",
          "delivered_ingredient_id": "ING-05",
          "description": "Potatoes",
          "uom": "kg",
          "ordered_quantity": 32,
          "delivered_quantity": 32,
          "returned_quantity": 0,
          "accepted_quantity": 32,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        }
      ]
    },
    {
      "grn_number": "GRN-GRP-2003",
      "grn_date": "2026-08-21",
      "delivery_note_number": "DN-GRP-3003",
      "po_number": "PO-GRP-1003",
      "supplier_id": "SUP-01",
      "received_at_location_id": "LOC-03",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-04",
          "delivered_ingredient_id": "ING-04",
          "description": "Tomatoes",
          "uom": "kg",
          "ordered_quantity": 31,
          "delivered_quantity": 31,
          "returned_quantity": 0,
          "accepted_quantity": 31,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-05",
          "delivered_ingredient_id": "ING-01",
          "description": "Chicken Breast",
          "uom": "kg",
          "ordered_quantity": 34,
          "delivered_quantity": 34,
          "returned_quantity": 0,
          "accepted_quantity": 34,
          "line_status": "substituted",
          "note": "Ordered item ING-05 was out of stock; the supplier substituted ING-01 at the same quantity."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-06",
          "delivered_ingredient_id": "ING-06",
          "description": "Whole Milk",
          "uom": "l",
          "ordered_quantity": 37,
          "delivered_quantity": 37,
          "returned_quantity": 0,
          "accepted_quantity": 37,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        }
      ]
    },
    {
      "grn_number": "GRN-GRP-2004",
      "grn_date": "2026-08-28",
      "delivery_note_number": "DN-GRP-3004",
      "po_number": "PO-GRP-1004",
      "supplier_id": "SUP-02",
      "received_at_location_id": "LOC-01",
      "received_by": "Goods-in supervisor",
      "lines": [
        {
          "line_no": 1,
          "po_ingredient_id": "ING-02",
          "delivered_ingredient_id": "ING-02",
          "description": "Burger Bun",
          "uom": "each",
          "ordered_quantity": 21,
          "delivered_quantity": 21,
          "returned_quantity": 0,
          "accepted_quantity": 21,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 2,
          "po_ingredient_id": "ING-04",
          "delivered_ingredient_id": "ING-04",
          "description": "Tomatoes",
          "uom": "kg",
          "ordered_quantity": 27,
          "delivered_quantity": 27,
          "returned_quantity": 0,
          "accepted_quantity": 27,
          "line_status": "received in full",
          "note": "Quantity and item match the purchase order line."
        },
        {
          "line_no": 3,
          "po_ingredient_id": "ING-06",
          "delivered_ingredient_id": "ING-06",
          "description": "Whole Milk",
          "uom": "l",
          "ordered_quantity": 33,
          "delivered_quantity": 33,
          "returned_quantity": 3,
          "accepted_quantity": 30,
          "line_status": "part returned",
          "note": "3 l were rejected on arrival for condition and returned with the driver."
        }
      ]
    }
  ],
  "invoices": [
    {
      "invoice_number": "INV-GRP-5001",
      "invoice_date": "2026-08-07",
      "due_date": "2026-09-06",
      "supplier_id": "SUP-01",
      "po_number": "PO-GRP-1001",
      "grn_number": "GRN-GRP-2001",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 18,
          "unit_price": "10.75",
          "line_net": "193.50",
          "tax_rate": "0.05",
          "tax_amount": "9.68"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-02",
          "description": "Burger Bun",
          "uom": "each",
          "uom_code": "H87",
          "invoiced_quantity": 21,
          "unit_price": "0.63",
          "line_net": "13.23",
          "tax_rate": "0.05",
          "tax_amount": "0.66"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-03",
          "description": "Beef Patty",
          "uom": "each",
          "uom_code": "H87",
          "invoiced_quantity": 24,
          "unit_price": "2.30",
          "line_net": "55.20",
          "tax_rate": "0.05",
          "tax_amount": "2.76"
        }
      ],
      "net_total": "261.93",
      "line_tax_sum": "13.10",
      "document_level_tax": "13.10",
      "stated_tax_total": "13.10",
      "total_due": "275.03",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-GRP-5002",
      "invoice_date": "2026-08-14",
      "due_date": "2026-09-13",
      "supplier_id": "SUP-02",
      "po_number": "PO-GRP-1002",
      "grn_number": "GRN-GRP-2002",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 20,
          "unit_price": "10.17",
          "line_net": "203.40",
          "tax_rate": "0.05",
          "tax_amount": "10.17"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-03",
          "description": "Beef Patty",
          "uom": "each",
          "uom_code": "H87",
          "invoiced_quantity": 26,
          "unit_price": "2.14",
          "line_net": "55.64",
          "tax_rate": "0.05",
          "tax_amount": "2.78"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-05",
          "description": "Potatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 32,
          "unit_price": "1.59",
          "line_net": "50.88",
          "tax_rate": "0.05",
          "tax_amount": "2.54"
        }
      ],
      "net_total": "309.92",
      "line_tax_sum": "15.49",
      "document_level_tax": "15.50",
      "stated_tax_total": "15.49",
      "total_due": "325.41",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-GRP-5003",
      "invoice_date": "2026-08-21",
      "due_date": "2026-09-20",
      "supplier_id": "SUP-01",
      "po_number": "PO-GRP-1003",
      "grn_number": "GRN-GRP-2003",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-04",
          "description": "Tomatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 31,
          "unit_price": "3.49",
          "line_net": "108.19",
          "tax_rate": "0.05",
          "tax_amount": "5.41"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-01",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 34,
          "unit_price": "11.12",
          "line_net": "378.08",
          "tax_rate": "0.05",
          "tax_amount": "18.90"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "description": "Whole Milk",
          "uom": "l",
          "uom_code": "LTR",
          "invoiced_quantity": 37,
          "unit_price": "2.00",
          "line_net": "74.00",
          "tax_rate": "0.05",
          "tax_amount": "3.70"
        }
      ],
      "net_total": "560.27",
      "line_tax_sum": "28.01",
      "document_level_tax": "28.01",
      "stated_tax_total": "28.02",
      "total_due": "588.29",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-GRP-5004",
      "invoice_date": "2026-08-28",
      "due_date": "2026-09-27",
      "supplier_id": "SUP-02",
      "po_number": "PO-GRP-1004",
      "grn_number": "GRN-GRP-2004",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-02",
          "description": "Burger Bun",
          "uom": "each",
          "uom_code": "H87",
          "invoiced_quantity": 21,
          "unit_price": "0.57",
          "line_net": "11.97",
          "tax_rate": "0.05",
          "tax_amount": "0.60"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-04",
          "description": "Tomatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 27,
          "unit_price": "3.37",
          "line_net": "90.99",
          "tax_rate": "0.05",
          "tax_amount": "4.55"
        },
        {
          "line_no": 3,
          "ingredient_id": "ING-06",
          "description": "Whole Milk",
          "uom": "l",
          "uom_code": "LTR",
          "invoiced_quantity": 33,
          "unit_price": "1.90",
          "line_net": "62.70",
          "tax_rate": "0.05",
          "tax_amount": "3.14"
        }
      ],
      "net_total": "165.66",
      "line_tax_sum": "8.29",
      "document_level_tax": "8.28",
      "stated_tax_total": "8.29",
      "total_due": "173.95",
      "is_duplicate_number": false
    },
    {
      "invoice_number": "INV-GRP-5002",
      "invoice_date": "2026-08-17",
      "due_date": "2026-09-16",
      "supplier_id": "SUP-02",
      "po_number": "PO-GRP-1002",
      "grn_number": "GRN-GRP-2002",
      "payment_terms": "Net 30",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-01",
          "description": "Chicken Breast",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 20,
          "unit_price": "10.17",
          "line_net": "203.40",
          "tax_rate": "0.05",
          "tax_amount": "10.17"
        },
        {
          "line_no": 2,
          "ingredient_id": "ING-05",
          "description": "Potatoes",
          "uom": "kg",
          "uom_code": "KGM",
          "invoiced_quantity": 32,
          "unit_price": "1.59",
          "line_net": "50.88",
          "tax_rate": "0.05",
          "tax_amount": "2.54"
        }
      ],
      "net_total": "254.28",
      "line_tax_sum": "12.71",
      "document_level_tax": "12.71",
      "stated_tax_total": "12.71",
      "total_due": "266.99",
      "is_duplicate_number": true
    }
  ],
  "creditNotes": [
    {
      "credit_note_number": "CN-GRP-7001",
      "credit_note_date": "2026-08-21",
      "supplier_id": "SUP-02",
      "against_invoice_number": "INV-GRP-5002",
      "against_invoice_date": "2026-08-14",
      "po_number": "PO-GRP-1002",
      "grn_number": "GRN-GRP-2002",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-03",
          "description": "Beef Patty",
          "uom": "each",
          "uom_code": "H87",
          "credited_quantity": 4,
          "unit_price": "2.14",
          "line_net": "8.56",
          "tax_rate": "0.05",
          "tax_amount": "0.43"
        }
      ],
      "net_total": "8.56",
      "tax_total": "0.43",
      "gross_total": "8.99",
      "reason": "Short delivery recorded on GRN-GRP-2002: 4 each ordered and invoiced were not delivered.",
      "over_credited_units": 0
    },
    {
      "credit_note_number": "CN-GRP-7002",
      "credit_note_date": "2026-08-29",
      "supplier_id": "SUP-02",
      "against_invoice_number": "INV-GRP-5004",
      "against_invoice_date": "2026-08-28",
      "po_number": "PO-GRP-1004",
      "grn_number": "GRN-GRP-2004",
      "currency": "CAD",
      "lines": [
        {
          "line_no": 1,
          "ingredient_id": "ING-06",
          "description": "Whole Milk",
          "uom": "l",
          "uom_code": "LTR",
          "credited_quantity": 5,
          "unit_price": "1.90",
          "line_net": "9.50",
          "tax_rate": "0.05",
          "tax_amount": "0.48"
        }
      ],
      "net_total": "9.50",
      "tax_total": "0.48",
      "gross_total": "9.98",
      "reason": "Goods returned on GRN-GRP-2004 for condition. This credit is raised for 5 l.",
      "over_credited_units": 2
    }
  ],
  "openingDocuments": {
    "SUP-01": [
      {
        "document_number": "OPN-GRP-9001",
        "document_date": "2026-05-20",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "110.01",
        "supplier_id": "SUP-01"
      },
      {
        "document_number": "OPN-GRP-9002",
        "document_date": "2026-06-18",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "151.27",
        "supplier_id": "SUP-01"
      },
      {
        "document_number": "OPN-GRP-9003",
        "document_date": "2026-07-21",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "192.52",
        "supplier_id": "SUP-01"
      }
    ],
    "SUP-02": [
      {
        "document_number": "OPN-GRP-9004",
        "document_date": "2026-05-28",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "146.43",
        "supplier_id": "SUP-02"
      },
      {
        "document_number": "OPN-GRP-9005",
        "document_date": "2026-06-25",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "195.25",
        "supplier_id": "SUP-02"
      },
      {
        "document_number": "OPN-GRP-9006",
        "document_date": "2026-07-15",
        "document_type": "invoice",
        "reference": "prior period",
        "amount": "244.06",
        "supplier_id": "SUP-02"
      }
    ]
  },
  "statements": [
    {
      "statement_number": "STM-GRP-6001",
      "statement_date": "2026-08-31",
      "supplier_id": "SUP-01",
      "supplier_name": "Alder Wholesale",
      "currency": "CAD",
      "opening_balance": "0.00",
      "rows": [
        {
          "line_no": 1,
          "document_date": "2026-05-20",
          "document_type": "invoice",
          "document_number": "OPN-GRP-9001",
          "reference": "Prior period opening item",
          "debit": "110.01",
          "credit": "0.00",
          "signed_amount": "110.01",
          "balance": "110.01",
          "ageing_bucket": "90-plus"
        },
        {
          "line_no": 2,
          "document_date": "2026-06-18",
          "document_type": "invoice",
          "document_number": "OPN-GRP-9002",
          "reference": "Prior period opening item",
          "debit": "151.27",
          "credit": "0.00",
          "signed_amount": "151.27",
          "balance": "261.28",
          "ageing_bucket": "61-90"
        },
        {
          "line_no": 3,
          "document_date": "2026-07-21",
          "document_type": "invoice",
          "document_number": "OPN-GRP-9003",
          "reference": "Prior period opening item",
          "debit": "192.52",
          "credit": "0.00",
          "signed_amount": "192.52",
          "balance": "453.80",
          "ageing_bucket": "31-60"
        },
        {
          "line_no": 4,
          "document_date": "2026-08-07",
          "document_type": "invoice",
          "document_number": "INV-GRP-5001",
          "reference": "PO-GRP-1001",
          "debit": "275.03",
          "credit": "0.00",
          "signed_amount": "275.03",
          "balance": "728.83",
          "ageing_bucket": "current"
        },
        {
          "line_no": 5,
          "document_date": "2026-08-21",
          "document_type": "invoice",
          "document_number": "INV-GRP-5003",
          "reference": "PO-GRP-1003",
          "debit": "588.29",
          "credit": "0.00",
          "signed_amount": "588.29",
          "balance": "1317.12",
          "ageing_bucket": "current"
        }
      ],
      "closing_balance": "1317.12",
      "declared_ageing": {
        "current": "863.32",
        "31-60": "192.52",
        "61-90": "151.27",
        "90-plus": "110.01"
      },
      "true_ageing": {
        "current": "863.32",
        "31-60": "192.52",
        "61-90": "151.27",
        "90-plus": "110.01"
      },
      "declared_ageing_sum": "1317.12",
      "ageing_difference": "0.00",
      "omitted_from_ageing": null
    },
    {
      "statement_number": "STM-GRP-6002",
      "statement_date": "2026-08-31",
      "supplier_id": "SUP-02",
      "supplier_name": "Harbour Food Supply",
      "currency": "CAD",
      "opening_balance": "0.00",
      "rows": [
        {
          "line_no": 1,
          "document_date": "2026-05-28",
          "document_type": "invoice",
          "document_number": "OPN-GRP-9004",
          "reference": "Prior period opening item",
          "debit": "146.43",
          "credit": "0.00",
          "signed_amount": "146.43",
          "balance": "146.43",
          "ageing_bucket": "90-plus"
        },
        {
          "line_no": 2,
          "document_date": "2026-06-25",
          "document_type": "invoice",
          "document_number": "OPN-GRP-9005",
          "reference": "Prior period opening item",
          "debit": "195.25",
          "credit": "0.00",
          "signed_amount": "195.25",
          "balance": "341.68",
          "ageing_bucket": "61-90"
        },
        {
          "line_no": 3,
          "document_date": "2026-07-15",
          "document_type": "invoice",
          "document_number": "OPN-GRP-9006",
          "reference": "Prior period opening item",
          "debit": "244.06",
          "credit": "0.00",
          "signed_amount": "244.06",
          "balance": "585.74",
          "ageing_bucket": "31-60"
        },
        {
          "line_no": 4,
          "document_date": "2026-08-14",
          "document_type": "invoice",
          "document_number": "INV-GRP-5002",
          "reference": "PO-GRP-1002",
          "debit": "325.41",
          "credit": "0.00",
          "signed_amount": "325.41",
          "balance": "911.15",
          "ageing_bucket": "current"
        },
        {
          "line_no": 5,
          "document_date": "2026-08-17",
          "document_type": "invoice",
          "document_number": "INV-GRP-5002",
          "reference": "PO-GRP-1002",
          "debit": "266.99",
          "credit": "0.00",
          "signed_amount": "266.99",
          "balance": "1178.14",
          "ageing_bucket": "current"
        },
        {
          "line_no": 6,
          "document_date": "2026-08-21",
          "document_type": "credit note",
          "document_number": "CN-GRP-7001",
          "reference": "INV-GRP-5002",
          "debit": "0.00",
          "credit": "8.99",
          "signed_amount": "-8.99",
          "balance": "1169.15",
          "ageing_bucket": "current"
        },
        {
          "line_no": 7,
          "document_date": "2026-08-28",
          "document_type": "invoice",
          "document_number": "INV-GRP-5004",
          "reference": "PO-GRP-1004",
          "debit": "173.95",
          "credit": "0.00",
          "signed_amount": "173.95",
          "balance": "1343.10",
          "ageing_bucket": "current"
        },
        {
          "line_no": 8,
          "document_date": "2026-08-29",
          "document_type": "credit note",
          "document_number": "CN-GRP-7002",
          "reference": "INV-GRP-5004",
          "debit": "0.00",
          "credit": "9.98",
          "signed_amount": "-9.98",
          "balance": "1333.12",
          "ageing_bucket": "current"
        }
      ],
      "closing_balance": "1333.12",
      "declared_ageing": {
        "current": "756.37",
        "31-60": "244.06",
        "61-90": "195.25",
        "90-plus": "146.43"
      },
      "true_ageing": {
        "current": "747.38",
        "31-60": "244.06",
        "61-90": "195.25",
        "90-plus": "146.43"
      },
      "declared_ageing_sum": "1342.11",
      "ageing_difference": "8.99",
      "omitted_from_ageing": "CN-GRP-7001"
    }
  ],
  "remittance": {
    "remittance_number": "REM-GRP-8001",
    "payment_date": "2026-09-05",
    "payment_method": "EFT",
    "payment_reference": "EFT-GRP-20260905",
    "currency": "CAD",
    "lines": [
      {
        "line_no": 1,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "OPN-GRP-9001",
        "document_date": "2026-05-20",
        "document_amount": "110.01",
        "settled_amount": "110.01",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 2,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "OPN-GRP-9002",
        "document_date": "2026-06-18",
        "document_amount": "151.27",
        "settled_amount": "151.27",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 3,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "OPN-GRP-9003",
        "document_date": "2026-07-21",
        "document_amount": "192.52",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Not yet due under Net 30 terms."
      },
      {
        "line_no": 4,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "INV-GRP-5001",
        "document_date": "2026-08-07",
        "document_amount": "275.03",
        "settled_amount": "275.03",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 5,
        "supplier_id": "SUP-01",
        "supplier_name": "Alder Wholesale",
        "document_type": "invoice",
        "document_number": "INV-GRP-5003",
        "document_date": "2026-08-21",
        "document_amount": "588.29",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Price query: line 2 bills a substituted item at a price that is not on the purchase order, and the stated tax total does not agree with the line tax amounts."
      },
      {
        "line_no": 6,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "OPN-GRP-9004",
        "document_date": "2026-05-28",
        "document_amount": "146.43",
        "settled_amount": "146.43",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 7,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "OPN-GRP-9005",
        "document_date": "2026-06-25",
        "document_amount": "195.25",
        "settled_amount": "195.25",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 8,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "OPN-GRP-9006",
        "document_date": "2026-07-15",
        "document_amount": "244.06",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Not yet due under Net 30 terms."
      },
      {
        "line_no": 9,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "INV-GRP-5002",
        "document_date": "2026-08-14",
        "document_amount": "325.41",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Quantity in dispute: 4 each billed but recorded short on GRN-GRP-2002."
      },
      {
        "line_no": 10,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "INV-GRP-5002",
        "document_date": "2026-08-17",
        "document_amount": "266.99",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Rejected as a duplicate of invoice number INV-GRP-5002 dated 2026-08-14."
      },
      {
        "line_no": 11,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "credit note",
        "document_number": "CN-GRP-7001",
        "document_date": "2026-08-21",
        "document_amount": "-8.99",
        "settled_amount": "0.00",
        "status": "withheld",
        "reason": "Credit held until the disputed invoice it relates to is settled."
      },
      {
        "line_no": 12,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "invoice",
        "document_number": "INV-GRP-5004",
        "document_date": "2026-08-28",
        "document_amount": "173.95",
        "settled_amount": "173.95",
        "status": "paid",
        "reason": "Settled in full."
      },
      {
        "line_no": 13,
        "supplier_id": "SUP-02",
        "supplier_name": "Harbour Food Supply",
        "document_type": "credit note",
        "document_number": "CN-GRP-7002",
        "document_date": "2026-08-29",
        "document_amount": "-9.98",
        "settled_amount": "-9.98",
        "status": "paid",
        "reason": "Settled in full."
      }
    ],
    "remittance_total": "1041.96",
    "withheld_total": "1608.28",
    "statements_closing_total": "2650.24"
  },
  "threeWayMatch": [
    {
      "invoice_number": "INV-GRP-5001",
      "invoice_date": "2026-08-07",
      "invoice_line": 1,
      "po_number": "PO-GRP-1001",
      "po_line": 1,
      "grn_number": "GRN-GRP-2001",
      "po_ingredient_id": "ING-01",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 18,
      "delivered_quantity": 18,
      "returned_quantity": 0,
      "invoiced_quantity": 18,
      "po_unit_price": "10.75",
      "invoice_unit_price": "10.75",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5001",
      "invoice_date": "2026-08-07",
      "invoice_line": 2,
      "po_number": "PO-GRP-1001",
      "po_line": 2,
      "grn_number": "GRN-GRP-2001",
      "po_ingredient_id": "ING-02",
      "invoiced_ingredient_id": "ING-02",
      "uom": "each",
      "po_quantity": 21,
      "delivered_quantity": 21,
      "returned_quantity": 0,
      "invoiced_quantity": 21,
      "po_unit_price": "0.63",
      "invoice_unit_price": "0.63",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5001",
      "invoice_date": "2026-08-07",
      "invoice_line": 3,
      "po_number": "PO-GRP-1001",
      "po_line": 3,
      "grn_number": "GRN-GRP-2001",
      "po_ingredient_id": "ING-03",
      "invoiced_ingredient_id": "ING-03",
      "uom": "each",
      "po_quantity": 24,
      "delivered_quantity": 24,
      "returned_quantity": 0,
      "invoiced_quantity": 24,
      "po_unit_price": "2.30",
      "invoice_unit_price": "2.30",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5002",
      "invoice_date": "2026-08-14",
      "invoice_line": 1,
      "po_number": "PO-GRP-1002",
      "po_line": 1,
      "grn_number": "GRN-GRP-2002",
      "po_ingredient_id": "ING-01",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 20,
      "delivered_quantity": 20,
      "returned_quantity": 0,
      "invoiced_quantity": 20,
      "po_unit_price": "10.17",
      "invoice_unit_price": "10.17",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5002",
      "invoice_date": "2026-08-14",
      "invoice_line": 2,
      "po_number": "PO-GRP-1002",
      "po_line": 2,
      "grn_number": "GRN-GRP-2002",
      "po_ingredient_id": "ING-03",
      "invoiced_ingredient_id": "ING-03",
      "uom": "each",
      "po_quantity": 26,
      "delivered_quantity": 22,
      "returned_quantity": 0,
      "invoiced_quantity": 26,
      "po_unit_price": "2.14",
      "invoice_unit_price": "2.14",
      "quantity_variance": 4,
      "price_variance": "0.00",
      "value_variance": "8.56",
      "match_result": "quantity-variance",
      "note": "Invoiced 26 each against 22 each recorded as delivered on GRN-GRP-2002."
    },
    {
      "invoice_number": "INV-GRP-5002",
      "invoice_date": "2026-08-14",
      "invoice_line": 3,
      "po_number": "PO-GRP-1002",
      "po_line": 3,
      "grn_number": "GRN-GRP-2002",
      "po_ingredient_id": "ING-05",
      "invoiced_ingredient_id": "ING-05",
      "uom": "kg",
      "po_quantity": 32,
      "delivered_quantity": 32,
      "returned_quantity": 0,
      "invoiced_quantity": 32,
      "po_unit_price": "1.59",
      "invoice_unit_price": "1.59",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5003",
      "invoice_date": "2026-08-21",
      "invoice_line": 1,
      "po_number": "PO-GRP-1003",
      "po_line": 1,
      "grn_number": "GRN-GRP-2003",
      "po_ingredient_id": "ING-04",
      "invoiced_ingredient_id": "ING-04",
      "uom": "kg",
      "po_quantity": 31,
      "delivered_quantity": 31,
      "returned_quantity": 0,
      "invoiced_quantity": 31,
      "po_unit_price": "3.49",
      "invoice_unit_price": "3.49",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5003",
      "invoice_date": "2026-08-21",
      "invoice_line": 2,
      "po_number": "PO-GRP-1003",
      "po_line": 2,
      "grn_number": "GRN-GRP-2003",
      "po_ingredient_id": "ING-05",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 34,
      "delivered_quantity": 34,
      "returned_quantity": 0,
      "invoiced_quantity": 34,
      "po_unit_price": "1.69",
      "invoice_unit_price": "11.12",
      "quantity_variance": 0,
      "price_variance": "9.43",
      "value_variance": "320.62",
      "match_result": "item-substituted",
      "note": "Purchase order line 2 ordered ING-05; GRN-GRP-2003 records ING-01 delivered and the invoice bills the substituted item at its own contract price."
    },
    {
      "invoice_number": "INV-GRP-5003",
      "invoice_date": "2026-08-21",
      "invoice_line": 3,
      "po_number": "PO-GRP-1003",
      "po_line": 3,
      "grn_number": "GRN-GRP-2003",
      "po_ingredient_id": "ING-06",
      "invoiced_ingredient_id": "ING-06",
      "uom": "l",
      "po_quantity": 37,
      "delivered_quantity": 37,
      "returned_quantity": 0,
      "invoiced_quantity": 37,
      "po_unit_price": "2.00",
      "invoice_unit_price": "2.00",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5004",
      "invoice_date": "2026-08-28",
      "invoice_line": 1,
      "po_number": "PO-GRP-1004",
      "po_line": 1,
      "grn_number": "GRN-GRP-2004",
      "po_ingredient_id": "ING-02",
      "invoiced_ingredient_id": "ING-02",
      "uom": "each",
      "po_quantity": 21,
      "delivered_quantity": 21,
      "returned_quantity": 0,
      "invoiced_quantity": 21,
      "po_unit_price": "0.57",
      "invoice_unit_price": "0.57",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5004",
      "invoice_date": "2026-08-28",
      "invoice_line": 2,
      "po_number": "PO-GRP-1004",
      "po_line": 2,
      "grn_number": "GRN-GRP-2004",
      "po_ingredient_id": "ING-04",
      "invoiced_ingredient_id": "ING-04",
      "uom": "kg",
      "po_quantity": 27,
      "delivered_quantity": 27,
      "returned_quantity": 0,
      "invoiced_quantity": 27,
      "po_unit_price": "3.37",
      "invoice_unit_price": "3.37",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched",
      "note": "Purchase order, goods-received note and invoice agree on item, quantity and price."
    },
    {
      "invoice_number": "INV-GRP-5004",
      "invoice_date": "2026-08-28",
      "invoice_line": 3,
      "po_number": "PO-GRP-1004",
      "po_line": 3,
      "grn_number": "GRN-GRP-2004",
      "po_ingredient_id": "ING-06",
      "invoiced_ingredient_id": "ING-06",
      "uom": "l",
      "po_quantity": 33,
      "delivered_quantity": 33,
      "returned_quantity": 3,
      "invoiced_quantity": 33,
      "po_unit_price": "1.90",
      "invoice_unit_price": "1.90",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "matched-credit-expected",
      "note": "Quantities agree, but 3 l were returned after receipt and require a credit note."
    },
    {
      "invoice_number": "INV-GRP-5002",
      "invoice_date": "2026-08-17",
      "invoice_line": 1,
      "po_number": "PO-GRP-1002",
      "po_line": 1,
      "grn_number": "GRN-GRP-2002",
      "po_ingredient_id": "ING-01",
      "invoiced_ingredient_id": "ING-01",
      "uom": "kg",
      "po_quantity": 20,
      "delivered_quantity": 20,
      "returned_quantity": 0,
      "invoiced_quantity": 20,
      "po_unit_price": "10.17",
      "invoice_unit_price": "10.17",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "duplicate-invoice-number",
      "note": "This document reuses invoice number INV-GRP-5002, which is already used by the invoice dated 2026-08-14."
    },
    {
      "invoice_number": "INV-GRP-5002",
      "invoice_date": "2026-08-17",
      "invoice_line": 2,
      "po_number": "PO-GRP-1002",
      "po_line": 3,
      "grn_number": "GRN-GRP-2002",
      "po_ingredient_id": "ING-05",
      "invoiced_ingredient_id": "ING-05",
      "uom": "kg",
      "po_quantity": 32,
      "delivered_quantity": 32,
      "returned_quantity": 0,
      "invoiced_quantity": 32,
      "po_unit_price": "1.59",
      "invoice_unit_price": "1.59",
      "quantity_variance": 0,
      "price_variance": "0.00",
      "value_variance": "0.00",
      "match_result": "duplicate-invoice-number",
      "note": "This document reuses invoice number INV-GRP-5002, which is already used by the invoice dated 2026-08-14."
    }
  ],
  "costingTraps": {
    "purchaseOrderNetAtListPrice": "977.16",
    "purchaseOrderNetIfContractTierApplied": "937.92",
    "purchaseOrderNetIfCasePriceReadAsUnitPrice": "11949.56"
  },
  "defects": [
    {
      "id": "vat-rounding-one-cent",
      "title": "Stated tax total is one cent above the sum of the line tax amounts",
      "documents": [
        "INV-GRP-5003 dated 2026-08-21"
      ],
      "detail": "Invoice INV-GRP-5003 states a tax total of 28.02 CAD and a total due of 588.29 CAD. Its three line tax amounts sum to 28.01 CAD, one cent less. The document-level calculation round(net x 0.05, 2) on a net of 560.27 gives 28.01 CAD.",
      "assertion": "statedTaxTotal - lineTaxSum == 0.01"
    },
    {
      "id": "po-invoice-quantity-mismatch",
      "title": "Invoice bills the ordered quantity after a recorded short delivery",
      "documents": [
        "INV-GRP-5002 line 2",
        "GRN-GRP-2002 line 2"
      ],
      "detail": "Purchase order PO-GRP-1002 line 2 ordered 26 each of ING-03. Goods-received note GRN-GRP-2002 records 22 each delivered. Invoice INV-GRP-5002 line 2 bills 26 each, a variance of 4 each and 8.56 CAD net.",
      "assertion": "invoicedQuantity - deliveredQuantity == 4"
    },
    {
      "id": "duplicate-invoice-number",
      "title": "Two different invoices carry the same invoice number",
      "documents": [
        "INV-GRP-5002 dated 2026-08-17",
        "INV-GRP-5002 dated 2026-08-14"
      ],
      "detail": "Invoice number INV-GRP-5002 is used twice: once dated 2026-08-14 with 3 lines totalling 325.41 CAD, and again dated 2026-08-17 with 2 lines totalling 266.99 CAD. Both are listed on statement STM-GRP-6002 and both are included in its closing balance.",
      "assertion": "count(invoices where invoiceNumber == that number) == 2"
    },
    {
      "id": "credit-note-over-credit",
      "title": "Credit note credits more units than the goods-received note records returned",
      "documents": [
        "CN-GRP-7002",
        "GRN-GRP-2004"
      ],
      "detail": "Goods-received note GRN-GRP-2004 line 3 records 3 l returned. Credit note CN-GRP-7002 credits 5 l at 1.90 CAD. The 2 l difference overstates the credit by 3.80 CAD net and 3.99 CAD including GST.",
      "assertion": "creditedQuantity - returnedQuantity == 2"
    },
    {
      "id": "statement-ageing-does-not-sum",
      "title": "Statement ageing buckets do not sum to the closing balance",
      "documents": [
        "STM-GRP-6002"
      ],
      "detail": "Statement STM-GRP-6002 for supplier SUP-02 declares ageing buckets of 756.37 current, 244.06 at 31-60 days, 195.25 at 61-90 days and 146.43 over 90 days, summing to 1342.11 CAD. The closing balance on the same document is 1333.12 CAD. The difference of 8.99 CAD is exactly credit note CN-GRP-7001, which appears in the transaction lines but was never applied to the ageing analysis.",
      "assertion": "sum(declaredAgeing) - closingBalance == creditNote.grossTotal"
    },
    {
      "id": "edi-segment-count-trailer",
      "title": "EDI 810 SE segment count disagrees with the actual segment count",
      "documents": [
        "edi-810-invalid-segment-count.edi"
      ],
      "detail": "The SE segment of the invalid interchange declares a segment count two lower than the number of segments actually present between ST and SE inclusive. Every other segment, the ISA/GS/GE/IEA control numbers and the TDS total are unchanged from edi-810-invoice.edi, so a parser that checks only syntax accepts the file.",
      "assertion": "SE01 != count(segments from ST to SE inclusive)"
    }
  ]
}
