{
  "version": 1,
  "fictional": true,
  "software": "Roofr",
  "title": "One accepted option, one deposit, one settlement",
  "canonicalPage": "https://levelcfo.com/guides/software-integration/roofr/",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "fields": [
    {
      "name": "option_id",
      "meaning": "Fictional proposal option"
    },
    {
      "name": "accepted",
      "meaning": "Explicit teaching selection"
    },
    {
      "name": "amount",
      "meaning": "Fictional USD"
    },
    {
      "name": "kind",
      "meaning": "Cash bridge component"
    }
  ],
  "calculation": "The two alternatives sum to $22,000, but accepted work is $12,000. The scenario has a $3,000 received deposit and a deliberately fictional $90 fee, leaving $2,910 settled. The $9,000 difference between invoicing and this deposit is still unpaid in this simplified example. Fee amounts are invented, not a Roofr price quote.",
  "files": [
    {
      "filename": "roofr-options.csv",
      "sha256": "8029a2b6b585ecfb6296782f1e544797a45717998d8ebc318e5df0f62f02000e"
    },
    {
      "filename": "roofr-cash.csv",
      "sha256": "d87d44065b3c9081b7f8f7b5a2efe9efaa6197a3dd8b99061e6b67477da41482"
    }
  ],
  "checks": [
    {
      "id": "options",
      "operation": "sum",
      "expected": 22000,
      "file": "roofr-options.csv",
      "field": "amount"
    },
    {
      "id": "accepted",
      "operation": "sum",
      "expected": 12000,
      "file": "roofr-options.csv",
      "field": "amount",
      "filter": {
        "field": "accepted",
        "equals": "yes"
      }
    },
    {
      "id": "invoiced",
      "operation": "sum",
      "expected": 12000,
      "file": "roofr-cash.csv",
      "field": "amount",
      "filter": {
        "field": "kind",
        "equals": "invoiced"
      }
    },
    {
      "id": "received",
      "operation": "sum",
      "expected": 3000,
      "file": "roofr-cash.csv",
      "field": "amount",
      "filter": {
        "field": "kind",
        "equals": "received"
      }
    },
    {
      "id": "fee",
      "operation": "sum",
      "expected": 90,
      "file": "roofr-cash.csv",
      "field": "amount",
      "filter": {
        "field": "kind",
        "equals": "fee"
      }
    },
    {
      "id": "net",
      "operation": "difference",
      "expected": 2910,
      "operands": [
        "received",
        "fee"
      ]
    },
    {
      "id": "unpaid",
      "operation": "difference",
      "expected": 9000,
      "operands": [
        "invoiced",
        "received"
      ]
    }
  ],
  "expectedResults": [
    {
      "label": "All options",
      "value": 22000,
      "unit": "USD",
      "meaning": "A choice total, not sold work",
      "checkId": "options"
    },
    {
      "label": "Accepted value",
      "value": 12000,
      "unit": "USD",
      "meaning": "Only the selected option",
      "checkId": "accepted"
    },
    {
      "label": "Expected net settlement",
      "value": 2910,
      "unit": "USD",
      "meaning": "Received deposit less fictional fee",
      "checkId": "net"
    },
    {
      "label": "Unpaid invoice portion",
      "value": 9000,
      "unit": "USD",
      "meaning": "Invoicing less received deposit, with no credits/refunds assumed",
      "checkId": "unpaid"
    }
  ],
  "nextDecision": "Prove actual invoice applications and settlement evidence before carrying this bridge into an accounting or cash report."
}
