{
  "version": 1,
  "fictional": true,
  "software": "Trimble Spectrum",
  "title": "A freshness difference that looks like a missing invoice",
  "canonicalPage": "https://levelcfo.com/guides/software-integration/spectrum/",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "fields": [
    "All records are fictional teaching data in USD, not Spectrum-native records or a customer case.",
    "source indicates an illustrative owner report or earlier replica. amount is invoiced face value for the stated population, not recognized revenue or collected cash.",
    "The owner report includes activity through September 30; the completed replica generation includes activity only through September 29. Both were collected October 1."
  ],
  "calculation": "The owner-report population totals 1,200 + 800 = 2,000. The earlier replica totals 1,200. Their 800 difference is I-02, but the sources have different cutoffs. This does not establish a broken integration or an accounting error.",
  "files": [
    {
      "filename": "invoice-populations.csv",
      "sha256": "d6459a2c90bb51312b9d996885a0d1b9011137ebd0ff3445d6e8804bcbc273ee"
    }
  ],
  "checks": [
    {
      "id": "report_value",
      "operation": "sum",
      "expected": 2000,
      "file": "invoice-populations.csv",
      "field": "amount",
      "filter": {
        "field": "source",
        "equals": "owner_report"
      }
    },
    {
      "id": "replica_value",
      "operation": "sum",
      "expected": 1200,
      "file": "invoice-populations.csv",
      "field": "amount",
      "filter": {
        "field": "source",
        "equals": "replica"
      }
    },
    {
      "id": "unaligned_difference",
      "operation": "difference",
      "expected": 800,
      "operands": [
        "report_value",
        "replica_value"
      ]
    },
    {
      "id": "report_count",
      "operation": "count",
      "expected": 2,
      "file": "invoice-populations.csv",
      "field": "invoice_id",
      "filter": {
        "field": "source",
        "equals": "owner_report"
      }
    },
    {
      "id": "replica_count",
      "operation": "count",
      "expected": 1,
      "file": "invoice-populations.csv",
      "field": "invoice_id",
      "filter": {
        "field": "source",
        "equals": "replica"
      }
    }
  ],
  "expectedResults": [
    {
      "label": "Owner-report invoice value",
      "value": 2000,
      "unit": "USD",
      "meaning": "Two illustrative invoices through September 30.",
      "checkId": "report_value"
    },
    {
      "label": "Replica invoice value",
      "value": 1200,
      "unit": "USD",
      "meaning": "One invoice in the earlier generation.",
      "checkId": "replica_value"
    },
    {
      "label": "Unaligned population difference",
      "value": 800,
      "unit": "USD",
      "meaning": "Difference requires an aligned generation before diagnosis.",
      "checkId": "unaligned_difference"
    }
  ],
  "nextDecision": "Obtain a completed, company-scoped invoice generation for the same cutoff and compare identities again. Arithmetic alone cannot decide whether I-02 should be booked or sent downstream."
}
