{
  "id": "purchase-receipt-cost-separation",
  "synthetic": true,
  "function": "receipt",
  "scope": [
    "No costing, FX, tax, supplier payment or accounting advice. Cancellation applies only to never-shipped units in this example; local stock activation and extensions still need verification.",
    "不提供成本、换汇、税务、付款或会计建议。例子的取消仅针对未发出数量，地点库存启用和扩展仍需核验。"
  ],
  "cases": [
    {
      "args": [
        10,
        6,
        2,
        2
      ],
      "expected": {
        "available": 6,
        "outstanding": 0
      }
    },
    {
      "args": [
        10,
        6,
        2,
        0
      ],
      "expected": {
        "available": 6,
        "outstanding": 2
      }
    },
    {
      "args": [
        10,
        0,
        0,
        0
      ],
      "expected": {
        "available": 0,
        "outstanding": 10
      }
    }
  ]
}
