Repository navigation
Conversation
実績CSVで出荷指示・出荷判定・出荷実行を取り込むための下準備。出荷判定の業務処理を ShipmentJudgmentsController から ShipmentJudgmentService へ移し、単票APIとCSV取込の 両方から呼べるようにした。ShippingService.CreateAsync は出荷番号を受け取れるようにし、 後続の行から指示を番号で指せるようにする(製造指図の OrderNo と同じ扱いで、 自動採番の接頭辞 SH で始まる番号と既存の番号は拒否する)。単票APIの振る舞いは変えない。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
サンプルの実績で出荷だけが画面操作で、製造から出荷までをCSVだけではたどれなかった。 実績CSVに出荷指示 shipping-orders・出荷判定 shipment-judgments・出荷実行 shipments を追加する。 判定は品質保証、指示と実行は物流の権限なので、単票APIと取込の権限をそろえるため3種別に分けた。 - 出荷指示:出荷番号が同じ行を1件の指示にまとめる(1行=1品目。同じ品目は2行書けない)。 後続から番号で指すため出荷番号は必須の手入力で、自動採番の SH〜 は拒否する - 出荷判定:1行=1件。Approve=true で続けて承認する(ShipmentJudgmentService 経由) - 出荷実行:出荷番号が同じ行を1回の出荷にまとめ、ShippingService.ShipAsync を通す。 判定ゲートとロットの使用可否は単票APIと同じ判定で、満たさなければ全件取り消し サンプルは samples/actual-csv/13〜15(SMP-SH-001 は出荷完了まで、SMP-SH-002 は判定保留のまま)。 Spec.md 3.8節(改訂116)、CodeMap、サンプルの README、利用者ガイド(マスタ管理・サンプルで見る)を更新。 MES.md の D-40-20(出荷指示)・H-10-10(出荷判定)・D-40-30(出荷実行)に当たる。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
出荷をサンプルCSV(13〜15)で入れるようにしたので、出荷判定・出荷管理の写真を サンプルを取り込んだ新しいDBで撮り直した。出荷番号が SMP-SH-001 になり、 判定が保留のまま残る SMP-SH-002 も写るため、代替テキストと説明を合わせた。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
サンプルの実績で出荷だけが画面操作で、製造から出荷までをCSVだけではたどれなかった。実績CSVに出荷の3種別を追加し、
samples/actual-csv/にサンプルを足す。変更内容
shipping-orders出荷指示(InventoryManage):出荷番号が同じ行を1件の指示にまとめる。後続から番号で指すため出荷番号は必須の手入力で、自動採番のSH〜は拒否shipment-judgments出荷判定(QaManage):1行=1件。Approve=trueで続けて承認shipments出荷実行(InventoryManage):出荷番号が同じ行を1回の出荷にまとめ、ShippingService.ShipAsyncを通す(判定ゲート・ロットの使用可否は単票APIと同じ。満たさなければ全件取り消し)ShipmentJudgmentsControllerからShipmentJudgmentServiceへ移し、単票APIとCSVの両方から呼ぶShippingService.CreateAsyncが出荷番号を受け取れるようにした(単票APIは従来どおり自動採番)13_shipping-orders.csv・14_shipment-judgments.csv・15_shipments.csv(SMP-SH-001 は出荷完了まで、SMP-SH-002 は判定保留のまま)MES.md の業務プロセス:D-40-20(出荷指示)・H-10-10(出荷判定)・D-40-30(出荷実行)
確認
dotnet build成功(警告なし)dotnet test全緑(API 246 / 画面 229)。新規テスト:CSVでの出荷の一連の流れ・判定なし/保留での取り消し・SH〜と品目重複の拒否・判定CSVの権限。サンプル一括取込テストで SMP-SH-001 完了・SMP-SH-002 指示のままを確認scripts/I18nCheck.ps1取りこぼしなしjekyll build成功🤖 Generated with Claude Code