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,6 +1029,7 @@ const PrintStyle10 = ({
}} }}
> >
<div>{item?.ProdName}</div> <div>{item?.ProdName}</div>
{UomPrint?.SettingValue === 'Y' && (
<div> <div>
({item?.Size ? item?.Size : '1'}{' '} ({item?.Size ? item?.Size : '1'}{' '}
{item?.SinglePc == 'Y' {item?.SinglePc == 'Y'
@ -1040,6 +1039,7 @@ const PrintStyle10 = ({
: 'COMBO'} : '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 && (
@ -3291,19 +3292,11 @@ const PrintStyle10 = ({
{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,6 +3574,7 @@ const PrintStyle10 = ({
}} }}
> >
<div>{item?.ProdName}</div> <div>{item?.ProdName}</div>
{UomPrint?.SettingValue === 'Y' && (
<div> <div>
({item?.Size ? item?.Size : '1'}{' '} ({item?.Size ? item?.Size : '1'}{' '}
{item?.SinglePc == 'Y' {item?.SinglePc == 'Y'
@ -3589,6 +3584,7 @@ const PrintStyle10 = ({
: 'COMBO'} : 'COMBO'}
) )
</div> </div>
)}
</td> </td>
)} )}
{GlobaldummyData {GlobaldummyData