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