diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx index fe58020..7a6de70 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable3/BSBillingTable3.jsx @@ -155,16 +155,16 @@ const BSBillingTable3 = () => { OrderType === 'Hold' ? tableData?.filter((a, b) => a.BookingTypeName === 'TakeAway') : tableData?.filter( - (a, b) => a.BookingTypeName === 'TakeAway' && !a?.SalesId - ); + (a, b) => a.BookingTypeName === 'TakeAway' && !a?.SalesId + ); const OldtableDataDinein = tableData?.filter( (a, b) => a.BookingTypeName === 'Dine In' && a?.SalesId ); const OldtableDataTakeAway = OrderType != 'Hold' ? tableData?.filter( - (a, b) => a.BookingTypeName === 'TakeAway' && a?.SalesId - ) + (a, b) => a.BookingTypeName === 'TakeAway' && a?.SalesId + ) : []; const [EditQuantity, setEditQuantity] = useState(false); const [Modaldata, setModaldata] = useState([]); @@ -1057,9 +1057,9 @@ const BSBillingTable3 = () => { )?.map((item, idx) => idx === 0 ? { - ...item, - FreeQty, - } + ...item, + FreeQty, + } : item ), }; @@ -1176,6 +1176,7 @@ const BSBillingTable3 = () => { CompleteRemove: true, InwardDtlId: isPaidproduct?.InwardDtlId, BuyInwardDtlId: null, + OrderRate: isPaidproduct?.OrderRate, Offer: 0, }); } else if (isPaidproduct?.OrderQty > item?.OrderQty) { @@ -1350,6 +1351,7 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: null, Offer: item?.Offer, + OrderRate: item?.OrderRate, }); await ChangeFreeprodlistFn({ OverAllFreeQty: isCheckFreeProduct?.OverAllFreeQty, @@ -1429,6 +1431,7 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: null, Offer: item?.Offer, + OrderRate: item?.OrderRate, }); await ChangeFreeprodlistFn({ OverAllFreeQty: isCheckFreeProduct?.OverAllFreeQty, @@ -1462,6 +1465,8 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: null, Offer: item?.Offer, + OrderRate: item?.OrderRate, + }); await ChangeOfferAppliedProdsFn({ inwardDtlId: item?.InwardDtlId, @@ -1493,6 +1498,7 @@ const BSBillingTable3 = () => { InwardDtlId: isPaidProductAvailableInCart?.InwardDtlId, BuyInwardDtlId: null, Offer: 0, + OrderRate: isPaidProductAvailableInCart?.OrderRate, }); } else if ( isPaidProductAvailableInCart?.OrderQty > item?.OrderQty @@ -1576,6 +1582,7 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: null, Offer: item?.Offer, + OrderRate: item?.OrderRate, }); await ChangeFreeprodlistFn({ OverAllFreeQty: freeProdList?.OverAllFreeQty, @@ -1602,6 +1609,7 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: null, Offer: item?.Offer, + OrderRate: item?.OrderRate, }); await ChangeFreeprodlistFn({ OverAllFreeQty: freeProdList?.OverAllFreeQty, @@ -1649,7 +1657,7 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: null, Offer: item?.Offer, - OrderRate: item?.OrderRate, + OrderRate: item?.OrderRate }); } else { const isCheck = GlobalOfferAppliedProductsData?.find( @@ -1951,6 +1959,7 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: item?.InwardDtlId, Offer: item?.Offer, + OrderRate: item?.OrderRate }); await ChangeFreeprodlistFn({ OverAllFreeQty: FreeProd?.OverAllFreeQty - item?.OrderQty, @@ -1969,6 +1978,8 @@ const BSBillingTable3 = () => { InwardDtlId: item?.InwardDtlId, BuyInwardDtlId: item?.InwardDtlId, Offer: item?.Offer, + OrderRate: item?.OrderRate, + }); await ChangeFreeprodlistFn({ OverAllFreeQty: item?.OrderQty, @@ -2394,11 +2405,10 @@ const BSBillingTable3 = () => { {OldtableDataTakeAway?.map((item, index) => (
{
fontSize:
!cardFunction?.SmallImage
? cardFunction?.BigImage &&
- '12px'
+ '12px'
: '12px',
textAlign: 'center',
lineHeight: '2',
@@ -4892,8 +4893,8 @@ const BsBookingitemCard = (props) => {
: '',
color: SelectedCardColor
? SelectedCardColor?.[
- 'FontColor'
- ]
+ 'FontColor'
+ ]
: '',
}}
>
@@ -4979,39 +4980,39 @@ const BsBookingitemCard = (props) => {
cardFunction?.Background &&
(SelectedCardColor
? SelectedCardColor?.[
- 'BackgroundColor'
- ]
+ 'BackgroundColor'
+ ]
: ''),
padding:
!cardFunction?.ImageUp &&
- !cardFunction?.ImageDown
+ !cardFunction?.ImageDown
? cardFunction?.SmallImage &&
- '5px 9px'
+ '5px 9px'
: '8px 2px',
flexDirection:
cardFunction?.ImageRight &&
- 'row-reverse'
+ 'row-reverse'
? cardFunction?.ImageRight &&
- 'row-reverse'
+ 'row-reverse'
: cardFunction?.ImageUp && 'column'
? cardFunction?.ImageUp &&
- 'column'
+ 'column'
: cardFunction?.ImageDown &&
- 'column-reverse'
+ 'column-reverse'
? cardFunction?.ImageDown &&
- 'column-reverse'
+ 'column-reverse'
: cardFunction?.ImageLeft &&
- 'row',
+ 'row',
borderRadius:
cardFunction?.EdgeCurve && '6px',
width:
!cardFunction?.ImageUp &&
- !cardFunction?.ImageDown &&
- !cardFunction?.BigImage &&
- !cardFunction?.ImageRight &&
- cardFunction?.SmallImage &&
- (cardFunction?.ImageUp ||
- cardFunction?.ImageDown)
+ !cardFunction?.ImageDown &&
+ !cardFunction?.BigImage &&
+ !cardFunction?.ImageRight &&
+ cardFunction?.SmallImage &&
+ (cardFunction?.ImageUp ||
+ cardFunction?.ImageDown)
? '6rem'
: cardFunction?.BigImage && '9rem',
height:
@@ -5028,43 +5029,43 @@ const BsBookingitemCard = (props) => {
onClick={(e) => {
CardOnclick(item, index);
}}
- // data-aos="zoom-in" data-aos-duration="600"
+ // data-aos="zoom-in" data-aos-duration="600"
>
{(cardFunction?.BigImage ||
cardFunction?.SmallImage) && (
-
- )}
+ : defaultimage
+ }
+ alt=""
+ />
+ )}