diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-13 15:37:29 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-13 15:37:29 +0700 |
| commit | a72f9273664715e9708523ca1a6a4554bd22c917 (patch) | |
| tree | 18a130ba478a8a6be674d6d505e7d7bc9000f9e8 | |
| parent | e8745f729cb48a2cab96f8f216617240326f2018 (diff) | |
<iman> update pickup service add field
| -rw-r--r-- | src-migrate/modules/cart/components/Item.tsx | 1 | ||||
| -rw-r--r-- | src-migrate/types/cart.ts | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx index 44ec4fd5..25df62fe 100644 --- a/src-migrate/modules/cart/components/Item.tsx +++ b/src-migrate/modules/cart/components/Item.tsx @@ -54,6 +54,7 @@ const CartItem = ({ item, editable = true, selfPicking}: Props) => { <div className={style.details}> {/* disini */} + {/* {selfPicking && (item.is_in_bu) && (item.on_hand_qty > item.quantity)} */} <CartItem.Name item={item} /> <div className='mt-2 flex justify-between w-full'> diff --git a/src-migrate/types/cart.ts b/src-migrate/types/cart.ts index 4e3c8b99..a3115103 100644 --- a/src-migrate/types/cart.ts +++ b/src-migrate/types/cart.ts @@ -32,6 +32,8 @@ export type CartItem = { id: number; name: string; stock: number; + is_in_bu: boolean; + on_hand_qty: number; weight: number; attributes: string[]; parent: { |
