Skip to content

Conversation

@doi-shuhei-2024
Copy link
Contributor

@doi-shuhei-2024 doi-shuhei-2024 commented Dec 17, 2025

背景・課題

Jira: https://zaicozaico.atlassian.net/browse/FUND-423

いくつかの公開APIをバリエーションに対応させたので、それらに関する説明を追記しています。

対象API

  • 在庫データ一覧取得
  • 在庫データ作成
  • 在庫データ個別取得
  • 出庫データ作成
  • 出庫物品データ一覧取得
  • 入庫データ作成
  • 入庫物品データ一覧取得

関連

対応概要

UI変更

その他

+ quantity_auto_conversion_by_unit_name: `` (string) - 単位換算後の単位名
+ quantity_auto_conversion_by_unit_factor: `12` (string) - 単位換算係数

### InventoryCreateParams(InventoryUpdateParams)
Copy link
Contributor Author

@doi-shuhei-2024 doi-shuhei-2024 Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メモ)在庫データの新規作成と更新のパラメータはもともと同じ定義(InventoryCreateParams)を参照してました。今回新規作成のほうだけバリエーションに対応しているので、共通部分はInventoryUpdateParamsとして、InventoryCreateParamsは共通部分を継承しつつ、バリエーションのパラメータを個別に追加する形式にしました。


### InventoriesIndexViews(InventoriesViews)

### InventoriesShowViews(InventoriesViews)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メモ)在庫データの一覧取得と個別取得でもともと同じ定義(InventoriesViews)を参照してました。今回両方にバリエーション設定項目のデータを追加しています。また、個別取得のほうにはバリエーション一覧のデータも追加しています。共通部分はInventoriesViewsとして、一覧取得をInventoriesIndexViews、個別取得をInventoriesShowViewsとしました。

font-size: 12px;
font-weight: normal;
}
</style>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

メモ)バリエーション対応のラベル用クラスです。

スクリーンショット 2025-12-17 164502

@doi-shuhei-2024 doi-shuhei-2024 merged commit 3d752a1 into master Dec 18, 2025
1 check passed
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.

3 participants