注文・納品から支払通知案を2件作成。訂正後は6件

独自ダミーデータによる未承認・未送信の案です。銀行送金・会計計上・実メール送信は行っていません。

初回2通知・5明細・5,940円。追加後6通知・13明細・16,552円。納品の数量、返品、保留理由を元データと照合しました。

仕入先別の通知案

ID仕入先名初回案更新後の案
0001株式会社サンプル初回 3,410円更新後 4,070円
0002株式会社サンプル初回は保留更新後 3,132円
0003検証用仕入先3初回 2,530円更新後 2,970円
0004検証用仕入先4初回は保留更新後 4,510円
0005検証用仕入先5初回は保留更新後 990円
0006検証用仕入先6初回は保留更新後 880円

0001と0002は同名ですが別の仕入先です。0007はマスタ無効で引き続き保留。初回案は更新後の入力との検査では使用不可です。HTMLの閲覧自体を止める機能はありません。

16明細の対象数量と金額例

明細仕入先初回分類対象数金額例更新後分類対象数金額例
L010001通知候補101,320通知候補101,320
L020001通知候補71,540通知候補102,200
L030002通知候補51,620通知候補51,620
L040002確認待ち0—通知候補81,296
L050003通知候補42,200通知候補42,200
L060003通知候補3330通知候補4440
L070004保留——通知候補32,310
L080004通知候補22,200通知候補22,200
L090005保留——通知候補2990
L100006保留——通知候補2880
L110001対象外——対象外——
L120002対象外0—対象外0—
L130001通知候補2550通知候補2550
L140002保留——通知候補2216
L150003確認待ち0—通知候補2330
L160007保留——保留——

明細の根拠

L01の元報告と対象数量

初回:当月の確認済み数量で通知候補。元報告 R01

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L01",
    "supplier": "0001",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 10,
    "received": 10,
    "returned": 0,
    "pay_quantity": 10,
    "remaining": 0,
    "amount": 1320,
    "unit_price": 120,
    "tax_rate": 10,
    "receipt_ids": [
      "R01"
    ],
    "references": [
      {
        "id": "R01",
        "revision": 1,
        "line": "L01",
        "supplier": "0001",
        "quantity": 10,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 1200,
    "tax": 120
  },
  "追加後": {
    "id": "L01",
    "supplier": "0001",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 10,
    "received": 10,
    "returned": 0,
    "pay_quantity": 10,
    "remaining": 0,
    "amount": 1320,
    "unit_price": 120,
    "tax_rate": 10,
    "receipt_ids": [
      "R01"
    ],
    "references": [
      {
        "id": "R01",
        "revision": 1,
        "line": "L01",
        "supplier": "0001",
        "quantity": 10,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 1200,
    "tax": 120
  }
}
L02の元報告と対象数量

初回:当月の確認済み数量で通知候補。元報告 R02A, R02B

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L02",
    "supplier": "0001",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 10,
    "received": 7,
    "returned": 0,
    "pay_quantity": 7,
    "remaining": 3,
    "amount": 1540,
    "unit_price": 200,
    "tax_rate": 10,
    "receipt_ids": [
      "R02A",
      "R02B"
    ],
    "references": [
      {
        "id": "R02A",
        "revision": 1,
        "line": "L02",
        "supplier": "0001",
        "quantity": 4,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      },
      {
        "id": "R02B",
        "revision": 1,
        "line": "L02",
        "supplier": "0001",
        "quantity": 3,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 1400,
    "tax": 140
  },
  "追加後": {
    "id": "L02",
    "supplier": "0001",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 10,
    "received": 10,
    "returned": 0,
    "pay_quantity": 10,
    "remaining": 0,
    "amount": 2200,
    "unit_price": 200,
    "tax_rate": 10,
    "receipt_ids": [
      "R02A",
      "R02B",
      "R02C"
    ],
    "references": [
      {
        "id": "R02A",
        "revision": 1,
        "line": "L02",
        "supplier": "0001",
        "quantity": 4,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      },
      {
        "id": "R02B",
        "revision": 1,
        "line": "L02",
        "supplier": "0001",
        "quantity": 3,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      },
      {
        "id": "R02C",
        "revision": 1,
        "line": "L02",
        "supplier": "0001",
        "quantity": 3,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 2
      }
    ],
    "subtotal": 2000,
    "tax": 200
  }
}
L03の元報告と対象数量

初回:当月の確認済み数量で通知候補。元報告 R03

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L03",
    "supplier": "0002",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 5,
    "received": 5,
    "returned": 0,
    "pay_quantity": 5,
    "remaining": 0,
    "amount": 1620,
    "unit_price": 300,
    "tax_rate": 8,
    "receipt_ids": [
      "R03"
    ],
    "references": [
      {
        "id": "R03",
        "revision": 1,
        "line": "L03",
        "supplier": "0002",
        "quantity": 5,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "TRACK-R03",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 1500,
    "tax": 120
  },
  "追加後": {
    "id": "L03",
    "supplier": "0002",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 5,
    "received": 5,
    "returned": 0,
    "pay_quantity": 5,
    "remaining": 0,
    "amount": 1620,
    "unit_price": 300,
    "tax_rate": 8,
    "receipt_ids": [
      "R03"
    ],
    "references": [
      {
        "id": "R03",
        "revision": 1,
        "line": "L03",
        "supplier": "0002",
        "quantity": 5,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "TRACK-R03",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 1500,
    "tax": 120
  }
}
L04の元報告と対象数量

初回:納品確認待ち。元報告 R04

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L04",
    "supplier": "0002",
    "status": "pending",
    "reason": "納品確認待ち",
    "ordered": 8,
    "received": 0,
    "returned": 0,
    "pay_quantity": 0,
    "remaining": 8,
    "amount": null,
    "unit_price": 150,
    "tax_rate": 8,
    "receipt_ids": [
      "R04"
    ],
    "references": [
      {
        "id": "R04",
        "revision": 1,
        "line": "L04",
        "supplier": "0002",
        "quantity": 8,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": false,
        "tracking": "TRACK-R04",
        "original": null,
        "batch": 1
      }
    ]
  },
  "追加後": {
    "id": "L04",
    "supplier": "0002",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 8,
    "received": 8,
    "returned": 0,
    "pay_quantity": 8,
    "remaining": 0,
    "amount": 1296,
    "unit_price": 150,
    "tax_rate": 8,
    "receipt_ids": [
      "R04"
    ],
    "references": [
      {
        "id": "R04",
        "revision": 2,
        "line": "L04",
        "supplier": "0002",
        "quantity": 8,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "TRACK-R04",
        "original": null,
        "batch": 2
      }
    ],
    "subtotal": 1200,
    "tax": 96
  }
}
L05の元報告と対象数量

初回:当月の確認済み数量で通知候補。元報告 R05

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L05",
    "supplier": "0003",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 4,
    "received": 4,
    "returned": 0,
    "pay_quantity": 4,
    "remaining": 0,
    "amount": 2200,
    "unit_price": 500,
    "tax_rate": 10,
    "receipt_ids": [
      "R05"
    ],
    "references": [
      {
        "id": "R05",
        "revision": 1,
        "line": "L05",
        "supplier": "0003",
        "quantity": 4,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 2000,
    "tax": 200
  },
  "追加後": {
    "id": "L05",
    "supplier": "0003",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 4,
    "received": 4,
    "returned": 0,
    "pay_quantity": 4,
    "remaining": 0,
    "amount": 2200,
    "unit_price": 500,
    "tax_rate": 10,
    "receipt_ids": [
      "R05"
    ],
    "references": [
      {
        "id": "R05",
        "revision": 1,
        "line": "L05",
        "supplier": "0003",
        "quantity": 4,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 2000,
    "tax": 200
  }
}
L06の元報告と対象数量

初回:当月の確認済み数量で通知候補。元報告 R06, T06

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L06",
    "supplier": "0003",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 5,
    "received": 5,
    "returned": 2,
    "pay_quantity": 3,
    "remaining": 0,
    "amount": 330,
    "unit_price": 100,
    "tax_rate": 10,
    "receipt_ids": [
      "R06",
      "T06"
    ],
    "references": [
      {
        "id": "R06",
        "revision": 1,
        "line": "L06",
        "supplier": "0003",
        "quantity": 5,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      },
      {
        "id": "T06",
        "revision": 1,
        "line": "L06",
        "supplier": "0003",
        "quantity": 2,
        "date": "2026-09-25",
        "kind": "return",
        "confirmed": true,
        "tracking": "",
        "original": "R06",
        "batch": 1
      }
    ],
    "subtotal": 300,
    "tax": 30
  },
  "追加後": {
    "id": "L06",
    "supplier": "0003",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 5,
    "received": 5,
    "returned": 1,
    "pay_quantity": 4,
    "remaining": 0,
    "amount": 440,
    "unit_price": 100,
    "tax_rate": 10,
    "receipt_ids": [
      "R06",
      "T06"
    ],
    "references": [
      {
        "id": "R06",
        "revision": 1,
        "line": "L06",
        "supplier": "0003",
        "quantity": 5,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      },
      {
        "id": "T06",
        "revision": 2,
        "line": "L06",
        "supplier": "0003",
        "quantity": 1,
        "date": "2026-09-25",
        "kind": "return",
        "confirmed": true,
        "tracking": "",
        "original": "R06",
        "batch": 2
      }
    ],
    "subtotal": 400,
    "tax": 40
  }
}
L07の元報告と対象数量

初回:発注数量を超える納品。元報告 R07

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L07",
    "supplier": "0004",
    "status": "held",
    "reason": "発注数量を超える納品",
    "ordered": 3,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": 700,
    "tax_rate": 10,
    "receipt_ids": [
      "R07"
    ],
    "references": [
      {
        "id": "R07",
        "revision": 1,
        "line": "L07",
        "supplier": "0004",
        "quantity": 4,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ]
  },
  "追加後": {
    "id": "L07",
    "supplier": "0004",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 3,
    "received": 3,
    "returned": 0,
    "pay_quantity": 3,
    "remaining": 0,
    "amount": 2310,
    "unit_price": 700,
    "tax_rate": 10,
    "receipt_ids": [
      "R07"
    ],
    "references": [
      {
        "id": "R07",
        "revision": 2,
        "line": "L07",
        "supplier": "0004",
        "quantity": 3,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 2
      }
    ],
    "subtotal": 2100,
    "tax": 210
  }
}
L08の元報告と対象数量

初回:当月の確認済み数量で通知候補。元報告 R08

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L08",
    "supplier": "0004",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 2200,
    "unit_price": 1000,
    "tax_rate": 10,
    "receipt_ids": [
      "R08"
    ],
    "references": [
      {
        "id": "R08",
        "revision": 1,
        "line": "L08",
        "supplier": "0004",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 2000,
    "tax": 200
  },
  "追加後": {
    "id": "L08",
    "supplier": "0004",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 2200,
    "unit_price": 1000,
    "tax_rate": 10,
    "receipt_ids": [
      "R08"
    ],
    "references": [
      {
        "id": "R08",
        "revision": 1,
        "line": "L08",
        "supplier": "0004",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 2000,
    "tax": 200
  }
}
L09の元報告と対象数量

初回:仕入単価が不明または不正。元報告 R09

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L09",
    "supplier": "0005",
    "status": "held",
    "reason": "仕入単価が不明または不正",
    "ordered": 2,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": null,
    "tax_rate": 10,
    "receipt_ids": [
      "R09"
    ],
    "references": [
      {
        "id": "R09",
        "revision": 1,
        "line": "L09",
        "supplier": "0005",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ]
  },
  "追加後": {
    "id": "L09",
    "supplier": "0005",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 990,
    "unit_price": 450,
    "tax_rate": 10,
    "receipt_ids": [
      "R09"
    ],
    "references": [
      {
        "id": "R09",
        "revision": 1,
        "line": "L09",
        "supplier": "0005",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 900,
    "tax": 90
  }
}
L10の元報告と対象数量

初回:仕入先が未登録。元報告 R10

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L10",
    "supplier": "0006",
    "status": "held",
    "reason": "仕入先が未登録",
    "ordered": 2,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": 400,
    "tax_rate": 10,
    "receipt_ids": [
      "R10"
    ],
    "references": [
      {
        "id": "R10",
        "revision": 1,
        "line": "L10",
        "supplier": "0006",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ]
  },
  "追加後": {
    "id": "L10",
    "supplier": "0006",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 880,
    "unit_price": 400,
    "tax_rate": 10,
    "receipt_ids": [
      "R10"
    ],
    "references": [
      {
        "id": "R10",
        "revision": 1,
        "line": "L10",
        "supplier": "0006",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 800,
    "tax": 80
  }
}
L11の元報告と対象数量

初回:取消・納品なし。元報告 なし

追加後:取消・納品なし

{
  "初回": {
    "id": "L11",
    "supplier": "0001",
    "status": "excluded",
    "reason": "取消・納品なし",
    "ordered": 6,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": 50,
    "tax_rate": 10,
    "receipt_ids": [],
    "references": []
  },
  "追加後": {
    "id": "L11",
    "supplier": "0001",
    "status": "excluded",
    "reason": "取消・納品なし",
    "ordered": 6,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": 50,
    "tax_rate": 10,
    "receipt_ids": [],
    "references": []
  }
}
L12の元報告と対象数量

初回:対象月の納品なし。元報告 R12

追加後:対象月の納品なし

{
  "初回": {
    "id": "L12",
    "supplier": "0002",
    "status": "excluded",
    "reason": "対象月の納品なし",
    "ordered": 2,
    "received": 0,
    "returned": 0,
    "pay_quantity": 0,
    "remaining": 0,
    "amount": null,
    "unit_price": 600,
    "tax_rate": 8,
    "receipt_ids": [
      "R12"
    ],
    "references": [
      {
        "id": "R12",
        "revision": 1,
        "line": "L12",
        "supplier": "0002",
        "quantity": 2,
        "date": "2026-08-31",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ]
  },
  "追加後": {
    "id": "L12",
    "supplier": "0002",
    "status": "excluded",
    "reason": "対象月の納品なし",
    "ordered": 2,
    "received": 0,
    "returned": 0,
    "pay_quantity": 0,
    "remaining": 0,
    "amount": null,
    "unit_price": 600,
    "tax_rate": 8,
    "receipt_ids": [
      "R12"
    ],
    "references": [
      {
        "id": "R12",
        "revision": 1,
        "line": "L12",
        "supplier": "0002",
        "quantity": 2,
        "date": "2026-08-31",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ]
  }
}
L13の元報告と対象数量

初回:当月の確認済み数量で通知候補。元報告 R13

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L13",
    "supplier": "0001",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 550,
    "unit_price": 250,
    "tax_rate": 10,
    "receipt_ids": [
      "R13"
    ],
    "references": [
      {
        "id": "R13",
        "revision": 2,
        "line": "L13",
        "supplier": "0001",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 500,
    "tax": 50
  },
  "追加後": {
    "id": "L13",
    "supplier": "0001",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 550,
    "unit_price": 250,
    "tax_rate": 10,
    "receipt_ids": [
      "R13"
    ],
    "references": [
      {
        "id": "R13",
        "revision": 2,
        "line": "L13",
        "supplier": "0001",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ],
    "subtotal": 500,
    "tax": 50
  }
}
L14の元報告と対象数量

初回:納品報告の同じ版に異なる内容。元報告 なし

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L14",
    "supplier": "0002",
    "status": "held",
    "reason": "納品報告の同じ版に異なる内容",
    "ordered": 2,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": 100,
    "tax_rate": 8,
    "receipt_ids": [],
    "references": []
  },
  "追加後": {
    "id": "L14",
    "supplier": "0002",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 216,
    "unit_price": 100,
    "tax_rate": 8,
    "receipt_ids": [
      "R14"
    ],
    "references": [
      {
        "id": "R14",
        "revision": 2,
        "line": "L14",
        "supplier": "0002",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 2
      }
    ],
    "subtotal": 200,
    "tax": 16
  }
}
L15の元報告と対象数量

初回:納品確認待ち。元報告 なし

追加後:当月の確認済み数量で通知候補

{
  "初回": {
    "id": "L15",
    "supplier": "0003",
    "status": "pending",
    "reason": "納品確認待ち",
    "ordered": 2,
    "received": 0,
    "returned": 0,
    "pay_quantity": 0,
    "remaining": 2,
    "amount": null,
    "unit_price": 150,
    "tax_rate": 10,
    "receipt_ids": [],
    "references": []
  },
  "追加後": {
    "id": "L15",
    "supplier": "0003",
    "status": "candidate",
    "reason": "当月の確認済み数量で通知候補",
    "ordered": 2,
    "received": 2,
    "returned": 0,
    "pay_quantity": 2,
    "remaining": 0,
    "amount": 330,
    "unit_price": 150,
    "tax_rate": 10,
    "receipt_ids": [
      "R15"
    ],
    "references": [
      {
        "id": "R15",
        "revision": 1,
        "line": "L15",
        "supplier": "0003",
        "quantity": 2,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 2
      }
    ],
    "subtotal": 300,
    "tax": 30
  }
}
L16の元報告と対象数量

初回:仕入先が無効。元報告 R16

追加後:仕入先が無効

{
  "初回": {
    "id": "L16",
    "supplier": "0007",
    "status": "held",
    "reason": "仕入先が無効",
    "ordered": 1,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": 1000,
    "tax_rate": 10,
    "receipt_ids": [
      "R16"
    ],
    "references": [
      {
        "id": "R16",
        "revision": 1,
        "line": "L16",
        "supplier": "0007",
        "quantity": 1,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ]
  },
  "追加後": {
    "id": "L16",
    "supplier": "0007",
    "status": "held",
    "reason": "仕入先が無効",
    "ordered": 1,
    "received": null,
    "returned": null,
    "pay_quantity": null,
    "remaining": null,
    "amount": null,
    "unit_price": 1000,
    "tax_rate": 10,
    "receipt_ids": [
      "R16"
    ],
    "references": [
      {
        "id": "R16",
        "revision": 1,
        "line": "L16",
        "supplier": "0007",
        "quantity": 1,
        "date": "2026-09-15",
        "kind": "delivery",
        "confirmed": true,
        "tracking": "",
        "original": null,
        "batch": 1
      }
    ]
  }
}

実際に見つかった2つの不具合

発注明細がない報告がさらに競合すると、通知を保留しない不具合がありました。競合報告の仕入先も保留するよう修正しました。もう一つは、同じ報告を後日再受領した際、入力順で受領回の記録が変わったことです。金額は変わらず、最初の受領回を残す修正を行いました。

修正前ソースで再現した失敗 / 旧案の使用可否検査

入力・出力・検査記録

最終6CLI・60検査。失敗を含むコードと記録をZIPに収録。変種検査は入力コピーをメモリ上で変更して実行しています。

架空入力 / 独立した期待値 / 初回結果 / 更新後結果 / 60項目の検査 / コードと実験資料ZIP / ファイルハッシュ

計算式は独自の架空条件で、税務判断ではありません。実際の取引条件、データ取得、担当者の承認、送信、時間短縮は未検証です。