From e8745f729cb48a2cab96f8f216617240326f2018 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 13 Aug 2024 14:39:08 +0700
Subject: <iman> add feature pickup service

---
 src-migrate/modules/cart/components/Item.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src-migrate/modules/cart/components/Item.tsx')

diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx
index 47893498..44ec4fd5 100644
--- a/src-migrate/modules/cart/components/Item.tsx
+++ b/src-migrate/modules/cart/components/Item.tsx
@@ -17,11 +17,11 @@ import CartItemSelect from './ItemSelect'
 type Props = {
   item: CartItemProps
   editable?: boolean
+  selfPicking?: boolean
   pilihSemuaCart?: boolean 
 }
 
-const CartItem = ({ item, editable = true,}: Props) => {
-
+const CartItem = ({ item, editable = true, selfPicking}: Props) => {
   return (
     <div className={style.wrapper}>
       {item.cart_type === 'promotion' && (  
@@ -53,6 +53,7 @@ const CartItem = ({ item, editable = true,}: Props) => {
         <CartItem.Image item={item} />
 
         <div className={style.details}>
+          {/* disini  */}
           <CartItem.Name item={item} />
 
           <div className='mt-2 flex justify-between w-full'>
-- 
cgit v1.2.3


From a72f9273664715e9708523ca1a6a4554bd22c917 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 13 Aug 2024 15:37:29 +0700
Subject: <iman> update pickup service add field

---
 src-migrate/modules/cart/components/Item.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'src-migrate/modules/cart/components/Item.tsx')

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'>
-- 
cgit v1.2.3


From 62704c101d17afb7f71389ef23d6183b2cd16dfa Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 14 Aug 2024 15:11:33 +0700
Subject: <iman> update self picking di product card

---
 src-migrate/modules/cart/components/Item.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src-migrate/modules/cart/components/Item.tsx')

diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx
index 25df62fe..ce4c5bff 100644
--- a/src-migrate/modules/cart/components/Item.tsx
+++ b/src-migrate/modules/cart/components/Item.tsx
@@ -54,7 +54,11 @@ const CartItem = ({ item, editable = true, selfPicking}: Props) => {
 
         <div className={style.details}>
           {/* disini  */}
-          {/* {selfPicking && (item.is_in_bu) && (item.on_hand_qty > item.quantity)} */}
+          {selfPicking && (item.is_in_bu) && (item.on_hand_qty > item.quantity) && (
+            <div className='text-xs text-red-500'>
+              Barang ini bisa di pickup maksimal pukul 16.00
+            </div>
+          )}
           <CartItem.Name item={item} />
 
           <div className='mt-2 flex justify-between w-full'>
-- 
cgit v1.2.3


From 08e5b76ba58645929ddeda1830f85f3eaf43969e Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Wed, 14 Aug 2024 17:01:44 +0700
Subject: <iman> update pickup service logic

---
 src-migrate/modules/cart/components/Item.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src-migrate/modules/cart/components/Item.tsx')

diff --git a/src-migrate/modules/cart/components/Item.tsx b/src-migrate/modules/cart/components/Item.tsx
index ce4c5bff..272fa622 100644
--- a/src-migrate/modules/cart/components/Item.tsx
+++ b/src-migrate/modules/cart/components/Item.tsx
@@ -54,7 +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) && (
+          {selfPicking && (item.is_in_bu) && (item.on_hand_qty >= item.quantity) && (
             <div className='text-xs text-red-500'>
               Barang ini bisa di pickup maksimal pukul 16.00
             </div>
-- 
cgit v1.2.3

