Skip to content

feat(ios-history): 履歴詳細と PDF にデンソーのかんばん項目を記載する (#109) - #117

Merged
rimtty merged 1 commit into
masterfrom
codex/denso-ios-history
Sep 7, 2026
Merged

rimtty merged 1 commit into
masterfrom
codex/denso-ios-history

Conversation

@rimtty

@rimtty rimtty commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Closes #109 (parent #106). Builds on #113 / #115.

変更

  • HistoryModels.swift: MatchHistoryEntry.densoRecordDestination.detect == .denso ガード。寛容な KanbanQRRecord.parse がデンソーの QR を澤井として通すため、表示側は必ず仕向地ガード付きのプロパティを使う)。
  • HistoryScreen.swift: MatchEntryDetailkanbanRecordmoltenRecorddensoRecord の分岐にし、デンソーは 13 項目(帳票区分・部品番号 6-4・包装・収容数・次区・指示・かんばん連番・管理番号・納入日・便・指示数・アイテムNo・受入。無い項目は行ごと省略)。箱の行にはデンソーでも管理コードを表示。
  • SessionPDFExporter.swift: デンソーはかんばん 3 行 + 各箱にかんばん連番。澤井のブロックは entry.kanbanRecord 経由に(出力は不変)。
  • ScanModels.swift: 1 引数の format(partNumber:) を削除し、全呼び出しが仕向地を明示。
  • Localizable.xcstrings: 14 キー(ja 明示 + en)。

テスト

  • SessionPDFExporterTests.testDensoSessionPrintsKanbanBlockAndBoxesカード番号納品番号数 が出ないことも断言)、HistoryExporterTests.testDensoSessionExportsDestinationIdHistoryStoreTests.testDensoRecordParsesFromEntry、UI テストを履歴詳細まで延長(仕向地、デンソーかんばん連番)。
  • CodeMatchTests: 156 tests, 0 failures(ja と -testLanguage en -testRegion US の両方)。UI テスト緑。

🤖 Generated with Claude Code

The history detail and the PDF choose the record by destination instead
of the lenient Kanban parse, add a Denso section with the kanban fields
(form type, part number as 6-4, packaging, pack quantity, next process,
instruction, kanban serial, management number, delivery date, run,
instructed quantity, item number, receiving code) and print the kanban
serial with every box. The 1-argument format(partNumber:) overload is
removed so every caller names its destination. Sawai and Molten output
is unchanged.

Refs #109
@rimtty
rimtty merged commit 11022bf into master Sep 7, 2026
2 checks passed
@rimtty
rimtty deleted the codex/denso-ios-history branch September 7, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

iOS: 履歴詳細と PDF にデンソーのかんばん項目を記載する

1 participant