diff --git a/src/Features/ThemeChange/ThemeChange.js b/src/Features/ThemeChange/ThemeChange.js index 2acb6a0..44bc209 100644 --- a/src/Features/ThemeChange/ThemeChange.js +++ b/src/Features/ThemeChange/ThemeChange.js @@ -2607,6 +2607,7 @@ const ThemeSlice = createSlice({ 'UnpaidBill', 'OverallBackground', 'CreditCustomer', + 'PreviousBillFetch' ]; const bookingBillingOptionsArray = tempDic['BookingBilling'][1]; const sortedBillingOptions = desiredOrder diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingEditQuantity/BSBillingEditQuantity.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingEditQuantity/BSBillingEditQuantity.jsx index 9e5df58..6a86902 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingEditQuantity/BSBillingEditQuantity.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingEditQuantity/BSBillingEditQuantity.jsx @@ -12,6 +12,9 @@ import { GlobalReorderProductDetails, PreferenceData, getConfigType, + changefocusStatusCust, + changeCombofocus, + GlobalfocusStatusCust, } from '../../../../../Features/BookingScreen/BookingData/BookingData'; import { ArrowRightOutlined } from '@ant-design/icons'; import { Messages } from '../../../../../Components/Notifications/Messages'; @@ -50,7 +53,7 @@ const BSBillingEditQuantity = (props) => { const priceChangeInputRef = useRef(null); const reductionInputRef = useRef(null); - const { setIndex = () => { } } = props; + const { setIndex = () => {} } = props; const [disableSubmitButton, setDisableSubmitButton] = useState(false); const SessionData = useSelector(StoredSessionData); @@ -66,13 +69,24 @@ const BSBillingEditQuantity = (props) => { shallowEqual ); - const overAllLimitPreferenece = - preferenceDatas?.[0]?.['SettingDtlDetails']?.find( - (item) => (item.SettingIdName?.toLowerCase() === 'overalllimit') && item?.SettingValue === 'Y'); - const itemWiseLimitPreferenece = - preferenceDatas?.[0]?.['SettingDtlDetails']?.find( - (item) => item.SettingIdName?.toLowerCase() === 'itemwiselimit' && item?.SettingValue === 'Y'); - const maxQtyLimit = itemWiseLimitPreferenece?.SettingCount || overAllLimitPreferenece?.SettingCount || null; + const overAllLimitPreferenece = preferenceDatas?.[0]?.[ + 'SettingDtlDetails' + ]?.find( + (item) => + item.SettingIdName?.toLowerCase() === 'overalllimit' && + item?.SettingValue === 'Y' + ); + const itemWiseLimitPreferenece = preferenceDatas?.[0]?.[ + 'SettingDtlDetails' + ]?.find( + (item) => + item.SettingIdName?.toLowerCase() === 'itemwiselimit' && + item?.SettingValue === 'Y' + ); + const maxQtyLimit = + itemWiseLimitPreferenece?.SettingCount || + overAllLimitPreferenece?.SettingCount || + null; const preferenceOffer = preferenceDatas?.[0]?.['SettingDtlDetails']?.find( (item) => item.SettingIdName === 'Offer' @@ -86,7 +100,7 @@ const BSBillingEditQuantity = (props) => { ); console.log(preferenceshortcutkey, 'preferenceshortcutkey'); const [PriceChangeaccess, setPriceChangeaccess] = useState(true); - + const selectStatuscust = useSelector(GlobalfocusStatusCust); const [ConfigDataList, setConfigDataList] = useState([]); const [messageType, setMessageType] = useState(null); const [messageData, setMessageData] = useState(null); @@ -115,7 +129,7 @@ const BSBillingEditQuantity = (props) => { price: 'Price', quantity: 'qty', Parcel: 'Parcel', - weightAmount: 'weightAmount' + weightAmount: 'weightAmount', }; const [RadioBtnSelection, setRadioBtnSelection] = useState(() => { if (props?.shortKeyMethod && SHORTKEY_TO_RADIO[props.shortKeyMethod]) { @@ -343,7 +357,6 @@ const BSBillingEditQuantity = (props) => { }; const calculateOverAllQty = (item, filterItems) => { - if (!item) return 0; const totalUsedQty = @@ -446,11 +459,18 @@ const BSBillingEditQuantity = (props) => { ); const editedProduct = CartOrderDetails[editedProductIndex]; - if ((overAllLimitPreferenece || itemWiseLimitPreferenece) && maxQtyLimit) { + if ( + (overAllLimitPreferenece || itemWiseLimitPreferenece) && + maxQtyLimit + ) { if (overAllLimitPreferenece) { - const calculatedOverAllQty = calculateOverAllQtyLimit(CartOrderDetails?.filter((_, index) => index !== editedProductIndex)); - if ((calculatedOverAllQty + editedQty) > maxQtyLimit) { - setMessageData(`Overall Quantity Limit Exceeds than ${maxQtyLimit}`); + const calculatedOverAllQty = calculateOverAllQtyLimit( + CartOrderDetails?.filter((_, index) => index !== editedProductIndex) + ); + if (calculatedOverAllQty + editedQty > maxQtyLimit) { + setMessageData( + `Overall Quantity Limit Exceeds than ${maxQtyLimit}` + ); setMessageType('warning'); return; } @@ -722,11 +742,12 @@ const BSBillingEditQuantity = (props) => { newPrice, overrideQty = null ) => { - const editedQty = overrideQty !== null - ? overrideQty - : props?.Productdata?.ScaleType !== 'weight' - ? parseInt(Quantity) - : props.Productdata.OrderQty; + const editedQty = + overrideQty !== null + ? overrideQty + : props?.Productdata?.ScaleType !== 'weight' + ? parseInt(Quantity) + : props.Productdata.OrderQty; const addFirst = BillOrderPre === 'Y'; const isExistsInFreeProdList = FreeProdList?.find( (product) => @@ -750,7 +771,7 @@ const BSBillingEditQuantity = (props) => { return ( cartItem?.InwardDtlId === editedProduct?.InwardDtlId && cartItem?.OfferMessage?.[0]?.OfferId === - editedProduct?.OfferMessage?.[0]?.OfferId && + editedProduct?.OfferMessage?.[0]?.OfferId && cartItem?.OfferMode === editedProduct?.OfferMode && cartItem?.BookingTypeName !== editedProduct?.BookingTypeName ); @@ -884,7 +905,7 @@ const BSBillingEditQuantity = (props) => { cartItem?.InwardDtlId === editedProduct?.InwardDtlId && cartItem?.OrderRate === editedProduct?.OrderRate && cartItem?.BookingTypeName !== - editedProduct?.BookingTypeName && + editedProduct?.BookingTypeName && !cartItem?.OfferMode && cartItem?.Offer === 0 ); @@ -898,7 +919,7 @@ const BSBillingEditQuantity = (props) => { cartItem?.InwardDtlId === editedProduct?.InwardDtlId && cartItem?.OrderRate === editedProduct?.OrderRate && cartItem?.BookingTypeName !== - editedProduct?.BookingTypeName && + editedProduct?.BookingTypeName && cartItem?.OfferMode === editedProduct?.OfferMode && cartItem?.Offer > 0 ); @@ -1031,7 +1052,7 @@ const BSBillingEditQuantity = (props) => { ) ) && product?.OfferId === - editedProduct?.OfferMessage?.[0]?.OfferId && + editedProduct?.OfferMessage?.[0]?.OfferId && product?.OfferMode === editedProduct?.OfferMode ) { const freeQty = @@ -1064,7 +1085,7 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - editedProduct?.OfferMessage?.[0]?.OfferId && + editedProduct?.OfferMessage?.[0]?.OfferId && offerProduct?.OfferMode === editedProduct?.OfferMode; if (hasMatchingFreeProduct && isMatchingOffer) { @@ -1147,7 +1168,7 @@ const BSBillingEditQuantity = (props) => { ) ) && product?.OfferId === - editedProduct?.OfferMessage?.[0]?.OfferId && + editedProduct?.OfferMessage?.[0]?.OfferId && product?.OfferMode === editedProduct?.OfferMode ) { return { @@ -1177,7 +1198,7 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - editedProduct?.OfferMessage?.[0]?.OfferId && + editedProduct?.OfferMessage?.[0]?.OfferId && offerProduct?.OfferMode === editedProduct?.OfferMode; if (hasMatchingFreeProduct && isMatchingOffer) { @@ -1364,7 +1385,7 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - editedProduct?.OfferMessage?.[0]?.OfferId && + editedProduct?.OfferMessage?.[0]?.OfferId && offerProduct?.OfferMode === editedProduct?.OfferMode; if (hasMatchingFreeProduct && isMatchingOffer) { @@ -1466,7 +1487,7 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - editedProduct?.OfferMessage?.[0]?.OfferId && + editedProduct?.OfferMessage?.[0]?.OfferId && offerProduct?.OfferMode === editedProduct?.OfferMode; if (hasMatchingFreeProduct && isMatchingOffer) { @@ -1620,7 +1641,7 @@ const BSBillingEditQuantity = (props) => { ) && cartItem?.Offer && isFreeProductApplicable?.OfferId === - cartItem?.OfferMessage?.[0]?.OfferId + cartItem?.OfferMessage?.[0]?.OfferId ); } ); @@ -1909,11 +1930,11 @@ const BSBillingEditQuantity = (props) => { product?.ProdId === editedProduct?.ProdId && product?.InwardDtlId === editedProduct?.InwardDtlId && product?.OfferId === - (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || - otherBookingTypeProduct?.OfferMessage?.[0]?.OfferId) && + (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || + otherBookingTypeProduct?.OfferMessage?.[0]?.OfferId) && product?.OfferMode === - (sameBookingTypeProduct?.OfferMode || - otherBookingTypeProduct?.OfferMode) + (sameBookingTypeProduct?.OfferMode || + otherBookingTypeProduct?.OfferMode) ) { return { ...product, @@ -1947,11 +1968,11 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || - otherBookingTypeProduct?.OfferMessage?.[0]?.OfferId) && + (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || + otherBookingTypeProduct?.OfferMessage?.[0]?.OfferId) && offerProduct?.OfferMode === - (sameBookingTypeProduct?.OfferMode || - otherBookingTypeProduct?.OfferMode); + (sameBookingTypeProduct?.OfferMode || + otherBookingTypeProduct?.OfferMode); if (hasMatchingFreeProduct && isMatchingOffer) { // Get loyalty points from the matching free product @@ -2092,7 +2113,7 @@ const BSBillingEditQuantity = (props) => { cartItem?.Offer > 0 && isFreeProductApplicable?.OfferMode === cartItem?.OfferMode && isFreeProductApplicable?.OfferId === - cartItem?.OfferMessage?.[0]?.OfferId + cartItem?.OfferMessage?.[0]?.OfferId ); } ); @@ -2195,11 +2216,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === otherBookingTypeProduct.ProdId && cartItem.InwardDtlId === - otherBookingTypeProduct.InwardDtlId && + otherBookingTypeProduct.InwardDtlId && cartItem.BookingTypeName === - otherBookingTypeProduct.BookingTypeName && + otherBookingTypeProduct.BookingTypeName && cartItem.OrderRate === - otherBookingTypeProduct.OrderRate && + otherBookingTypeProduct.OrderRate && cartItem.OfferMode && cartItem.Offer > 0 ) { @@ -2270,12 +2291,12 @@ const BSBillingEditQuantity = (props) => { product?.ProdId === editedProduct?.ProdId && product?.InwardDtlId === editedProduct?.InwardDtlId && product?.OfferId === - (sameBookingTypeFreeProduct?.OfferMessage?.[0]?.OfferId || - otherBookingTypeFreeProduct?.OfferMessage?.[0] - ?.OfferId) && + (sameBookingTypeFreeProduct?.OfferMessage?.[0]?.OfferId || + otherBookingTypeFreeProduct?.OfferMessage?.[0] + ?.OfferId) && product?.OfferMode === - (sameBookingTypeFreeProduct?.OfferMode || - otherBookingTypeFreeProduct?.OfferMode) + (sameBookingTypeFreeProduct?.OfferMode || + otherBookingTypeFreeProduct?.OfferMode) ) { return { ...product, @@ -2309,13 +2330,13 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - (sameBookingTypeFreeProduct?.OfferMessage?.[0] - ?.OfferId || - otherBookingTypeFreeProduct?.OfferMessage?.[0] - ?.OfferId) && + (sameBookingTypeFreeProduct?.OfferMessage?.[0] + ?.OfferId || + otherBookingTypeFreeProduct?.OfferMessage?.[0] + ?.OfferId) && offerProduct?.OfferMode === - (sameBookingTypeFreeProduct?.OfferMode || - otherBookingTypeFreeProduct?.OfferMode); + (sameBookingTypeFreeProduct?.OfferMode || + otherBookingTypeFreeProduct?.OfferMode); if (hasMatchingFreeProduct && isMatchingOffer) { // Get loyalty points from the matching free product @@ -2397,11 +2418,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === sameBookingTypeProduct.ProdId && cartItem.InwardDtlId === - sameBookingTypeProduct.InwardDtlId && + sameBookingTypeProduct.InwardDtlId && cartItem.BookingTypeName === - sameBookingTypeProduct.BookingTypeName && + sameBookingTypeProduct.BookingTypeName && cartItem.OrderRate === - sameBookingTypeProduct.OrderRate && + sameBookingTypeProduct.OrderRate && cartItem.OfferMode && cartItem.Offer > 0 ) { @@ -2454,11 +2475,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === sameBookingTypeProduct.ProdId && cartItem.InwardDtlId === - sameBookingTypeProduct.InwardDtlId && + sameBookingTypeProduct.InwardDtlId && cartItem.BookingTypeName === - sameBookingTypeProduct.BookingTypeName && + sameBookingTypeProduct.BookingTypeName && cartItem.OrderRate === - sameBookingTypeProduct.OrderRate && + sameBookingTypeProduct.OrderRate && cartItem.OfferMode && cartItem.Offer > 0 ) { @@ -2547,11 +2568,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === otherBookingTypeProduct.ProdId && cartItem?.InwardDtlId === - otherBookingTypeProduct.InwardDtlId && + otherBookingTypeProduct.InwardDtlId && cartItem?.BookingTypeName === - otherBookingTypeProduct.BookingTypeName && + otherBookingTypeProduct.BookingTypeName && cartItem?.OrderRate === - otherBookingTypeProduct.OrderRate && + otherBookingTypeProduct.OrderRate && cartItem?.OfferMode && cartItem?.Offer > 0 ) { @@ -2580,11 +2601,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === otherBookingTypeProduct.ProdId && cartItem.InwardDtlId === - otherBookingTypeProduct.InwardDtlId && + otherBookingTypeProduct.InwardDtlId && cartItem.BookingTypeName === - otherBookingTypeProduct.BookingTypeName && + otherBookingTypeProduct.BookingTypeName && cartItem.OrderRate === - otherBookingTypeProduct.OrderRate && + otherBookingTypeProduct.OrderRate && cartItem.OfferMode && cartItem.Offer > 0 ) { @@ -2614,11 +2635,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === otherBookingTypeProduct.ProdId && cartItem.InwardDtlId === - otherBookingTypeProduct.InwardDtlId && + otherBookingTypeProduct.InwardDtlId && cartItem.BookingTypeName === - otherBookingTypeProduct.BookingTypeName && + otherBookingTypeProduct.BookingTypeName && cartItem.OrderRate === - otherBookingTypeProduct.OrderRate && + otherBookingTypeProduct.OrderRate && cartItem.OfferMode && cartItem.Offer > 0 ) { @@ -2717,12 +2738,12 @@ const BSBillingEditQuantity = (props) => { product?.ProdId === editedProduct?.ProdId && product?.InwardDtlId === editedProduct?.InwardDtlId && product?.OfferId === - (sameBookingTypeFreeProduct?.OfferMessage?.[0]?.OfferId || - otherBookingTypeFreeProduct?.OfferMessage?.[0] - ?.OfferId) && + (sameBookingTypeFreeProduct?.OfferMessage?.[0]?.OfferId || + otherBookingTypeFreeProduct?.OfferMessage?.[0] + ?.OfferId) && product?.OfferMode === - (sameBookingTypeFreeProduct?.OfferMode || - otherBookingTypeFreeProduct?.OfferMode) + (sameBookingTypeFreeProduct?.OfferMode || + otherBookingTypeFreeProduct?.OfferMode) ) { return { ...product, @@ -2756,12 +2777,12 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || - otherBookingTypeProduct?.OfferMessage?.[0] - ?.OfferId) && + (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || + otherBookingTypeProduct?.OfferMessage?.[0] + ?.OfferId) && offerProduct?.OfferMode === - (sameBookingTypeProduct?.OfferMode || - otherBookingTypeProduct?.OfferMode); + (sameBookingTypeProduct?.OfferMode || + otherBookingTypeProduct?.OfferMode); if (hasMatchingFreeProduct && isMatchingOffer) { // Get loyalty points from the matching free product @@ -2840,11 +2861,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === sameBookingTypeProduct.ProdId && cartItem.InwardDtlId === - sameBookingTypeProduct.InwardDtlId && + sameBookingTypeProduct.InwardDtlId && cartItem.BookingTypeName === - sameBookingTypeProduct.BookingTypeName && + sameBookingTypeProduct.BookingTypeName && cartItem.OrderRate === - sameBookingTypeProduct.OrderRate && + sameBookingTypeProduct.OrderRate && cartItem.OfferMode && cartItem.Offer > 0 ) { @@ -2903,11 +2924,11 @@ const BSBillingEditQuantity = (props) => { if ( cartItem.ProdId === otherBookingTypeProduct.ProdId && cartItem.InwardDtlId === - otherBookingTypeProduct.InwardDtlId && + otherBookingTypeProduct.InwardDtlId && cartItem.BookingTypeName === - otherBookingTypeProduct.BookingTypeName && + otherBookingTypeProduct.BookingTypeName && cartItem.OrderRate === - otherBookingTypeProduct.OrderRate && + otherBookingTypeProduct.OrderRate && cartItem.OfferMode && cartItem.Offer > 0 ) { @@ -2979,12 +3000,12 @@ const BSBillingEditQuantity = (props) => { product?.ProdId === editedProduct?.ProdId && product?.InwardDtlId === editedProduct?.InwardDtlId && product?.OfferId === - (sameBookingTypeFreeProduct?.OfferMessage?.[0]?.OfferId || - otherBookingTypeFreeProduct?.OfferMessage?.[0] - ?.OfferId) && + (sameBookingTypeFreeProduct?.OfferMessage?.[0]?.OfferId || + otherBookingTypeFreeProduct?.OfferMessage?.[0] + ?.OfferId) && product?.OfferMode === - (sameBookingTypeFreeProduct?.OfferMode || - otherBookingTypeFreeProduct?.OfferMode) + (sameBookingTypeFreeProduct?.OfferMode || + otherBookingTypeFreeProduct?.OfferMode) ) { return { ...product, @@ -3018,12 +3039,12 @@ const BSBillingEditQuantity = (props) => { // Also check main offer conditions const isMatchingOffer = offerProduct?.OfferId === - (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || - otherBookingTypeProduct?.OfferMessage?.[0] - ?.OfferId) && + (sameBookingTypeProduct?.OfferMessage?.[0]?.OfferId || + otherBookingTypeProduct?.OfferMessage?.[0] + ?.OfferId) && offerProduct?.OfferMode === - (sameBookingTypeProduct?.OfferMode || - otherBookingTypeProduct?.OfferMode); + (sameBookingTypeProduct?.OfferMode || + otherBookingTypeProduct?.OfferMode); if (hasMatchingFreeProduct && isMatchingOffer) { // Get loyalty points from the matching free product @@ -3178,17 +3199,17 @@ const BSBillingEditQuantity = (props) => { changeOrderCardDetails( CartOrderDetails?.map((i) => i?.InwardDtlId == updatedProduct?.InwardDtlId && - i?.BookingTypeName == updatedProduct?.BookingTypeName && - i?.localId === updatedProduct?.localId + i?.BookingTypeName == updatedProduct?.BookingTypeName && + i?.localId === updatedProduct?.localId ? { - ...updatedProduct, - Offer: 0, - OfferType: - updatedProduct?.Type === 'C' - ? updatedProduct?.OfferType - : null, - OfferMessage: null, - } + ...updatedProduct, + Offer: 0, + OfferType: + updatedProduct?.Type === 'C' + ? updatedProduct?.OfferType + : null, + OfferMessage: null, + } : i ) ) @@ -3224,10 +3245,10 @@ const BSBillingEditQuantity = (props) => { ((c?.OfferModeType && c?.OfferMode === 'B' ? true : c?.OfferMode !== 'B') && - c?.OfferMode !== 'P' && - c?.OfferMode !== 'C' && - c?.OfferMode !== 'O' && - c?.OfferMode !== 'L' + c?.OfferMode !== 'P' && + c?.OfferMode !== 'C' && + c?.OfferMode !== 'O' && + c?.OfferMode !== 'L' ? true : c?.Offer === 0); @@ -3481,16 +3502,21 @@ const BSBillingEditQuantity = (props) => { ); const editedProduct = { ...CartOrderDetails[editedProductIndex], - OrderQty: qty + OrderQty: qty, }; - await handleEditQuantity(editedProduct, editedProductIndex, editedProduct.OrderRate, qty); + await handleEditQuantity( + editedProduct, + editedProductIndex, + editedProduct.OrderRate, + qty + ); props.handleEditQuantityCancel(); setClearQuantity(false); }; const isKg = props?.Productdata?.Size == 1 && - ["KG", "KGS"].includes(props?.Productdata?.UomName?.toUpperCase()); + ['KG', 'KGS'].includes(props?.Productdata?.UomName?.toUpperCase()); return (
+ Get your order bill on your mobile
+ via SMS / Whatsapp
+
setNumberFun(1)}>1
+setNumberFun(2)}>2
+setNumberFun(3)}>3
+setNumberFun(4)}>4
+setNumberFun(5)}>5
+setNumberFun(6)}>6
+setNumberFun(7)}>7
+setNumberFun(8)}>8
+setNumberFun(9)}>9
+
+
setNumberFun(0)}>0
+ +handleOtpNumber(1)}>1
+handleOtpNumber(2)}>2
+handleOtpNumber(3)}>3
+handleOtpNumber(4)}>4
+handleOtpNumber(5)}>5
+handleOtpNumber(6)}>6
+handleOtpNumber(7)}>7
+handleOtpNumber(8)}>8
+handleOtpNumber(9)}>9
+
+
handleOtpNumber(0)}>0
+ +Select Payment Method
+ {console.log('selectedOption', selectedPaymentOption)} ++ PAY AT THE COUNTER +
+UPI
+
+
| # | +# | ) - : SLNO &&# | } + : SLNO &&# | } {GlobaldummyData ? GlobalItem &&Item | : Item &&Item | } @@ -651,7 +651,7 @@ const Printstyle4 = ({ ? GlobalQuantity && (|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {chunkIndex * chunkSize + index + 1} | - } + : SLNO && ( ++ {chunkIndex * chunkSize + index + 1} + | + )} {/* ITEM COLUMN */} {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item && ( -
- {/* Product Name */}
- {item?.ProdName}
+ |
+ {/* Product Name */}
+ {item?.ProdName}
- {/* Package OR Size */}
- {packageList.length > 0 ? (
-
- {packageList.map((pkg, i) => (
-
- ) : (
-
- {pkg.ParcelCount} PCS {pkg.ParcelQty} PACK ({pkg.ParcelType})
-
- ))}
-
- {(UomPrint?.SettingValue === 'Y'
- ? (item?.Size || '1') +
- (item?.SinglePc === 'Y'
- ? ' PCS'
- : item?.Type !== 'C'
- ? ` ${item?.UomName}`
- : ' COMBO')
- : '')}
- {item?.BrandName || ""}
-
- )}
+ {/* Package OR Size */}
+ {packageList.length > 0 ? (
+
+ {packageList.map((pkg, i) => (
+
+ ) : (
+
+ {pkg.ParcelCount} PCS{' '}
+ {pkg.ParcelQty} PACK (
+ {pkg.ParcelType})
+
+ ))}
+
+ {UomPrint?.SettingValue === 'Y'
+ ? (item?.Size || '1') +
+ (item?.SinglePc === 'Y'
+ ? ' PCS'
+ : item?.Type !== 'C'
+ ? ` ${item?.UomName}`
+ : ' COMBO')
+ : ''}
+ {item?.BrandName || ''}
+
+ )}
- {/* Serials */}
- {serials.map((s, i) => (
- {s}
- ))}
+ {/* Serials */}
+ {serials.map((s, i) => (
+ {s}
+ ))}
- {/* IMEIs */}
- {imeis.map((iVal, i) => (
- {iVal}
- ))}
+ {/* IMEIs */}
+ {imeis.map((iVal, i) => (
+ {iVal}
+ ))}
- {/* Description from first identifier */}
- {descriptions[0] && (
- {descriptions[0]}
- )}
- |
- )
- }
+ {/* Description from first identifier */}
+ {descriptions[0] && (
+ + {(GlobaldummyData + ? GlobalQuantity + : Quantity) && ( + | {item?.SalesQty} | )} {/* HSN */} - {(GlobaldummyData ? GlobalHsnCode : HsnCode) && ( -+ {(GlobaldummyData + ? GlobalHsnCode + : HsnCode) && ( + | {item?.HSN} | )} {/* MRP */} {(GlobaldummyData ? GlobalMRP : MRP) && ( -- {item?.SinglePc === "Y" ? item?.Rate : item?.MRP} + | + {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} | )} {/* Discount */} - {(GlobaldummyData ? GlobalDiscount : Discount) && ( -- {item?.Type !== "C" + {(GlobaldummyData + ? GlobalDiscount + : Discount) && ( + | + {item?.Type !== 'C' ? item?.OfferAmt || 0 : item?.OfferValue || 0} | @@ -915,20 +930,21 @@ const Printstyle4 = ({ {/* Rate */} {(GlobaldummyData ? GlobalRate : Rate) && ( -+ | {item?.Rate} | )} {/* Amount */} {(GlobaldummyData ? GlobalAmount : Amount) && ( -- {item?.Type !== "C" - ? (item?.TotalAmt || 0) - (item?.OfferAmt || 0) - : (item?.TotalAmt || 0) - (item?.OfferValue || 0)} + | + {item?.Type !== 'C' + ? (item?.TotalAmt || 0) - + (item?.OfferAmt || 0) + : (item?.TotalAmt || 0) - + (item?.OfferValue || 0)} | )} -{index + 1} : SLNO && ( - | - {chunkIndex * chunkSize + index + 1} - | - )} ++ {chunkIndex * chunkSize + index + 1} + | + )} {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item && ( -
- {item?.ProdName}
- {UomPrint?.SettingValue === 'Y' &&
-
- ({item?.Size ? item?.Size : '1'}{' '}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.Type != 'C'
- ? item?.UomName
- : 'COMBO'}
- )
-
- }
- |
- )}
+
+ {item?.ProdName}
+ {UomPrint?.SettingValue === 'Y' && (
+
+ ({item?.Size ? item?.Size : '1'}{' '}
+ {item?.SinglePc == 'Y'
+ ? 'PCS'
+ : item?.Type != 'C'
+ ? item?.UomName
+ : 'COMBO'}
+ )
+
+ )}
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
- - {item?.SalesQty} - | - ) ++ {item?.SalesQty} + | + ) : Quantity && ( -- {item?.SalesQty} - | - )} ++ {item?.SalesQty} + | + )} {GlobaldummyData ? GlobalHsnCode && ( -- {item?.HSN} - | - ) ++ {item?.HSN} + | + ) : HsnCode && ( -- {item?.HSN} - | - )} ++ {item?.HSN} + | + )} {GlobaldummyData ? GlobalMRP && ( -- {item?.MRP} - | - ) ++ {item?.MRP} + | + ) : MRP && ( -- {item?.SinglePc === 'Y' - ? item?.Rate - : item?.MRP} - | - )} ++ {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} + | + )} {GlobaldummyData ? GlobalDiscount && ( -- {item.discount} - | - ) ++ {item.discount} + | + ) : Discount && ( -- {item?.Type != 'C' - ? item?.OfferAmt || 0 - : item?.OfferValue || 0} - | - )} ++ {item?.Type != 'C' + ? item?.OfferAmt || 0 + : item?.OfferValue || 0} + | + )} {GlobaldummyData ? GlobalTax && ( -- {item?.ProdTaxPercentage || 0} - | - ) ++ {item?.ProdTaxPercentage || 0} + | + ) : Tax && - table2Data?.OrderType !== 'E' && ( -- {item?.ProdTaxPercentage || 0} - | - )} + table2Data?.OrderType !== 'E' && ( ++ {item?.ProdTaxPercentage || 0} + | + )} {GlobaldummyData ? GlobalRate && ( -- {item?.Rate} - | - ) ++ {item?.Rate} + | + ) : Rate && ( -- {item?.Rate} - | - )} ++ {item?.Rate} + | + )} {GlobaldummyData ? GlobalAmount && ( -- {item?.TotalAmt} - | - ) ++ {item?.TotalAmt} + | + ) : Amount && ( -- {' '} - {item?.Type != 'C' - ? item?.TotalAmt - item?.OfferAmt || 0 - : item?.TotalAmt - item?.OfferValue || - 0} - | - )} ++ {' '} + {item?.Type != 'C' + ? item?.TotalAmt - item?.OfferAmt || 0 + : item?.TotalAmt - item?.OfferValue || + 0} + | + )} ); })} @@ -1281,64 +1298,40 @@ const Printstyle4 = ({ : Number(table2Data?.NetAmount).toFixed(2)} - {/*
| + | Dis{' '} | ) @@ -3418,18 +3466,18 @@ const Printstyle4 = ({ ) : Rate && ( -- Rate + | + Amt | )} {GlobaldummyData ? GlobalAmount && ( -+ | Amt | ) : Amount && ( -+ | Amt | )} @@ -3457,212 +3505,246 @@ const Printstyle4 = ({ {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item && ( -
- {item?.ProdName}
+ |
+ {item?.ProdName}
- {/* Serial Numbers */}
- {item?.ProductIdentifierDtls
- ?.filter(d => d.SerialNumber)
- ?.map((d, i) => (
+ {/* Serial Numbers */}
+ {item?.ProductIdentifierDtls?.filter(
+ (d) => d.SerialNumber
+ )?.map((d, i) => (
{d.SerialNumber}
))}
- {/* IMEI Numbers */}
- {item?.ProductIdentifierDtls
- ?.filter(d => d.IMEI1 || d.IMEI2)
- ?.map((d, i) => (
+ {/* IMEI Numbers */}
+ {item?.ProductIdentifierDtls?.filter(
+ (d) => d.IMEI1 || d.IMEI2
+ )?.map((d, i) => (
- {[d.IMEI1, d.IMEI2].filter(Boolean).join(", ")}
+ {[d.IMEI1, d.IMEI2]
+ .filter(Boolean)
+ .join(', ')}
))}
- {/* Description from first identifier */}
- {item?.ProductIdentifierDtls?.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2)?.Description && (
-
- {item.ProductIdentifierDtls.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2).Description}
-
- )}
- |
- )}
+ {/* Description from first identifier */}
+ {item?.ProductIdentifierDtls?.find(
+ (d) =>
+ d.SerialNumber || d.IMEI1 || d.IMEI2
+ )?.Description && (
+ - {item?.SalesQty} + |
+ {item?.SalesQty}
-
-
- {/* Package Details */}
- {PackageDetails?.filter(pkg => pkg.ProdId === item.ProdId).length > 0 ? (
-
- {PackageDetails
- ?.filter(pkg => pkg.ProdId === item.ProdId)
- ?.map((pkg, index) => (
+
+ {/* Package Details */}
+ {PackageDetails?.filter(
+ (pkg) => pkg.ProdId === item.ProdId
+ ).length > 0 ? (
+
-
+ {PackageDetails?.filter(
+ (pkg) => pkg.ProdId === item.ProdId
+ )?.map((pkg, index) => (
- ) : (
-
- {pkg.ParcelCount} PCS {pkg.ParcelQty} PACK ({pkg.ParcelType})
+ {pkg.ParcelCount} PCS{' '}
+ {pkg.ParcelQty} PACK (
+ {pkg.ParcelType})
))}
- {/* Serial */}
- {item?.ProductIdentifierDtls
- ?.filter(d => d.SerialNumber)
- ?.map((d, i) => (
+ {/* Serial */}
+ {item?.ProductIdentifierDtls?.filter(
+ (d) => d.SerialNumber
+ )?.map((d, i) => (
{d.SerialNumber}
))}
- {/* IMEI */}
- {item?.ProductIdentifierDtls
- ?.filter(d => d.IMEI1 || d.IMEI2)
- ?.map((d, i) => (
+ {/* IMEI */}
+ {item?.ProductIdentifierDtls?.filter(
+ (d) => d.IMEI1 || d.IMEI2
+ )?.map((d, i) => (
- {[d.IMEI1, d.IMEI2].filter(Boolean).join(', ')}
+ {[d.IMEI1, d.IMEI2]
+ .filter(Boolean)
+ .join(', ')}
))}
- {/* Description from first identifier */}
- {item?.ProductIdentifierDtls?.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2)?.Description && (
-
- {item.ProductIdentifierDtls.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2).Description}
-
- )}
-
-
- {UomPrint?.SettingValue === 'Y' && (
- <>({item?.Size || '1'}) {item?.SinglePc === 'Y' ? 'PCS' : item?.Type !== 'C' ? item?.UomName : 'COMBO'} >
- )}
- {item?.BrandName || ""}
-
- )}
-
- |
- )
+ {/* Description from first identifier */}
+ {item?.ProductIdentifierDtls?.find(
+ (d) =>
+ d.SerialNumber ||
+ d.IMEI1 ||
+ d.IMEI2
+ )?.Description && (
+ - {item?.SalesQty} - | - )} ++ {item?.SalesQty} + | + )} {GlobaldummyData ? GlobalHsnCode && ( -- {item?.HSN} - | - ) ++ {item?.HSN} + | + ) : HsnCode && ( -- {item?.HSN} - | - )} ++ {item?.HSN} + | + )} {GlobaldummyData ? GlobalMRP && ( -- {item?.MRP} - | - ) ++ {item?.MRP} + | + ) : MRP && ( -- {item?.SinglePc === 'Y' - ? item?.Rate - : item?.MRP} - {GlobaldummyData - ? GlobalTax && ( - | - {/* */} - - GST:{' '} - {' '} - {item?.ProdTaxPercentage || 0} - | - ) - : Tax == true && - table2Data?.OrderType !== 'E' && ( -- {/* */} - - GST:{' '} - {' '} - {item?.ProdTaxPercentage || 0} - | - )} - - )} ++ {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} + {GlobaldummyData + ? GlobalTax && ( + | + {/* */} + + GST:{' '} + {' '} + {item?.ProdTaxPercentage || 0} + | + ) + : Tax == true && + table2Data?.OrderType !== 'E' && ( ++ {/* */} + + GST:{' '} + {' '} + {item?.ProdTaxPercentage || 0} + | + )} + + )} {GlobaldummyData ? GlobalDiscount && ( -- {item.discount} - | - ) ++ {item.discount} + | + ) : Discount && ( -- {item?.Type != 'C' - ? item?.OfferAmt || 0 - : item?.OfferValue || 0} - | - )} ++ {item?.Type != 'C' + ? item?.OfferAmt || 0 + : item?.OfferValue || 0} + | + )} {GlobaldummyData ? GlobalRate && ( -- {item?.Rate} - | - ) ++ {item?.Rate} + | + ) : Rate && ( -- {item?.Rate} - | - )} ++ {item?.Rate} + | + )} {GlobaldummyData ? GlobalAmount && ( -- {item?.TotalAmt} - | - ) ++ {item?.TotalAmt} + | + ) : Amount && ( -- {' '} - {item?.Type != 'C' - ? item?.TotalAmt - item?.OfferAmt || 0 - : item?.TotalAmt - item?.OfferValue || 0} - | - )} ++ {' '} + {item?.Type != 'C' + ? item?.TotalAmt - item?.OfferAmt || 0 + : item?.TotalAmt - item?.OfferValue || 0} + | + )} ); } @@ -3697,48 +3779,48 @@ const Printstyle4 = ({ : Item &&Item | } {GlobaldummyData ? GlobalQuantity && ( -- Qty - | - ) ++ Qty + | + ) : Quantity && ( -- Qty - | - )} ++ Qty + | + )} {GlobaldummyData ? GlobalHsnCode && ( -- HSN - | - ) ++ HSN + | + ) : HsnCode && ( -- HSN - | - )} ++ HSN + | + )} {GlobaldummyData ? GlobalMRP && ( -- MRP - | - ) ++ MRP + | + ) : MRP && ( -- MRP - | - )} ++ MRP + | + )} {GlobaldummyData ? GlobalDiscount && ( -- Dis{' '} - | - ) ++ Dis{' '} + | + ) : Discount && ( -- Dis{' '} - | - )} ++ Dis{' '} + | + )} {/* {GlobaldummyData ? GlobalTax && (- Rate - | - ) ++ Rate + | + ) : Rate && ( -- Rate - | - )} ++ Rate + | + )} {GlobaldummyData ? GlobalAmount && ( -- Amt - | - ) ++ Amt + | + ) : Amount && ( -- Amt - | - )} ++ Amt + | + )} @@ -3807,159 +3889,160 @@ const Printstyle4 = ({ {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item && ( -
- {item?.ProdName}
- {(
- (item?.ProductIdentifierDtls
- ?.length > 0
- ? item?.ProductIdentifierDtls.filter(
- (items) => items.SerialNumber
- )
- .map(
- (a, index) =>
- ` ${a.SerialNumber}`
- )
- .join('')
- : '') +
- (item?.ProductIdentifierDtls
- ?.length > 0
- ? item?.ProductIdentifierDtls.filter(
- (item1) =>
- item1.IMEI1 || item1.IMEI2
- )
- .map((item2) => {
- const imei1 =
- item2.IMEI1 || '';
- const imei2 =
- item2.IMEI2 || '';
- return ` ${[imei1, imei2].filter(Boolean).join(',')}`;
- })
- .join('')
- : '')
- +
- (item?.ProductIdentifierDtls?.length > 0 &&
+ |
+ {item?.ProdName}
+ {(
+ (item?.ProductIdentifierDtls?.length > 0
+ ? item?.ProductIdentifierDtls.filter(
+ (items) => items.SerialNumber
+ )
+ .map(
+ (a, index) => ` ${a.SerialNumber}`
+ )
+ .join('')
+ : '') +
+ (item?.ProductIdentifierDtls?.length > 0
+ ? item?.ProductIdentifierDtls.filter(
+ (item1) =>
+ item1.IMEI1 || item1.IMEI2
+ )
+ .map((item2) => {
+ const imei1 = item2.IMEI1 || '';
+ const imei2 = item2.IMEI2 || '';
+ return ` ${[imei1, imei2].filter(Boolean).join(',')}`;
+ })
+ .join('')
+ : '') +
+ (item?.ProductIdentifierDtls?.length >
+ 0 &&
item?.ProductIdentifierDtls.find(
(item1) =>
- item1.IMEI1 || item1.IMEI2 || item1.SerialNumber
+ item1.IMEI1 ||
+ item1.IMEI2 ||
+ item1.SerialNumber
)?.Description
- ? ` ${item.ProductIdentifierDtls.find(
- (item1) =>
- item1.IMEI1 || item1.IMEI2 || item1.SerialNumber
- ).Description}`
- : '')
- ).trim()}
- |
- )}
+ ? ` ${
+ item.ProductIdentifierDtls.find(
+ (item1) =>
+ item1.IMEI1 ||
+ item1.IMEI2 ||
+ item1.SerialNumber
+ ).Description
+ }`
+ : '')
+ ).trim()}
+
+ )}
{GlobaldummyData
? GlobalQuantity && (
-
- {item?.SalesQty}
-
- ({item?.Size ? item?.Size : '1'}{' '}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.Type != 'C'
- ? item?.UomName
- : 'COMBO'}
- )
-
- |
- )
+
+ {item?.SalesQty}
+
+ ({item?.Size ? item?.Size : '1'}{' '}
+ {item?.SinglePc == 'Y'
+ ? 'PCS'
+ : item?.Type != 'C'
+ ? item?.UomName
+ : 'COMBO'}
+ )
+
+ |
+ )
: Quantity && (
-
- {item?.SalesQty}
- {UomPrint?.SettingValue === 'Y' &&
-
- ({item?.Size ? item?.Size : '1'}{' '}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.Type != 'C'
- ? item?.UomName
- : 'COMBO'}
- )
-
- }
- |
- )}
+
+ {item?.SalesQty}
+ {UomPrint?.SettingValue === 'Y' && (
+
+ ({item?.Size ? item?.Size : '1'}{' '}
+ {item?.SinglePc == 'Y'
+ ? 'PCS'
+ : item?.Type != 'C'
+ ? item?.UomName
+ : 'COMBO'}
+ )
+
+ )}
+ |
+ )}
{GlobaldummyData
? GlobalHsnCode && (
- - {item?.HSN} - | - ) ++ {item?.HSN} + | + ) : HsnCode && ( -- {item?.HSN} - | - )} ++ {item?.HSN} + | + )} {GlobaldummyData ? GlobalMRP && ( -- {item?.MRP} - | - ) ++ {item?.MRP} + | + ) : MRP && ( -- {item?.SinglePc === 'Y' - ? item?.Rate - : item?.MRP} - | - )} ++ {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} + | + )} {GlobaldummyData ? GlobalDiscount && ( -- {item.discount} - | - ) ++ {item.discount} + | + ) : Discount && ( -- {item?.Type != 'C' - ? item?.OfferAmt || 0 - : item?.OfferValue || 0} - | - )} ++ {item?.Type != 'C' + ? item?.OfferAmt || 0 + : item?.OfferValue || 0} + | + )} {GlobaldummyData ? GlobalTax && ( -- {item?.ProdTaxPercentage || 0} - | - ) ++ {item?.ProdTaxPercentage || 0} + | + ) : Tax == true && - table2Data?.OrderType !== 'E' && ( -- {item?.ProdTaxPercentage || 0} - | - )} + table2Data?.OrderType !== 'E' && ( ++ {item?.ProdTaxPercentage || 0} + | + )} {GlobaldummyData ? GlobalRate && ( -- {item?.Rate} - | - ) ++ {item?.Rate} + | + ) : Rate && ( -- {item?.Rate} - | - )} ++ {item?.Rate} + | + )} {GlobaldummyData ? GlobalAmount && ( -- {item?.TotalAmt} - | - ) ++ {item?.TotalAmt} + | + ) : Amount && ( -- {' '} - {item?.Type != 'C' - ? item?.TotalAmt - item?.OfferAmt || 0 - : item?.TotalAmt - item?.OfferValue || 0} - | - )} ++ {' '} + {item?.Type != 'C' + ? item?.TotalAmt - item?.OfferAmt || 0 + : item?.TotalAmt - item?.OfferValue || 0} + | + )} ); } @@ -3980,7 +4063,6 @@ const Printstyle4 = ({ > )}
|---|
| S.No | : - SLNO == true &&S.No | } + ? GlobalSlNo && ( ++ S.No + | + ) + : SLNO == true && ( ++ S.No + | + )} {GlobaldummyData - ? GlobalItem &&Item | : - Item == true &&Item | } - + ? GlobalItem && ( ++ Item + | + ) + : Item == true && ( ++ Item + | + )} {/* {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode == true &&HSN | } */} {GlobaldummyData - ? GlobalQuantity &&Qty | - : Quantity == true &&Qty | } + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity == true && ( ++ Qty + | + )} {/*UOM | UOM | */} @@ -901,80 +1204,110 @@ const DCInvoiceTemplate = ({ BranchName, BranchDetails, BranchAddress, BranchCit {GlobaldummyData ? GlobalAmount &&Amount | : Amount == true &&Amount | } */} -
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - {chunkIndex * chunkSize + idx + 1} - | - ) - : SLNO == true && ( -- {chunkIndex * chunkSize + idx + 1} - | - )} - {GlobaldummyData - ? GlobalItem &&{item?.ProdName} | - : Item == true && ( -
- {item?.ProdName}
-
- ({item?.Size ? item?.Size : "1"}{" "}
- {item?.SinglePc == "Y"
- ? "PCS"
- : item?.Type != "C"
- ? item?.UomName
- : "COMBO"}
- ) {item?.RequestVariantName ? item?.RequestVariantName : ""}
-
- {" "}
- {item?.BrandName !== null
- ? item?.BrandName
- : ""}
-
- {item?.ProductIdentifierDtls?.length > 0
- ? item?.ProductIdentifierDtls?.filter(
- (items) =>
- !(
- items.SerialNumber == "" ||
- items.SerialNumber == null
- )
- )?.map((a) => {
- return {a.SerialNumber} ;
- })
- : ""}{" "}
- {item?.ProductIdentifierDtls?.length > 0
- ? item?.ProductIdentifierDtls.filter(
- (item1) =>
- item1.IMEI1 !== "" || item1.IMEI2 !== ""
- )?.map((item2) => {
- const imei1 = item2.IMEI1 || "";
- const imei2 = item2.IMEI2 || "";
- return (
-
- {[imei1, imei2]
- .filter(Boolean)
- .join(",")}
-
- );
- })
- : ""}
- |
-
- )}
- {/* {GlobaldummyData
+ {((GlobaldummyData ? products : dataChunk) || []).map(
+ (item, idx) => (
+ ||||||||||||||
| + {chunkIndex * chunkSize + idx + 1} + | + ) + : SLNO == true && ( ++ {chunkIndex * chunkSize + idx + 1} + | + )} + {GlobaldummyData + ? GlobalItem && ( ++ {item?.ProdName} + | + ) + : Item == true && ( +
+ {item?.ProdName}
+
+ ({item?.Size ? item?.Size : '1'}{' '}
+ {item?.SinglePc == 'Y'
+ ? 'PCS'
+ : item?.Type != 'C'
+ ? item?.UomName
+ : 'COMBO'}
+ )
+ {item?.RequestVariantName
+ ? item?.RequestVariantName
+ : ''}
+
+ {' '}
+ {item?.BrandName !== null
+ ? item?.BrandName
+ : ''}
+
+ {item?.ProductIdentifierDtls?.length > 0
+ ? item?.ProductIdentifierDtls?.filter(
+ (items) =>
+ !(
+ items.SerialNumber == '' ||
+ items.SerialNumber == null
+ )
+ )?.map((a) => {
+ return {a.SerialNumber} ;
+ })
+ : ''}{' '}
+ {item?.ProductIdentifierDtls?.length > 0
+ ? item?.ProductIdentifierDtls.filter(
+ (item1) =>
+ item1.IMEI1 !== '' ||
+ item1.IMEI2 !== ''
+ )?.map((item2) => {
+ const imei1 = item2.IMEI1 || '';
+ const imei2 = item2.IMEI2 || '';
+ return (
+
+ {[imei1, imei2]
+ .filter(Boolean)
+ .join(',')}
+
+ );
+ })
+ : ''}
+ |
+ )}
+ {/* {GlobaldummyData
? GlobalHsnCode && (
{item?.HSN} @@ -985,18 +1318,27 @@ const DCInvoiceTemplate = ({ BranchName, BranchDetails, BranchAddress, BranchCit {item?.HSN} | )} */} - {GlobaldummyData - ? GlobalQuantity && ( -- {item?.SalesQty} - | - ) - : Quantity == true && ( -- {item?.Qty || item?.DispatchedQty} - | - )} - {/* {GlobaldummyData + {GlobaldummyData + ? GlobalQuantity && ( ++ {item?.SalesQty} + | + ) + : Quantity == true && ( ++ {item?.Qty || item?.DispatchedQty} + | + )} + {/* {GlobaldummyData ? GlobalMRP && ({item?.MRP} @@ -1039,11 +1381,9 @@ const DCInvoiceTemplate = ({ BranchName, BranchDetails, BranchAddress, BranchCit {item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | )} */} -
- Terms & Conditions -
-- Terms & Conditions -
-Certified that the particulars given above are true and correct.
-Company Name
- :"For" {companyName}
} -Authorised Signatory
- {GlobaldummyData ? GlobalSignature && ((Common Seal)
+ ++ Terms & Conditions +
++ Terms & Conditions +
++ Certified that the particulars given above are + true and correct. +
+Company Name
+ ) : ( ++ {' '} + "For" {companyName} +
+ )} ++ Authorised Signatory +
+ + {GlobaldummyData + ? GlobalSignature && ( +(Common Seal)
++ Notes : 10 days Return policy +
+ ++ {Notestext} +
+ + {/*Notes : 10 days Return policy
- -{Notestext}
- - {/*- Terms & Conditions -
-- Terms & Conditions -
-+ Terms & Conditions +
++ Terms & Conditions +
+Certified that the particulars given above are true and correct.
++ Certified that the particulars given above are true + and correct. +
Company Name
- :"For" {companyName}
} + {GlobaldummyData ? ( +Company Name
+ ) : ( +"For" {companyName}
+ )}Authorised Signatory
- {GlobaldummyData ? GlobalSignature && ((Common Seal)
Notes : 10 days Return policy
+ {GlobaldummyData + ? GlobalIsnotes && ( ++ Notes : 10 days Return policy +
-{Notestext}
++ {Notestext} +
- {/*|
{/* Placeholder for the fixed-position header */}
- |
|||||||||||||||||||||||||||||
|
-
-
-
|
+ Notes : 10 days Return policy +
++ {Notestext} +
++ Terms & Conditions +
++ Terms & Conditions +
+Notes : 10 days Return policy
- -{Notestext}
- -- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-+ Signature +
++ Signature +
++ Notes : 10 days Return policy +
- {GlobaldummyData ? GlobalIsnotes && - (Notes : 10 days Return policy
++ {Notestext} +
-{Notestext}
+- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-+ Terms & Conditions +
++ Terms & Conditions +
++ Signature +
++ Signature +
+E. & O.E
+E. & O.E
-| S.No | - : SLNO == true &&S.No | } + ? GlobalSlNo && ( ++ S.No + | + ) + : SLNO == true && ( ++ S.No + | + )} {GlobaldummyData ? GlobalItem &&Item | - : Item == true &&Item | } + : Item == true && ( +Item | + )} {/* {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode == true && (HSN | )} */} {GlobaldummyData - ? GlobalQuantity &&Qty | + ? GlobalQuantity && ( +Qty | + ) : Quantity == true && ( -Qty | - )} ++ Qty + | + )} {/* {GlobaldummyData ? GlobalMRP &&MRP | : MRP == true &&MRP | } @@ -414,38 +624,58 @@ const DCPrintStyle1 = ({ BranchName, BranchDetails, BranchAddress,
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {dataChunk?.map((item, index) => ( + | ||||||||||||||
| {index + 1} | ) - : SLNO == true && ( -+ : SLNO == true && ( + | {chunkIndex * chunkSize + index + 1} | )} - {GlobaldummyData - ? GlobalItem &&{item?.ProdName} | - : Item == true && ( + {GlobaldummyData + ? GlobalItem &&{item?.ProdName} | + : Item == true && (
{item?.ProdName}
- {!(item?.ProdVariantName || item?.RequestVariantName)?.toLowerCase()?.includes(
- 'variant'
- ) && Variant:{item?.ProdVariantName || item?.RequestVariantName} }
- {" "}
-
+ {!(
+ item?.ProdVariantName ||
+ item?.RequestVariantName
+ )
+ ?.toLowerCase()
+ ?.includes('variant') && (
+
+ Variant:
+ {item?.ProdVariantName ||
+ item?.RequestVariantName}{' '}
+
+ )}
+
|
)}
- {/* {GlobaldummyData
+ {/* {GlobaldummyData
? GlobalHsnCode && (
{item?.HSN} @@ -456,18 +686,18 @@ const DCPrintStyle1 = ({ BranchName, BranchDetails, BranchAddress, {item?.HSN} | )} */} - {GlobaldummyData - ? GlobalQuantity && ( -+ {GlobaldummyData + ? GlobalQuantity && ( + | {item?.SalesQty} | ) - : Quantity == true && ( -+ : Quantity == true && ( + | {item?.Qty || item?.DispatchedQty} | )} - {/* {GlobaldummyData + {/* {GlobaldummyData ? GlobalMRP && ({item?.MRP} @@ -511,9 +741,8 @@ const DCPrintStyle1 = ({ BranchName, BranchDetails, BranchAddress, | )} */} -
Extra Charges:{ExtraChargeTotal}
} */} - - - -Notes : 10 days Return policy
+ {GlobaldummyData + ? GlobalIsnotes && ( ++ Notes : 10 days Return policy +
-{Notestext}
++ {Notestext} +
-+ Terms & Conditions +
++ Terms & Conditions +
+- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-+ Signature +
++ Signature +
+| + S.No + | + ) + : SLNO && ( ++ S.No + | + )} + {GlobaldummyData + ? GlobalItem && ( +Item | + ) + : Item && ( +Item | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity && ( ++ Qty + | + )} +||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| S.No | : SLNO &&S.No | } - {GlobaldummyData ? GlobalItem &&Item | : Item &&Item | } - {/* {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode &&HSN | } */} - {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity &&Qty | } - {/* {GlobaldummyData ? GlobalMRP &&MRP | : MRP &&MRP | } - {GlobaldummyData ? GlobalAmount &&Amt | : Amount &&Amt | } - {GlobaldummyData ? GlobalDiscount &&Dis | : Discount &&Dis | } - {GlobaldummyData ? GlobalRate &&Rate | : Rate &&Rate | } */} -||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO &&{chunkIndex * chunkSize + index + 1} | } - {GlobaldummyData ? GlobalItem &&{item?.ProdName}({item?.Size + item?.UomName}) | : Item && -
- {item?.ProdName}
- {!(item?.ProdVariantName || item?.RequestVariantName)?.toLowerCase()?.includes('variant') && Variant:{item?.ProdVariantName || item?.RequestVariantName} }
- |
- }
- {/* {GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode &&{item?.HSN} | } */} - {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity &&{item?.Qty || item?.DispatchedQty} | } - {/* {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } + : {} + } + > + {GlobaldummyData + ? GlobalSlNo && ( ++ {index + 1} + | + ) + : SLNO && ( ++ {chunkIndex * chunkSize + index + 1} + | + )} + {GlobaldummyData + ? GlobalItem && ( ++ {item?.ProdName}( + {item?.Size + item?.UomName}) + | + ) + : Item && ( +
+ {item?.ProdName}
+ {!(
+ item?.ProdVariantName ||
+ item?.RequestVariantName
+ )
+ ?.toLowerCase()
+ ?.includes('variant') && (
+
+ Variant:
+ {item?.ProdVariantName ||
+ item?.RequestVariantName}{' '}
+
+ )}
+ |
+ )}
+ {/* {GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode &&{item?.HSN} | } */} + {GlobaldummyData + ? GlobalQuantity && ( ++ {item?.SalesQty} + | + ) + : Quantity && ( ++ {item?.Qty || item?.DispatchedQty} + | + )} + {/* {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | } {GlobaldummyData ? GlobalDiscount &&{item?.discount} | : Discount &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate &&{item?.Rate} | } */} -
Notes : 10 days Return policy
- -{Notestext}
- -- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-+ Notes : 10 days Return policy +
- > - ) -} +{Notestext}
-export default DCPrintstyle2 ++ Terms & Conditions +
++ Terms & Conditions +
++ Signature +
++ Signature +
+| S.No | ++ S.No + | ) : SLNO && (S.No | )} {GlobaldummyData ? ( (GlobalItem || GlobalQuantity) && ( -+ | {GlobaldummyData ? GlobalItem && 'ITEM /DES' : 'ITEM /DES'}{' '} | ) ) : ( -+ | {GlobaldummyData ? GlobalItem && 'ITEM /DES' : Item && 'ITEM /DES'}{' '} @@ -500,14 +585,22 @@ const DCPrintstyle6 = ({ {GlobaldummyData ? GlobalQuantity && ( | QTY | ) : Quantity && (QTY | @@ -557,7 +650,20 @@ const DCPrintstyle6 = ({|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO && ( @@ -749,6 +855,7 @@ const DCPrintstyle6 = ({ ? 'space-between' : 'flex-end', alignItems: 'center', + ...footerColorStyle, }} > {GlobaldummyData diff --git a/src/Pages/DeliveryChallan/DCPrintTemplates/DCThermalPrinter/DCPrintStyle7.jsx b/src/Pages/DeliveryChallan/DCPrintTemplates/DCThermalPrinter/DCPrintStyle7.jsx index e3eec62..8442e79 100644 --- a/src/Pages/DeliveryChallan/DCPrintTemplates/DCThermalPrinter/DCPrintStyle7.jsx +++ b/src/Pages/DeliveryChallan/DCPrintTemplates/DCThermalPrinter/DCPrintStyle7.jsx @@ -21,6 +21,15 @@ import { Globalnotes, GlobalthemeFormat, GlobalBillName, + GlobalSelectedPrintHeaderColor, + GlobalSelectedPrintHeaderFontColor, + GlobalSelectedTableHeaderColor, + GlobalSelectedTableHeaderFontColor, + GlobalSelectedTableBodyColor, + GlobalSelectedTableBodyFontColor, + GlobalRowType, + GlobalSelectedFooterColor, + GlobalSelectedFooterFontColor, } from '../../../../Features/ThemeChange/ThemeChange'; import { GlobalUpiIDprint } from '../../../../Features/BookingScreen/BookingData/BookingData'; import '../../../../Styles/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle7.scss'; @@ -246,6 +255,73 @@ const DCPrintStyle7 = ({ : 0; const shouldFooterBeOnNewPage = lastChunkRows > (PageSize == 'A5' ? 5 : 10); console.log(BranchName, 'paginatedChunks'); + + // + const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor); + const SelectedHeaderFontColor = useSelector( + GlobalSelectedPrintHeaderFontColor + ); + const SelectedTableHeaderColor = useSelector(GlobalSelectedTableHeaderColor); + const SelectedTableHeaderFontColor = useSelector( + GlobalSelectedTableHeaderFontColor + ); + const SelectedTableBodyColor = useSelector(GlobalSelectedTableBodyColor); + const SelectedTableBodyFontColor = useSelector( + GlobalSelectedTableBodyFontColor + ); + const SelectedRowType = useSelector(GlobalRowType); + const SelectedTableFooterColor = useSelector(GlobalSelectedFooterColor); + const SelectedTableFooterFontColor = useSelector( + GlobalSelectedFooterFontColor + ); + + // + let printColors = DCPrintTemplateDtl?.PrintColors; + const headerColor = printColors?.find((obj) => obj.headerColor)?.headerColor; + const tableHeaderColor = printColors?.find( + (obj) => obj.tableHeaderColor + )?.tableHeaderColor; + const tableBodyColor = printColors?.find( + (obj) => obj.tableBodyColor + )?.tableBodyColor; + const footerColor = printColors?.find((obj) => obj.footerColor)?.footerColor; + + // + const headerStyle = { + backgroundColor: GlobaldummyData + ? SelectedHeaderColor + : headerColor?.background, + + color: GlobaldummyData ? SelectedHeaderFontColor : headerColor?.font, + }; + const tableHeaderStyle = { + backgroundColor: GlobaldummyData + ? SelectedTableHeaderColor + : tableHeaderColor?.background, + + color: GlobaldummyData + ? SelectedTableHeaderFontColor + : tableHeaderColor?.font, + }; + + const tableBodyStyle = { + backgroundColor: GlobaldummyData + ? SelectedTableBodyColor + : tableBodyColor?.background, + color: GlobaldummyData ? SelectedTableBodyFontColor : tableBodyColor?.font, + }; + + const rowtypeStyle = GlobaldummyData + ? SelectedRowType + : tableBodyColor?.rowType; + + const footerColorStyle = { + backgroundColor: GlobaldummyData + ? SelectedTableFooterColor + : footerColor?.background, + color: GlobaldummyData ? SelectedTableFooterFontColor : footerColor?.font, + }; + return ( <>|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| S.No | ++ S.No + | ) : SLNO == true && ( -S.No | ++ S.No + | )} {GlobaldummyData - ? GlobalItem &&Item | - : Item == true &&Item | } - {/* {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode == true &&HSN | } */} + ? GlobalItem && ( +Item | + ) + : Item == true && ( +Item | + )} {GlobaldummyData ? GlobalQuantity && ( -Qty | ++ Qty + | ) : Quantity == true && ( -Qty | ++ Qty + | )} - {/* {GlobaldummyData ? GlobalMRP &&MRP | : MRP == true &&MRP | } - {GlobaldummyData ? GlobalRate &&Rate | : Rate == true &&Rate | } - {GlobaldummyData ? GlobalDiscount &&Dis | : Discount == true &&Dis | } - {GlobaldummyData ? GlobalAmount &&Amt | : Amount == true &&Amt | } */}||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @@ -598,10 +714,6 @@ const DCPrintStyle7 = ({ {item?.Qty || item?.DispatchedQty} | )} - {/* {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP == true &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } - {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate == true &&{item?.Rate} | } - {GlobaldummyData ? GlobalDiscount &&{item.discount} | : Discount == true &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } - {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount == true &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | } */}
| S.No | : SLNO &&S.No | } - {GlobaldummyData ? GlobalItem &&Item | : Item &&Item | } - {/* {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode &&HSN | } */} - {/* {GlobaldummyData ? GlobalMRP &&MRP | : MRP &&MRP | } - {GlobaldummyData ? GlobalRate &&Rate | : Rate &&Rt | } - {GlobaldummyData ? GlobalDiscount &&(%) | : Discount &&(%) | } */} - {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity &&Qty | } - {/* {GlobaldummyData ? GlobalAmount &&Amt | : Amount &&Amt | } */} -||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {chunkIndex * chunkSize + index + 1} | : SLNO &&{chunkIndex * chunkSize + index + 1} | } - {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item &&
- {item?.ProdName}
- ({item?.Size ? item?.Size : "1"} {item?.SinglePc == 'Y' ? 'PCS' : item?.Type != "C" ? item?.UomName : "COMBO"}){item?.RequestVariantName ? `${item?.RequestVariantName}` : ''}
- | }
- {/* {GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode &&{item?.HSN} | } */} - {/* {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } +
| + S.No + | + ) + : SLNO && ( ++ S.No + | + )} + {GlobaldummyData + ? GlobalItem && ( +Item | + ) + : Item && ( ++ Item + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity && ( ++ Qty + | + )} +||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {chunkIndex * chunkSize + index + 1} + | + ) + : SLNO && ( ++ {chunkIndex * chunkSize + index + 1} + | + )} + {GlobaldummyData + ? GlobalItem &&{item?.ProdName} | + : Item && ( +
+ {item?.ProdName}
+
+ ({item?.Size ? item?.Size : '1'}{' '}
+ {item?.SinglePc == 'Y'
+ ? 'PCS'
+ : item?.Type != 'C'
+ ? item?.UomName
+ : 'COMBO'}
+ )
+ {item?.RequestVariantName
+ ? `${item?.RequestVariantName}`
+ : ''}
+
+ |
+ )}
+ {/* {GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode &&{item?.HSN} | } */} + {/* {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate &&{item?.Rate} | } {GlobaldummyData ? GlobalDiscount &&{item?.discount} | : Discount &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } */} - {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity &&{item?.Qty || item?.DispatchedQty} | } - {/* {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | } */} -
Notes : 10 days Return policy
- -{Notestext}
- -- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-+ Notes : 10 days Return policy +
+ +{Notestext}
+ ++ Terms & Conditions +
++ Terms & Conditions +
++ Signature +
++ Signature +
+| S.No | : SLNO &&S.No | } - {GlobaldummyData ? GlobalItem &&Item | : Item &&Item | } - {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity &&Qty | } + {GlobaldummyData + ? GlobalSlNo && ( ++ S.No + | + ) + : SLNO && ( ++ S.No + | + )} + {GlobaldummyData + ? GlobalItem && ( ++ Item + | + ) + : Item && ( ++ Item + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity && ( ++ Qty + | + )} {/* {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode &&HSN | } {GlobaldummyData ? GlobalMRP &&MRP | : MRP &&MRP | } {GlobaldummyData ? GlobalDiscount &&Dis | : Discount &&Dis | } @@ -279,151 +616,283 @@ const DCPrintStyle9 = ({ BranchName, BranchDetails, BranchAddress, BranchCity, B {GlobaldummyData ? GlobalAmount &&Amt | : Amount &&Amt | } */}
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - {index + 1} - | - ) ++ {index + 1} + | + ) : SLNO == true && ( -- {chunkIndex * chunkSize + index + 1} - | - )} ++ {chunkIndex * chunkSize + index + 1} + | + )} {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item == true && ( -
- {item?.ProdName}
- {!(item?.ProdVariantName || item?.RequestVariantName)?.toLowerCase()?.includes(
- 'variant'
- ) && Variant:{item?.ProdVariantName || item?.RequestVariantName} }
- {" "}
-
-
-
-
- |
- )}
+
+ {item?.ProdName}
+ {!(
+ item?.ProdVariantName ||
+ item?.RequestVariantName
+ )
+ ?.toLowerCase()
+ ?.includes('variant') && (
+
+ Variant:
+ {item?.ProdVariantName ||
+ item?.RequestVariantName}{' '}
+
+ )}
+
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
- - {item?.SalesQty} - | - ) ++ {item?.SalesQty} + | + ) : Quantity == true && ( -- {item?.Qty || item?.DispatchedQty} - | - )} ++ {item?.Qty || item?.DispatchedQty} + | + )}
Notes : 10 days Return policy
+ {GlobaldummyData + ? GlobalIsnotes && ( ++ Notes : 10 days Return policy +
-{Notestext}
+{Notestext}
-+ Terms & Conditions +
++ Terms & Conditions +
+- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-+ Signature +
++ Signature +
+
-
-
-
-
-
+
-
-
-
+
-
-