) : (
- UomPrint?.SettingValue === 'Y' &&
- ({item?.Size ? item?.Size : '1'}{' '}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.Type != 'C'
- ? item?.UomName
- : 'COMBO'}
- )
+ {UomPrint?.SettingValue === 'Y' && (
+ <>({item?.Size || '1'}) {item?.SinglePc === 'Y' ? 'PCS' : item?.Type !== 'C' ? item?.UomName : 'COMBO'} >
+ )}
)}
+
+ {(item?.ProductIdentifierDtls ?? [])
+ .filter(items => items.SerialNumber)
+ .map((a, i) => (
+
+ {a.SerialNumber}
+
+ ))}
+
+ {(item?.ProductIdentifierDtls ?? [])
+ .filter(id => id.IMEI1 || id.IMEI2)
+ .map((id, i) => (
+
+ {[id.IMEI1, id.IMEI2].filter(Boolean).join(",")}
+
+ ))}
+
+ {(item?.ProductIdentifierDtls ?? [])
+ .filter(items => items.SerialNumber || items.IMEI1 || items.IMEI2)
+ .map((a, i) =>
+ a.Description ? (
+
+ {a.Description}
+
+ ) : null
+ )}
+
)}
{GlobaldummyData
@@ -902,66 +928,55 @@ const PrintStyle7 = ({
{chunkIndex * chunkSize + index + 1}
)}
- {GlobaldummyData
- ? GlobalItem &&
{item?.ProdName} |
- : Item == true && (
+ {GlobaldummyData ? (
+ GlobalItem &&
{item?.ProdName} |
+ ) : (
+ Item === true && (
+ {/* 🏷 Product Name */}
{item?.ProdName}
+
+ {/* 📦 Size + Brand */}
- {UomPrint?.SettingValue === 'Y'
- ? `${item?.Size || '1'} ${
- item?.SinglePc === 'Y'
- ? 'PCS'
- : item?.Type !== 'C'
- ? item?.UomName
- : 'COMBO'
- }`
- : ''
- }
- {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(',')}
-
- );
- })
- : ''}
+ {UomPrint?.SettingValue === 'Y' && (
+ <>({item?.Size || '1'}) {item?.SinglePc === 'Y' ? 'PCS' : item?.Type !== 'C' ? item?.UomName : 'COMBO'} >
+ )}
+ {item?.BrandName ? ` ${item.BrandName}` : ""}
+
+
+ {/* 🔢 Identifiers */}
+
+ {(item?.ProductIdentifierDtls ?? []).map((data, i) => {
+ const hasSerial = data.SerialNumber;
+ const hasIMEI = data.IMEI1 || data.IMEI2;
+
+ return (
+
+ {hasSerial && {data.SerialNumber} }
+
+ {hasIMEI && (
+
+ {[data.IMEI1, data.IMEI2]
+ .filter(Boolean)
+ .join(",")}
+
+ )}
+
+ {(hasSerial || hasIMEI) && data.Description && (
+ {data.Description}
+ )}
+
+ );
+ })}
|
- )}
+ )
+ )}
{GlobaldummyData
? GlobalHsnCode && (
@@ -2930,8 +2945,8 @@ const PrintStyle7 = ({
>
{' '}
Estimate{' '}
- {SalesModePref?.SettingValue == 'Y' &&
- `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
+ {/* {SalesModePref?.SettingValue == 'Y' &&
+ `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
)}
{table2Data?.OrderType === 'E' ? (
@@ -2953,8 +2968,8 @@ const PrintStyle7 = ({
: PaymentStatusSuccess?.length === 1
? PaymentStatusSuccess?.[0]?.PaymentTypeName + ' Bill'
: ''}{' '}
- {SalesModePref?.SettingValue == 'Y' &&
- `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
+ {/* {SalesModePref?.SettingValue == 'Y' &&
+ `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
)}
@@ -2970,8 +2985,8 @@ const PrintStyle7 = ({
>
{' '}
Estimate{' '}
- {SalesModePref?.SettingValue == 'Y' &&
- `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
+ {/* {SalesModePref?.SettingValue == 'Y' &&
+ `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
)}
@@ -2990,7 +3005,12 @@ const PrintStyle7 = ({
table2Data?.OrderId,
table2Data?.FYStatus
)}
+
+ {SalesModePref?.SettingValue == 'Y' &&
+ {' '}
+ Name : {table2Data?.SalesMode == "R" ? "RT" : "WS"}{' '}
+ }
) : (
- UomPrint?.SettingValue === 'Y' &&
-
- ({item?.Size ? item?.Size : '1'}{' '}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.Type != 'C'
- ? item?.UomName
- : 'COMBO'}
- )
-
+
+ {UomPrint?.SettingValue === 'Y' && (
+ <>({item?.Size || '1'}) {item?.SinglePc === 'Y' ? 'PCS' : item?.Type !== 'C' ? item?.UomName : 'COMBO'} >
+ )}
+
)}
+
+ {(item?.ProductIdentifierDtls ?? []).filter(
+ items => items.SerialNumber && items.SerialNumber !== ""
+ ).map((a, i) => (
+ {a.SerialNumber}
+ ))}
+
+ {(item?.ProductIdentifierDtls ?? []).filter(
+ id => id.IMEI1 || id.IMEI2
+ ).map((id, i) => (
+
+ {[id.IMEI1, id.IMEI2].filter(Boolean).join(",")}
+
+ ))}
+
+ {(item?.ProductIdentifierDtls ?? []).filter(
+ items => items.SerialNumber || items.IMEI1 || items.IMEI2
+ ).map((a, i) => (
+ a.Description && (
+
+ {a.Description}
+
+ )
+ ))}
+
|
)}
{GlobaldummyData
@@ -3339,48 +3379,36 @@ const PrintStyle7 = ({
>
{item?.ProdName}
- {UomPrint?.SettingValue === 'Y'
- ? `${item?.Size || '1'} ${
- item?.SinglePc === 'Y'
- ? 'PCS'
- : item?.Type !== 'C'
- ? item?.UomName
- : 'COMBO'
- }`
- : ''
- }
+ {UomPrint?.SettingValue === 'Y' && (
+ <>({item?.Size || '1'}) {item?.SinglePc === 'Y' ? 'PCS' : item?.Type !== 'C' ? item?.UomName : 'COMBO'} >
+ )}
{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(',')}
+
+ {(item?.ProductIdentifierDtls ?? [])
+ .filter(items => items.SerialNumber)
+ .map((a, i) => (
+
{a.SerialNumber}
+ ))}
+
+ {(item?.ProductIdentifierDtls ?? [])
+ .filter(id => id.IMEI1 || id.IMEI2)
+ .map((id, i) => (
+
+ {[id.IMEI1, id.IMEI2].filter(Boolean).join(",")}
- );
- })
- : ''}
+ ))}
+
+ {(item?.ProductIdentifierDtls ?? [])
+ .filter(items => items.SerialNumber || items.IMEI1 || items.IMEI2)
+ .map((a, i) =>
+ a.Description ? (
+
{a.Description}
+ ) : null
+ )}
+
)}