add description
This commit is contained in:
parent
c19ba07c44
commit
e7bda2a80f
|
|
@ -461,8 +461,8 @@ const PrintStyle10 = ({
|
||||||
{table2Data?.OrderType === 'E' && estimateTitle && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div style={{ textTransform: 'uppercase' }}>
|
<div style={{ textTransform: 'uppercase' }}>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||||
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
@ -477,8 +477,8 @@ const PrintStyle10 = ({
|
||||||
: PaymentStatusSuccess?.length === 1
|
: PaymentStatusSuccess?.length === 1
|
||||||
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
||||||
: ''}{' '}
|
: ''}{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||||
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -491,8 +491,8 @@ const PrintStyle10 = ({
|
||||||
style={{ textTransform: 'uppercase', textAlign: 'center' }}
|
style={{ textTransform: 'uppercase', textAlign: 'center' }}
|
||||||
>
|
>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||||
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div
|
<div
|
||||||
|
|
@ -505,6 +505,10 @@ const PrintStyle10 = ({
|
||||||
{' '}
|
{' '}
|
||||||
{GlobaldummyData ? formattedDate : Date1}{' '}
|
{GlobaldummyData ? formattedDate : Date1}{' '}
|
||||||
</div>
|
</div>
|
||||||
|
{SalesModePref?.SettingValue == 'Y' && <div style={{ fontSize: '13px', fontWeight: 600, textAlign: 'right' }}>
|
||||||
|
{' '}
|
||||||
|
Name : {table2Data?.SalesMode == "R" ? "RT" : "WS"}{' '}
|
||||||
|
</div>}
|
||||||
<hr class="straightline" />
|
<hr class="straightline" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -715,84 +719,41 @@ const PrintStyle10 = ({
|
||||||
? item?.BrandName
|
? item?.BrandName
|
||||||
: ''}
|
: ''}
|
||||||
|
|
||||||
{item?.ProductIdentifierDtls?.length >
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '3px' }}>
|
||||||
0
|
{item?.ProductIdentifierDtls?.map((id, i) => (
|
||||||
? item?.ProductIdentifierDtls?.filter(
|
<div key={i} style={{ display: 'flex', flexDirection: 'column', gap: '2px' }}>
|
||||||
(items) =>
|
{id.SerialNumber && <div>{id.SerialNumber}</div>}
|
||||||
!(
|
{(id.IMEI1 || id.IMEI2) && (
|
||||||
items.SerialNumber == '' ||
|
<div>{[id.IMEI1, id.IMEI2].filter(Boolean).join(', ')}</div>
|
||||||
items.SerialNumber == null
|
)}
|
||||||
)
|
{id.Description && <div>{id.Description}</div>}
|
||||||
)?.map((a) => {
|
</div>
|
||||||
return (
|
))}
|
||||||
<div>{a.SerialNumber}</div>
|
</div>
|
||||||
);
|
|
||||||
})
|
|
||||||
: ''}{' '}
|
|
||||||
{item?.ProductIdentifierDtls?.length >
|
|
||||||
0
|
|
||||||
? item?.ProductIdentifierDtls.filter(
|
|
||||||
(item1) =>
|
|
||||||
item1.IMEI1 !== '' ||
|
|
||||||
item1.IMEI2 !== ''
|
|
||||||
)?.map((item2) => {
|
|
||||||
const imei1 = item2.IMEI1 || '';
|
|
||||||
const imei2 = item2.IMEI2 || '';
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{[imei1, imei2]
|
|
||||||
.filter(Boolean)
|
|
||||||
.join(',')}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})
|
|
||||||
: ''}
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
|
||||||
({item?.Size ? item?.Size : '1'}{' '}
|
{/* Product size + brand */}
|
||||||
{item?.SinglePc == 'Y'
|
<div>
|
||||||
? 'PCS'
|
({item?.Size || '1'}{' '}
|
||||||
: item?.Type != 'C'
|
{item?.SinglePc === 'Y'
|
||||||
? item?.UomName
|
? 'PCS'
|
||||||
: 'COMBO'}
|
: item?.Type !== 'C'
|
||||||
)
|
? item?.UomName
|
||||||
{item?.BrandName !== null
|
: 'COMBO'}
|
||||||
? item?.BrandName
|
) {item?.BrandName || ''}
|
||||||
: ''}
|
</div>
|
||||||
|
|
||||||
{item?.ProductIdentifierDtls?.length >
|
{/* Product identifiers */}
|
||||||
0
|
{item?.ProductIdentifierDtls?.map((id, i) => (
|
||||||
? item?.ProductIdentifierDtls?.filter(
|
<div key={i} style={{ display: 'flex', flexDirection: 'column', gap: '2px' }}>
|
||||||
(items) =>
|
{id.SerialNumber && <div>{id.SerialNumber}</div>}
|
||||||
!(
|
{(id.IMEI1 || id.IMEI2) && (
|
||||||
items.SerialNumber == '' ||
|
<div>{[id.IMEI1, id.IMEI2].filter(Boolean).join(', ')}</div>
|
||||||
items.SerialNumber == null
|
)}
|
||||||
)
|
{id.Description && <div>{id.Description}</div>}
|
||||||
)?.map((a) => {
|
</div>
|
||||||
return (
|
))}
|
||||||
<div>{a.SerialNumber}</div>
|
|
||||||
);
|
|
||||||
})
|
|
||||||
: ''}{' '}
|
|
||||||
{item?.ProductIdentifierDtls?.length >
|
|
||||||
0
|
|
||||||
? item?.ProductIdentifierDtls.filter(
|
|
||||||
(item1) =>
|
|
||||||
item1.IMEI1 !== '' ||
|
|
||||||
item1.IMEI2 !== ''
|
|
||||||
)?.map((item2) => {
|
|
||||||
const imei1 = item2.IMEI1 || '';
|
|
||||||
const imei2 = item2.IMEI2 || '';
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{[imei1, imei2]
|
|
||||||
.filter(Boolean)
|
|
||||||
.join(',')}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})
|
|
||||||
: ''}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
|
|
@ -3121,8 +3082,8 @@ const PrintStyle10 = ({
|
||||||
{table2Data?.OrderType === 'E' && estimateTitle && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div style={{ textTransform: 'uppercase' }}>
|
<div style={{ textTransform: 'uppercase' }}>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||||
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
@ -3137,8 +3098,8 @@ const PrintStyle10 = ({
|
||||||
: PaymentStatusSuccess?.length === 1
|
: PaymentStatusSuccess?.length === 1
|
||||||
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
||||||
: ''}{' '}
|
: ''}{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||||
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -3148,8 +3109,8 @@ const PrintStyle10 = ({
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div style={{ textTransform: 'uppercase' }}>
|
<div style={{ textTransform: 'uppercase' }}>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||||
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div
|
<div
|
||||||
|
|
@ -3311,52 +3272,26 @@ const PrintStyle10 = ({
|
||||||
{PackageDetails?.filter(
|
{PackageDetails?.filter(
|
||||||
(pkg) => pkg.ProdId === item.ProdId
|
(pkg) => pkg.ProdId === item.ProdId
|
||||||
).length > 0 ? (
|
).length > 0 ? (
|
||||||
<div>
|
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
|
||||||
{PackageDetails?.filter(
|
{/* Package Details */}
|
||||||
(pkg) => pkg.ProdId === item.ProdId
|
{PackageDetails?.filter(pkg => pkg.ProdId === item.ProdId).map((pkg, index) => (
|
||||||
)?.map((item, index) => (
|
<div key={index}>
|
||||||
<span
|
{pkg.ParcelCount} PCS {pkg.ParcelQty} PACK ({pkg.ParcelType})
|
||||||
key={index}
|
</div>
|
||||||
style={{ display: 'block' }}
|
))}
|
||||||
>
|
|
||||||
{item.ParcelCount} PCS{' '}
|
{/* Brand */}
|
||||||
{item.ParcelQty} PACK (
|
{item?.BrandName && <div>{item.BrandName}</div>}
|
||||||
{item.ParcelType})
|
|
||||||
</span>
|
{/* Product Identifiers */}
|
||||||
))}
|
{item?.ProductIdentifierDtls?.map((id, i) => (
|
||||||
{item?.BrandName !== null
|
<div key={i} style={{ display: 'flex', flexDirection: 'column', gap: '2px' }}>
|
||||||
? item?.BrandName
|
{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>}
|
||||||
{item?.ProductIdentifierDtls?.length > 0
|
</div>
|
||||||
? item?.ProductIdentifierDtls?.filter(
|
))}
|
||||||
(items) =>
|
</div>
|
||||||
!(
|
|
||||||
items.SerialNumber == '' ||
|
|
||||||
items.SerialNumber == null
|
|
||||||
)
|
|
||||||
)?.map((a) => {
|
|
||||||
return <div>{a.SerialNumber}</div>;
|
|
||||||
})
|
|
||||||
: ''}{' '}
|
|
||||||
{item?.ProductIdentifierDtls?.length > 0
|
|
||||||
? item?.ProductIdentifierDtls.filter(
|
|
||||||
(item1) =>
|
|
||||||
item1.IMEI1 !== '' ||
|
|
||||||
item1.IMEI2 !== ''
|
|
||||||
)?.map((item2) => {
|
|
||||||
const imei1 = item2.IMEI1 || '';
|
|
||||||
const imei2 = item2.IMEI2 || '';
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
{[imei1, imei2]
|
|
||||||
.filter(Boolean)
|
|
||||||
.join(',')}
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
})
|
|
||||||
: ''}
|
|
||||||
</div>
|
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
({item?.Size ? item?.Size : '1'}{' '}
|
({item?.Size ? item?.Size : '1'}{' '}
|
||||||
|
|
@ -3370,7 +3305,7 @@ const PrintStyle10 = ({
|
||||||
? item?.BrandName
|
? item?.BrandName
|
||||||
: ''}
|
: ''}
|
||||||
|
|
||||||
{item?.ProductIdentifierDtls?.length > 0
|
{/* {item?.ProductIdentifierDtls?.length > 0
|
||||||
? item?.ProductIdentifierDtls?.filter(
|
? item?.ProductIdentifierDtls?.filter(
|
||||||
(items) =>
|
(items) =>
|
||||||
!(
|
!(
|
||||||
|
|
@ -3397,7 +3332,18 @@ const PrintStyle10 = ({
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
: ''}
|
: ''} */}
|
||||||
|
<div style={{ display: 'flex', flexDirection: 'column', gap: "3px" }}>
|
||||||
|
{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>
|
</div>
|
||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue