Skip to content

在庫数を超える注文を拒否する #76

@exflikt

Description

@exflikt

products テーブルには在庫数 (no_stock: number of stock) が保存されてます。でも現状はWebインターフェースからどんな操作をしてもこのデータを変更できない状態にあります。
そこで、

  • 注文すると在庫数を減らす
  • 在庫数が底を尽きたときに注文を拒否する

機能を実装しましょう。

Metadata

Metadata

Assignees

No one assigned

    Labels

    taskWork, todo, refactor by maintainers; see also 'ask' label

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions