Skip to content

Commit

Permalink
pos /cashier-v2 コースター対応 (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
toririm authored Oct 6, 2024
1 parent 51e311f commit 5443b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/organisms/OrderItemEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ItemEntity } from "~/models/item";
import type { OrderEntity } from "~/models/order";
import { ItemAssign } from "./ItemAssign";

const keys = ["q", "d", "c", "w", "a", "v", "e", "s", "z", "x"];
const keys = ["q", "d", "c", "w", "a", "v", "e", "s", "z", "x", "b"];

type props = {
order: OrderEntity;
Expand Down
4 changes: 3 additions & 1 deletion app/models/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,9 @@ export class OrderEntity implements Order {
getCoffeeCount() {
// milk 以外のアイテムの数を返す
// TODO(toririm): このメソッドは items が変更された時だけでいい
return this.items.filter((item) => item.type !== "milk").length;
return this.items.filter(
(item) => item.type !== "milk" && item.type !== "others",
).length;
}

/**
Expand Down

0 comments on commit 5443b2d

Please sign in to comment.