add Desciption

This commit is contained in:
Tamilselvan 2026-03-03 10:13:09 +05:30
parent 82bfccfe8b
commit 6439c0319d
1 changed files with 54 additions and 58 deletions

View File

@ -101,6 +101,9 @@ const PrintStyle10 = ({
const GlobalLogo = useSelector(GlobalprintLogo); const GlobalLogo = useSelector(GlobalprintLogo);
const GlobalCredit = useSelector(GlobalprintCredit); const GlobalCredit = useSelector(GlobalprintCredit);
const SettingData = useSelector(PreferenceData); const SettingData = useSelector(PreferenceData);
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
(i) => i.SettingIdName === 'PrintUom'
)?.[0];
const estimatePrintHeader = const estimatePrintHeader =
SettingData?.[0]?.SettingDtlDetails?.find( SettingData?.[0]?.SettingDtlDetails?.find(
(setting) => (setting) =>
@ -687,8 +690,8 @@ const PrintStyle10 = ({
textAlign: 'left', textAlign: 'left',
}} }}
> >
{item?.ProdName}( {item?.ProdName}
{item?.Size + item?.UomName}) {UomPrint?.SettingValue === 'Y' && `(${item?.Size + item?.UomName})`}
</td> </td>
) )
: Item && ( : Item && (
@ -735,13 +738,8 @@ const PrintStyle10 = ({
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}> <div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
{/* Product size + brand */} {/* Product size + brand */}
<div> <div>
({item?.Size || '1'}{' '} {UomPrint?.SettingValue === 'Y' && `(${item?.Size || '1'} ${item?.SinglePc === 'Y' ? 'PCS' : item?.Type !== 'C' ? item?.UomName : 'COMBO'})`}
{item?.SinglePc === 'Y' {item?.BrandName && ` ${item?.BrandName}`}
? 'PCS'
: item?.Type !== 'C'
? item?.UomName
: 'COMBO'}
) {item?.BrandName || ''}
</div> </div>
{/* Product identifiers */} {/* Product identifiers */}
@ -1019,8 +1017,8 @@ const PrintStyle10 = ({
textAlign: 'left', textAlign: 'left',
}} }}
> >
{item?.ProdName}( {item?.ProdName}
{item?.Size + item?.UomName}) {UomPrint?.SettingValue === 'Y' && `(${item?.Size + item?.UomName})`}
</td> </td>
) )
: Item && ( : Item && (
@ -1031,15 +1029,17 @@ const PrintStyle10 = ({
}} }}
> >
<div>{item?.ProdName}</div> <div>{item?.ProdName}</div>
<div> {UomPrint?.SettingValue === 'Y' && (
({item?.Size ? item?.Size : '1'}{' '} <div>
{item?.SinglePc == 'Y' ({item?.Size ? item?.Size : '1'}{' '}
? 'PCS' {item?.SinglePc == 'Y'
: item?.Type != 'C' ? 'PCS'
? item?.UomName : item?.Type != 'C'
: 'COMBO'} ? item?.UomName
) : 'COMBO'}
</div> )
</div>
)}
</td> </td>
)} )}
{GlobaldummyData {GlobaldummyData
@ -3258,7 +3258,8 @@ const PrintStyle10 = ({
<td <td
style={{ width: '10px', textAlign: 'left' }} style={{ width: '10px', textAlign: 'left' }}
> >
{item?.ProdName}({item?.Size + item?.UomName}) {item?.ProdName}
{UomPrint?.SettingValue === 'Y' && `(${item?.Size + item?.UomName})`}
</td> </td>
) )
: Item && ( : Item && (
@ -3273,37 +3274,29 @@ const PrintStyle10 = ({
(pkg) => pkg.ProdId === item.ProdId (pkg) => pkg.ProdId === item.ProdId
).length > 0 ? ( ).length > 0 ? (
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}> <div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
{/* Package Details */} {/* Package Details */}
{PackageDetails?.filter(pkg => pkg.ProdId === item.ProdId).map((pkg, index) => ( {PackageDetails?.filter(pkg => pkg.ProdId === item.ProdId).map((pkg, index) => (
<div key={index}> <div key={index}>
{pkg.ParcelCount} PCS {pkg.ParcelQty} PACK ({pkg.ParcelType}) {pkg.ParcelCount} PCS {pkg.ParcelQty} PACK ({pkg.ParcelType})
</div> </div>
))} ))}
{/* Brand */} {/* Brand */}
{item?.BrandName && <div>{item.BrandName}</div>} {item?.BrandName && <div>{item.BrandName}</div>}
{/* Product Identifiers */} {/* Product Identifiers */}
{item?.ProductIdentifierDtls?.map((id, i) => ( {item?.ProductIdentifierDtls?.map((id, i) => (
<div key={i} style={{ display: 'flex', flexDirection: 'column', gap: '2px' }}> <div key={i} style={{ display: 'flex', flexDirection: 'column', gap: '2px' }}>
{id.SerialNumber && <div>{id.SerialNumber}</div>} {id.SerialNumber && <div>{id.SerialNumber}</div>}
{(id.IMEI1 || id.IMEI2) && <div>{[id.IMEI1, id.IMEI2].filter(Boolean).join(', ')}</div>} {(id.IMEI1 || id.IMEI2) && <div>{[id.IMEI1, id.IMEI2].filter(Boolean).join(', ')}</div>}
{id.Description && <div>{id.Description}</div>} {id.Description && <div>{id.Description}</div>}
</div> </div>
))} ))}
</div> </div>
) : ( ) : (
<div> <div>
({item?.Size ? item?.Size : '1'}{' '} {UomPrint?.SettingValue === 'Y' && `(${item?.Size ? item?.Size : '1'} ${item?.SinglePc == 'Y' ? 'PCS' : item?.Type != 'C' ? item?.UomName : 'COMBO'})`}
{item?.SinglePc == 'Y' {item?.BrandName && ` ${item?.BrandName}`}
? 'PCS'
: item?.Type != 'C'
? item?.UomName
: 'COMBO'}
)
{item?.BrandName !== null
? item?.BrandName
: ''}
&nbsp; &nbsp;
{/* {item?.ProductIdentifierDtls?.length > 0 {/* {item?.ProductIdentifierDtls?.length > 0
? item?.ProductIdentifierDtls?.filter( ? item?.ProductIdentifierDtls?.filter(
@ -3569,7 +3562,8 @@ const PrintStyle10 = ({
<td <td
style={{ width: '10px', textAlign: 'left' }} style={{ width: '10px', textAlign: 'left' }}
> >
{item?.ProdName}({item?.Size + item?.UomName}) {item?.ProdName}
{UomPrint?.SettingValue === 'Y' && `(${item?.Size + item?.UomName})`}
</td> </td>
) )
: Item && ( : Item && (
@ -3580,15 +3574,17 @@ const PrintStyle10 = ({
}} }}
> >
<div>{item?.ProdName}</div> <div>{item?.ProdName}</div>
<div> {UomPrint?.SettingValue === 'Y' && (
({item?.Size ? item?.Size : '1'}{' '} <div>
{item?.SinglePc == 'Y' ({item?.Size ? item?.Size : '1'}{' '}
? 'PCS' {item?.SinglePc == 'Y'
: item?.Type != 'C' ? 'PCS'
? item?.UomName : item?.Type != 'C'
: 'COMBO'} ? item?.UomName
) : 'COMBO'}
</div> )
</div>
)}
</td> </td>
)} )}
{GlobaldummyData {GlobaldummyData