change Design add descriptions
This commit is contained in:
parent
544e282bd0
commit
5786040e3d
|
|
@ -23,6 +23,7 @@ const TaxInvoice = ({
|
|||
ReprintType,
|
||||
printDatas,
|
||||
}) => {
|
||||
|
||||
const GlobaldummyData = useSelector(GlobalPritdummyData);
|
||||
const SettingData = useSelector(PreferenceData);
|
||||
const estimatePrintHeader =
|
||||
|
|
@ -833,27 +834,25 @@ const TaxInvoice = ({
|
|||
{item.BrandName}{' '}
|
||||
</div>
|
||||
)}
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls.filter(
|
||||
(items) =>
|
||||
items.SerialNumber && items.SerialNumber !== ''
|
||||
)?.map((a, i) => (
|
||||
<div key={i}>{a.SerialNumber}</div>
|
||||
))
|
||||
: ''}
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls.filter(
|
||||
(id) => id.IMEI1 !== '' || id.IMEI2 !== ''
|
||||
)?.map((id, i) => {
|
||||
const imei1 = id.IMEI1 || '';
|
||||
const imei2 = id.IMEI2 || '';
|
||||
return (
|
||||
<div>
|
||||
{item?.ProductIdentifierDtls?.map((id, i) => (
|
||||
<div key={i}>
|
||||
{[imei1, imei2].filter(Boolean).join(',')}
|
||||
<div style={{ display: "flex", gap: "5px", flexWrap: "wrap" }}>
|
||||
{id?.SerialNumber && <span>{id.SerialNumber}</span>}
|
||||
{(id?.IMEI1 || id?.IMEI2) && (
|
||||
<span>{[id.IMEI1, id.IMEI2].filter(Boolean).join(",")}</span>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
})
|
||||
: ''}
|
||||
|
||||
{id?.Description && (
|
||||
<div style={{ marginTop: "3px", wordBreak: "break-word" }}>
|
||||
{id.Description}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ const PrintStyle1 = ({
|
|||
const FieldDetails = useSelector(GloabalFieldDetails);
|
||||
const SLNO = FieldDetails?.['Sl.No'];
|
||||
const Item = FieldDetails?.['Item'];
|
||||
console.log(Item, 'Item');
|
||||
console.log(Item, 'PrintStyle1PrintStyle1');
|
||||
const MRP = FieldDetails?.['MRP'];
|
||||
const Discount = FieldDetails?.['Discount'];
|
||||
const Tax = FieldDetails?.['Tax'];
|
||||
|
|
@ -495,8 +495,8 @@ const PrintStyle1 = ({
|
|||
}}
|
||||
>
|
||||
Estimate{' '}
|
||||
{SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`}
|
||||
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`} */}
|
||||
</div>
|
||||
)}
|
||||
{table2Data?.OrderType === 'E' ? (
|
||||
|
|
@ -520,8 +520,8 @@ const PrintStyle1 = ({
|
|||
? PaymentStatusSuccess?.[0]?.PaymentTypeName +
|
||||
' Bill'
|
||||
: ''}
|
||||
{SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`}
|
||||
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`} */}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -538,8 +538,8 @@ const PrintStyle1 = ({
|
|||
}}
|
||||
>
|
||||
Estimate{' '}
|
||||
{SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`}
|
||||
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`} */}
|
||||
</div>
|
||||
)}
|
||||
<hr className="PrintStyle1-print-dottline" />
|
||||
|
|
@ -605,6 +605,12 @@ const PrintStyle1 = ({
|
|||
{' '}
|
||||
Date : {GlobaldummyData ? formattedDate : Date1}{' '}
|
||||
</div>
|
||||
{SalesModePref?.SettingValue == 'Y' && <div style={{ fontWeight: '600' }}>
|
||||
{' '}
|
||||
Name : {table2Data?.SalesMode == "R" ? "RT" : "WS"}{' '}
|
||||
|
||||
</div>}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -748,10 +754,7 @@ const PrintStyle1 = ({
|
|||
? GlobalItem && <td>{item?.ProdName}</td>
|
||||
: Item == true && (
|
||||
<td
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{PackageDetails?.filter(
|
||||
|
|
@ -789,9 +792,10 @@ const PrintStyle1 = ({
|
|||
} (${to12Hour(item?.AvailableFrom)} - ${to12Hour(item?.AvailableTo)})`}
|
||||
{' '}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
? <div> {item?.BrandName}</div>
|
||||
: ''}
|
||||
|
||||
<div style={{ display: "flex", gap: "2px", flexDirection: "column" }}>
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls?.filter(
|
||||
(items) =>
|
||||
|
|
@ -820,6 +824,17 @@ const PrintStyle1 = ({
|
|||
);
|
||||
})
|
||||
: ''}
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls.filter(
|
||||
(items) =>
|
||||
items.SerialNumber || items.IMEI1 || items.IMEI2
|
||||
)?.map((a, i) => (
|
||||
<span key={i}>{a.Description}</span>
|
||||
))
|
||||
|
||||
: ''}
|
||||
</div>
|
||||
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -1026,10 +1041,7 @@ const PrintStyle1 = ({
|
|||
? GlobalItem && <td>{item?.ProdName}</td>
|
||||
: Item == true && (
|
||||
<td
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
|
|
@ -3743,8 +3755,8 @@ const PrintStyle1 = ({
|
|||
}}
|
||||
>
|
||||
Estimate{' '}
|
||||
{SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`}
|
||||
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`} */}
|
||||
</div>
|
||||
)}
|
||||
{table2Data?.OrderType === 'E' ? (
|
||||
|
|
@ -3785,8 +3797,8 @@ const PrintStyle1 = ({
|
|||
}}
|
||||
>
|
||||
Estimate{' '}
|
||||
{SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`}
|
||||
{/* {SalesModePref?.SettingValue == 'Y' &&
|
||||
`(${table2Data?.SalesMode})`} */}
|
||||
</div>
|
||||
)}
|
||||
<hr className="PrintStyle1-print-dottline" />
|
||||
|
|
@ -3958,10 +3970,7 @@ const PrintStyle1 = ({
|
|||
? GlobalItem && <td>{item?.ProdName}</td>
|
||||
: Item == true && (
|
||||
<td
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{PackageDetails?.filter(
|
||||
|
|
@ -3999,9 +4008,10 @@ const PrintStyle1 = ({
|
|||
} (${to12Hour(item?.AvailableFrom)} - ${to12Hour(item?.AvailableTo)})`}
|
||||
{' '}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
? <div> {item?.BrandName}</div>
|
||||
: ''}
|
||||
|
||||
{/*
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls?.filter(
|
||||
(items) =>
|
||||
|
|
@ -4029,7 +4039,41 @@ const PrintStyle1 = ({
|
|||
</div>
|
||||
);
|
||||
})
|
||||
: ''} */}
|
||||
<div style={{ display: 'flex', gap: "3px", flexDirection: "column" }}>
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls.filter(
|
||||
(items) =>
|
||||
items.SerialNumber &&
|
||||
items.SerialNumber !== ''
|
||||
).map((a, i) => (
|
||||
<div key={i}>{a.SerialNumber}</div>
|
||||
))
|
||||
: ''}
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls.filter(
|
||||
(id) => id.IMEI1 !== '' || id.IMEI2 !== ''
|
||||
).map((id, i) => {
|
||||
const imei1 = id.IMEI1 || '';
|
||||
const imei2 = id.IMEI2 || '';
|
||||
return (
|
||||
<div key={i}>
|
||||
{[imei1, imei2]
|
||||
.filter(Boolean)
|
||||
.join(',')}
|
||||
</div>
|
||||
);
|
||||
})
|
||||
: ''}
|
||||
{item?.ProductIdentifierDtls?.length > 0
|
||||
? item?.ProductIdentifierDtls.filter(
|
||||
(items) =>
|
||||
items.SerialNumber || items.IMEI1 || items.IMEI2
|
||||
)?.map((a, i) => (
|
||||
<span key={i}>{a.Description} </span>
|
||||
))
|
||||
: ''}
|
||||
</div>
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -4217,10 +4261,7 @@ const PrintStyle1 = ({
|
|||
? GlobalItem && <td>{item?.ProdName}</td>
|
||||
: Item == true && (
|
||||
<td
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
}}
|
||||
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue