{
  "version": 1,
  "fictional": true,
  "software": "Ramp",
  "title": "A complete-looking capture with one changed record",
  "canonicalPage": "https://levelcfo.com/guides/software-integration/ramp/",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "fields": [
    "All rows and identifiers are fictional teaching data in USD, not a Ramp export or customer result.",
    "capture identifies an illustrative earlier or later read. amount is a positive spend amount; compare versions by transaction_id instead of adding captures together.",
    "The supplied capture sets describe the same three selected transactions. The example does not establish why T-03 changed or which accounting period it belongs in."
  ],
  "calculation": "Earlier capture totals 120 + 80 + 50 = 250 across three rows. Later capture totals 120 + 80 + 60 = 260 across three rows. Counts agree, but T-03 changed by 10. Adding both reads would incorrectly report 510.",
  "files": [
    {
      "filename": "capture-versions.csv",
      "sha256": "a87a53e8fd8306306861ef8b2086a004471994a795817c7bfe6dfecfdcfecef5"
    }
  ],
  "checks": [
    {
      "id": "earlier_total",
      "operation": "sum",
      "expected": 250,
      "file": "capture-versions.csv",
      "field": "amount",
      "filter": {
        "field": "capture",
        "equals": "earlier"
      }
    },
    {
      "id": "later_total",
      "operation": "sum",
      "expected": 260,
      "file": "capture-versions.csv",
      "field": "amount",
      "filter": {
        "field": "capture",
        "equals": "later"
      }
    },
    {
      "id": "version_difference",
      "operation": "difference",
      "expected": 10,
      "operands": [
        "later_total",
        "earlier_total"
      ]
    },
    {
      "id": "wrong_combined_total",
      "operation": "sumMetrics",
      "expected": 510,
      "operands": [
        "earlier_total",
        "later_total"
      ]
    },
    {
      "id": "earlier_count",
      "operation": "count",
      "expected": 3,
      "file": "capture-versions.csv",
      "field": "transaction_id",
      "filter": {
        "field": "capture",
        "equals": "earlier"
      }
    },
    {
      "id": "later_count",
      "operation": "count",
      "expected": 3,
      "file": "capture-versions.csv",
      "field": "transaction_id",
      "filter": {
        "field": "capture",
        "equals": "later"
      }
    }
  ],
  "expectedResults": [
    {
      "label": "Earlier capture total",
      "value": 250,
      "unit": "USD",
      "meaning": "One observed version of the three-record population.",
      "checkId": "earlier_total"
    },
    {
      "label": "Later capture total",
      "value": 260,
      "unit": "USD",
      "meaning": "A later version, pending authoritative review.",
      "checkId": "later_total"
    },
    {
      "label": "Version total difference",
      "value": 10,
      "unit": "USD",
      "meaning": "T-03 changed; equal counts did not establish a frozen snapshot.",
      "checkId": "version_difference"
    },
    {
      "label": "Incorrect combined-read total",
      "value": 510,
      "unit": "USD",
      "meaning": "A demonstrably wrong way to count this supplied population.",
      "checkId": "wrong_combined_total"
    }
  ],
  "nextDecision": "Inspect T-03's authoritative current state and preserve the version exception. Use one qualified population for a subsequent review, not the sum of repeated reads."
}
