#183 Uom display based preference
This commit is contained in:
parent
bc8dafa167
commit
aeb86992c7
|
|
@ -94,6 +94,9 @@ const InvoiceTemplate = ({
|
|||
const GlobalBilltext = useSelector(GlobalBillName);
|
||||
const GlobalLogo = useSelector(GlobalprintLogo);
|
||||
const SettingData = useSelector(PreferenceData);
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
const estimatePrintHeader =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
|
|
@ -101,8 +104,7 @@ const InvoiceTemplate = ({
|
|||
)?.SettingValue === 'Y';
|
||||
const estimateTitle =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
(setting) => setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
)?.SettingValue === 'Y';
|
||||
const keysLength = Object.keys(table2Data ?? {}).length;
|
||||
console.log(GlobalDiscount, Discount, 'Discount');
|
||||
|
|
@ -154,7 +156,7 @@ const InvoiceTemplate = ({
|
|||
let PaymentStatusSuccess = PaymentStatus?.filter(
|
||||
(ps) => ps.PaymentStatus === 'S'
|
||||
);
|
||||
const isEditedBill = PaymentStatus?.some(payment => {
|
||||
const isEditedBill = PaymentStatus?.some((payment) => {
|
||||
const type = payment?.AdjustmentType?.toLowerCase();
|
||||
return (
|
||||
(type === 'extra' || type === 'refund') &&
|
||||
|
|
@ -164,15 +166,15 @@ const InvoiceTemplate = ({
|
|||
});
|
||||
const lastTransaction = PaymentStatus?.find(
|
||||
(ps) => ps.PaymentStatus === 'S' && ps?.LastOrderTran === 'Y'
|
||||
)
|
||||
);
|
||||
const TakeawayTotal = TakeawayData?.reduce(
|
||||
(accumulator, currentValue) => accumulator + currentValue.TotalAmt,
|
||||
0,
|
||||
0
|
||||
);
|
||||
const PackageDetails = table2Data?.PackageDtl;
|
||||
const DineInTotal = DineInData?.reduce(
|
||||
(accumulator, currentValue) => accumulator + currentValue.TotalAmt,
|
||||
0,
|
||||
0
|
||||
);
|
||||
const aggregatedPayments = PaymentStatusSuccess?.reduce(
|
||||
(acc, paymentdata) => {
|
||||
|
|
@ -187,7 +189,7 @@ const InvoiceTemplate = ({
|
|||
|
||||
return acc;
|
||||
},
|
||||
{},
|
||||
{}
|
||||
);
|
||||
const productsData = table2Data?.productDetails || [];
|
||||
const offers = table2Data?.OrderOfferDetails || [];
|
||||
|
|
@ -1286,6 +1288,7 @@ const InvoiceTemplate = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1295,6 +1298,7 @@ const InvoiceTemplate = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
{' '}
|
||||
{item?.BrandName !== null
|
||||
|
|
@ -1804,7 +1808,7 @@ const InvoiceTemplate = ({
|
|||
{Number(
|
||||
GlobaldummyData
|
||||
? 736
|
||||
: table2Data?.NetAmount,
|
||||
: table2Data?.NetAmount
|
||||
)?.toFixed(2)}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -2382,7 +2386,7 @@ const InvoiceTemplate = ({
|
|||
</div>
|
||||
<div className="total-amount">
|
||||
{Number(
|
||||
GlobaldummyData ? 736 : table2Data?.NetAmount,
|
||||
GlobaldummyData ? 736 : table2Data?.NetAmount
|
||||
)?.toFixed(2)}
|
||||
</div>
|
||||
{isEditedBill && lastTransaction && (
|
||||
|
|
@ -2439,8 +2443,10 @@ const InvoiceTemplate = ({
|
|||
'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -3001,13 +3007,15 @@ const InvoiceTemplate = ({
|
|||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''}{' '}
|
||||
</div>
|
||||
{' '}
|
||||
{item?.BrandName !== null
|
||||
|
|
@ -3020,7 +3028,7 @@ const InvoiceTemplate = ({
|
|||
!(
|
||||
items.SerialNumber == '' ||
|
||||
items.SerialNumber == null
|
||||
),
|
||||
)
|
||||
)?.map((a) => {
|
||||
return <div>{a.SerialNumber}</div>;
|
||||
})
|
||||
|
|
@ -3029,7 +3037,7 @@ const InvoiceTemplate = ({
|
|||
? item?.ProductIdentifierDtls.filter(
|
||||
(item1) =>
|
||||
item1.IMEI1 !== '' ||
|
||||
item1.IMEI2 !== '',
|
||||
item1.IMEI2 !== ''
|
||||
)?.map((item2) => {
|
||||
const imei1 = item2.IMEI1 || '';
|
||||
const imei2 = item2.IMEI2 || '';
|
||||
|
|
@ -3169,7 +3177,7 @@ const InvoiceTemplate = ({
|
|||
</td>
|
||||
)}
|
||||
</tr>
|
||||
),
|
||||
)
|
||||
)}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
@ -3352,13 +3360,13 @@ const InvoiceTemplate = ({
|
|||
<span>Total Amount Payable</span>
|
||||
<span>
|
||||
{Number(
|
||||
GlobaldummyData ? 736 : table2Data?.NetAmount,
|
||||
GlobaldummyData ? 736 : table2Data?.NetAmount
|
||||
)?.toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div className="total-amount">
|
||||
{Number(
|
||||
GlobaldummyData ? 736 : table2Data?.NetAmount,
|
||||
GlobaldummyData ? 736 : table2Data?.NetAmount
|
||||
)?.toFixed(2)}
|
||||
</div>
|
||||
{isEditedBill && lastTransaction && (
|
||||
|
|
@ -3391,7 +3399,7 @@ const InvoiceTemplate = ({
|
|||
</span>
|
||||
<strong>
|
||||
{(lastTransaction?.BeforeAdjustment || 0).toFixed(
|
||||
2,
|
||||
2
|
||||
)}
|
||||
</strong>
|
||||
</div>
|
||||
|
|
@ -3411,8 +3419,10 @@ const InvoiceTemplate = ({
|
|||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -3427,7 +3437,7 @@ const InvoiceTemplate = ({
|
|||
</span>
|
||||
<strong>
|
||||
{(lastTransaction?.AfterAdjustment || 0).toFixed(
|
||||
2,
|
||||
2
|
||||
)}
|
||||
</strong>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -101,6 +101,9 @@ const PrintA4Style11 = ({
|
|||
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) =>
|
||||
|
|
@ -108,8 +111,7 @@ const PrintA4Style11 = ({
|
|||
)?.SettingValue === 'Y';
|
||||
const estimateTitle =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
(setting) => setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
)?.SettingValue === 'Y';
|
||||
const currentDate = new Date();
|
||||
console.log(OrderDetailGST, 'OrderDetailGST');
|
||||
|
|
@ -142,7 +144,7 @@ const PrintA4Style11 = ({
|
|||
let PaymentStatusSuccess = PaymentStatus?.filter(
|
||||
(ps) => ps.PaymentStatus === 'S'
|
||||
);
|
||||
const isEditedBill = PaymentStatus?.some(payment => {
|
||||
const isEditedBill = PaymentStatus?.some((payment) => {
|
||||
const type = payment?.AdjustmentType?.toLowerCase();
|
||||
return (
|
||||
(type === 'extra' || type === 'refund') &&
|
||||
|
|
@ -152,7 +154,7 @@ const PrintA4Style11 = ({
|
|||
});
|
||||
const lastTransaction = PaymentStatus?.find(
|
||||
(ps) => ps.PaymentStatus === 'S' && ps?.LastOrderTran === 'Y'
|
||||
)
|
||||
);
|
||||
|
||||
const TakeawayTotal = TakeawayData?.reduce(
|
||||
(accumulator, currentValue) => accumulator + currentValue.TotalAmt,
|
||||
|
|
@ -399,7 +401,9 @@ const PrintA4Style11 = ({
|
|||
</div>
|
||||
</div>
|
||||
)}
|
||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||
{!estimatePrintHeader &&
|
||||
table2Data?.OrderType === 'E' &&
|
||||
estimateTitle && (
|
||||
<div
|
||||
style={{
|
||||
textTransform: 'uppercase',
|
||||
|
|
@ -719,8 +723,13 @@ const PrintA4Style11 = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue ===
|
||||
'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
(
|
||||
{item?.Size
|
||||
? item?.Size
|
||||
: '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
|
|
@ -728,6 +737,7 @@ const PrintA4Style11 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
{' '}
|
||||
{item?.BrandName !== null
|
||||
|
|
@ -952,20 +962,44 @@ const PrintA4Style11 = ({
|
|||
</div>
|
||||
</div>
|
||||
{isEditedBill && lastTransaction && (
|
||||
<div style={{
|
||||
width: '100%', marginTop: '2px',
|
||||
paddingTop: '2px', display: 'flex', justifyContent: 'center', alignItems: 'flex-start',
|
||||
flexDirection: 'column', borderTop: '1px dashed #000'
|
||||
}}>
|
||||
<div
|
||||
style={{
|
||||
width: '100%',
|
||||
marginTop: '2px',
|
||||
paddingTop: '2px',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'flex-start',
|
||||
flexDirection: 'column',
|
||||
borderTop: '1px dashed #000',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
fontSize: '12px',
|
||||
width: '100%'
|
||||
width: '100%',
|
||||
}}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600, }}>Bill Gross Amount</span>
|
||||
<strong>{(lastTransaction?.BeforeAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<span
|
||||
style={{
|
||||
color: '#000',
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
Bill Gross Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(
|
||||
lastTransaction?.BeforeAdjustment ||
|
||||
0
|
||||
).toFixed(2)}
|
||||
</strong>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
|
|
@ -973,21 +1007,47 @@ const PrintA4Style11 = ({
|
|||
justifyContent: 'space-between',
|
||||
fontWeight: 600,
|
||||
color:
|
||||
lastTransaction?.AdjustmentType === 'REFUND'
|
||||
lastTransaction?.AdjustmentType ===
|
||||
'REFUND'
|
||||
? '#000'
|
||||
: '#000',
|
||||
}}
|
||||
>
|
||||
<span>{'Adjustment Amount'}</span>
|
||||
<span>
|
||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{lastTransaction?.AdjustmentType ===
|
||||
'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ??
|
||||
0) -
|
||||
(lastTransaction?.AfterAdjustment ??
|
||||
0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>Net Bill Amount</span>
|
||||
<strong>{(lastTransaction?.AfterAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
marginTop: '4px',
|
||||
}}
|
||||
>
|
||||
<span
|
||||
style={{
|
||||
color: '#000',
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
Net Bill Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(
|
||||
lastTransaction?.AfterAdjustment ||
|
||||
0
|
||||
).toFixed(2)}
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1765,6 +1825,7 @@ const PrintA4Style11 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1774,6 +1835,7 @@ const PrintA4Style11 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)}
|
||||
{' '}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
|
|
@ -1996,20 +2058,44 @@ const PrintA4Style11 = ({
|
|||
</div>
|
||||
</div>
|
||||
{isEditedBill && lastTransaction && (
|
||||
<div style={{
|
||||
width: '100%', marginTop: '2px',
|
||||
paddingTop: '2px', display: 'flex', justifyContent: 'center', alignItems: 'flex-start',
|
||||
flexDirection: 'column', borderTop: '1px dashed #000'
|
||||
}}>
|
||||
<div
|
||||
style={{
|
||||
width: '100%',
|
||||
marginTop: '2px',
|
||||
paddingTop: '2px',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'flex-start',
|
||||
flexDirection: 'column',
|
||||
borderTop: '1px dashed #000',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
fontSize: '12px',
|
||||
width: '100%'
|
||||
width: '100%',
|
||||
}}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600, }}>Bill Gross Amount</span>
|
||||
<strong>{(lastTransaction?.BeforeAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<span
|
||||
style={{
|
||||
color: '#000',
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
Bill Gross Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(
|
||||
lastTransaction?.BeforeAdjustment ||
|
||||
0
|
||||
).toFixed(2)}
|
||||
</strong>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
|
|
@ -2017,21 +2103,47 @@ const PrintA4Style11 = ({
|
|||
justifyContent: 'space-between',
|
||||
fontWeight: 600,
|
||||
color:
|
||||
lastTransaction?.AdjustmentType === 'REFUND'
|
||||
lastTransaction?.AdjustmentType ===
|
||||
'REFUND'
|
||||
? '#000'
|
||||
: '#000',
|
||||
}}
|
||||
>
|
||||
<span>{'Adjustment Amount'}</span>
|
||||
<span>
|
||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{lastTransaction?.AdjustmentType ===
|
||||
'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ??
|
||||
0) -
|
||||
(lastTransaction?.AfterAdjustment ??
|
||||
0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>Net Bill Amount</span>
|
||||
<strong>{(lastTransaction?.AfterAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
marginTop: '4px',
|
||||
}}
|
||||
>
|
||||
<span
|
||||
style={{
|
||||
color: '#000',
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
Net Bill Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(
|
||||
lastTransaction?.AfterAdjustment ||
|
||||
0
|
||||
).toFixed(2)}
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -2552,7 +2664,7 @@ const PrintA4Style11 = ({
|
|||
)}
|
||||
</div>
|
||||
|
||||
{(PaymentStatusSuccess?.length > 1 && !isEditedBill) && (
|
||||
{PaymentStatusSuccess?.length > 1 && !isEditedBill && (
|
||||
<>
|
||||
{/* <p>Split Payment:</p> */}
|
||||
{Object.keys(aggregatedPayments).map((paymentType) => (
|
||||
|
|
@ -2650,20 +2762,38 @@ const PrintA4Style11 = ({
|
|||
</div>
|
||||
</div>
|
||||
{isEditedBill && lastTransaction && (
|
||||
<div style={{
|
||||
width: '100%', marginTop: '2px',
|
||||
paddingTop: '2px', display: 'flex', justifyContent: 'center', alignItems: 'flex-start',
|
||||
flexDirection: 'column', borderTop: '1px dashed #000'
|
||||
}}>
|
||||
<div
|
||||
style={{
|
||||
width: '100%',
|
||||
marginTop: '2px',
|
||||
paddingTop: '2px',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'flex-start',
|
||||
flexDirection: 'column',
|
||||
borderTop: '1px dashed #000',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
fontSize: '12px',
|
||||
width: '100%'
|
||||
width: '100%',
|
||||
}}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600, }}>Bill Gross Amount</span>
|
||||
<strong>{(lastTransaction?.BeforeAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>
|
||||
Bill Gross Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(lastTransaction?.BeforeAdjustment || 0).toFixed(
|
||||
2
|
||||
)}
|
||||
</strong>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
|
|
@ -2678,14 +2808,30 @@ const PrintA4Style11 = ({
|
|||
>
|
||||
<span>{'Adjustment Amount'}</span>
|
||||
<span>
|
||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>Net Bill Amount</span>
|
||||
<strong>{(lastTransaction?.AfterAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
marginTop: '4px',
|
||||
}}
|
||||
>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>
|
||||
Net Bill Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(lastTransaction?.AfterAdjustment || 0).toFixed(
|
||||
2
|
||||
)}
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -3217,20 +3363,36 @@ const PrintA4Style11 = ({
|
|||
</div>
|
||||
</div>
|
||||
{isEditedBill && lastTransaction && (
|
||||
<div style={{
|
||||
width: '100%', marginTop: '2px',
|
||||
paddingTop: '2px', display: 'flex', justifyContent: 'center', alignItems: 'flex-start',
|
||||
flexDirection: 'column', borderTop: '1px dashed #000'
|
||||
}}>
|
||||
<div
|
||||
style={{
|
||||
width: '100%',
|
||||
marginTop: '2px',
|
||||
paddingTop: '2px',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'flex-start',
|
||||
flexDirection: 'column',
|
||||
borderTop: '1px dashed #000',
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
fontSize: '12px',
|
||||
width: '100%'
|
||||
width: '100%',
|
||||
}}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600, }}>Bill Gross Amount</span>
|
||||
<strong>{(lastTransaction?.BeforeAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
}}
|
||||
>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>
|
||||
Bill Gross Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(lastTransaction?.BeforeAdjustment || 0).toFixed(2)}
|
||||
</strong>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
|
|
@ -3245,14 +3407,28 @@ const PrintA4Style11 = ({
|
|||
>
|
||||
<span>{'Adjustment Amount'}</span>
|
||||
<span>
|
||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>Net Bill Amount</span>
|
||||
<strong>{(lastTransaction?.AfterAdjustment || 0).toFixed(2)}</strong>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
marginTop: '4px',
|
||||
}}
|
||||
>
|
||||
<span style={{ color: '#000', fontWeight: 600 }}>
|
||||
Net Bill Amount
|
||||
</span>
|
||||
<strong>
|
||||
{(lastTransaction?.AfterAdjustment || 0).toFixed(2)}
|
||||
</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -128,6 +128,10 @@ const PrintStyle1 = ({
|
|||
(setting) =>
|
||||
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
)?.SettingValue === 'Y';
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
|
||||
|
||||
const keysLength = Object.keys(table2Data ?? {}).length;
|
||||
const paymentTypeUPI = PaymentStatus?.find(
|
||||
|
|
@ -772,6 +776,7 @@ const PrintStyle1 = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1032,6 +1037,7 @@ const PrintStyle1 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1041,6 +1047,7 @@ const PrintStyle1 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
{sportsAppPreference &&
|
||||
`${item?.BookingDate?.trim()
|
||||
? `(${dateFormatChange(item.BookingDate)})`
|
||||
|
|
@ -3982,6 +3989,7 @@ const PrintStyle1 = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -4223,6 +4231,7 @@ const PrintStyle1 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -4232,6 +4241,7 @@ const PrintStyle1 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
{sportsAppPreference &&
|
||||
`${item?.BookingDate?.trim()
|
||||
? `(${dateFormatChange(item.BookingDate)})`
|
||||
|
|
|
|||
|
|
@ -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) =>
|
||||
|
|
@ -108,8 +111,7 @@ const PrintStyle10 = ({
|
|||
)?.SettingValue === 'Y';
|
||||
const estimateTitle =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
(setting) => setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
)?.SettingValue === 'Y';
|
||||
const bookingTypePreference = appPreferences?.find(
|
||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||
|
|
@ -486,9 +488,14 @@ const PrintStyle10 = ({
|
|||
</div>
|
||||
)}
|
||||
|
||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||
{!estimatePrintHeader &&
|
||||
table2Data?.OrderType === 'E' &&
|
||||
estimateTitle && (
|
||||
<div
|
||||
style={{ textTransform: 'uppercase', textAlign: 'center' }}
|
||||
style={{
|
||||
textTransform: 'uppercase',
|
||||
textAlign: 'center',
|
||||
}}
|
||||
>
|
||||
Estimate{' '}
|
||||
{SalesModePref?.SettingValue == 'Y' &&
|
||||
|
|
@ -750,13 +757,15 @@ const PrintStyle10 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -1070,6 +1079,7 @@ const PrintStyle10 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1079,6 +1089,7 @@ const PrintStyle10 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -1866,8 +1877,10 @@ const PrintStyle10 = ({
|
|||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -2816,8 +2829,10 @@ const PrintStyle10 = ({
|
|||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -3145,7 +3160,9 @@ const PrintStyle10 = ({
|
|||
</div>
|
||||
</div>
|
||||
)}
|
||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||
{!estimatePrintHeader &&
|
||||
table2Data?.OrderType === 'E' &&
|
||||
estimateTitle && (
|
||||
<div style={{ textTransform: 'uppercase' }}>
|
||||
Estimate{' '}
|
||||
{SalesModePref?.SettingValue == 'Y' &&
|
||||
|
|
@ -3359,13 +3376,15 @@ const PrintStyle10 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -3634,6 +3653,7 @@ const PrintStyle10 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3643,6 +3663,7 @@ const PrintStyle10 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -4367,8 +4388,10 @@ const PrintStyle10 = ({
|
|||
<span>{'Adjustment Amount'}</span>
|
||||
<span>
|
||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -105,6 +105,9 @@ const PrintStyle11 = ({
|
|||
const GlobalLogo = useSelector(GlobalprintLogo);
|
||||
const GlobalCredit = useSelector(GlobalprintCredit);
|
||||
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
const estimatePrintHeader =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
|
|
@ -717,13 +720,16 @@ const PrintStyle11 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''
|
||||
}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -1014,6 +1020,8 @@ const PrintStyle11 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1023,6 +1031,7 @@ const PrintStyle11 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -3328,13 +3337,16 @@ const PrintStyle11 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''
|
||||
}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -3588,6 +3600,8 @@ const PrintStyle11 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3597,6 +3611,7 @@ const PrintStyle11 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
|
|||
|
|
@ -104,6 +104,9 @@ const Printstyle12 = ({
|
|||
const GlobalCredit = useSelector(GlobalprintCredit);
|
||||
const SettingData = useSelector(PreferenceData);
|
||||
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
const estimatePrintHeader =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
|
|
@ -880,13 +883,16 @@ const Printstyle12 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''
|
||||
}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -1127,6 +1133,8 @@ const Printstyle12 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1136,6 +1144,7 @@ const Printstyle12 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -3510,13 +3519,16 @@ const Printstyle12 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''
|
||||
}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -3739,6 +3751,8 @@ const Printstyle12 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
&&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3748,6 +3762,7 @@ const Printstyle12 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
|
|||
|
|
@ -107,6 +107,9 @@ const Printstyle2 = ({
|
|||
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) =>
|
||||
|
|
@ -706,7 +709,8 @@ const Printstyle2 = ({
|
|||
</span>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
) : UomPrint?.SettingValue === 'Y' && (
|
||||
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1045,6 +1049,7 @@ const Printstyle2 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1054,6 +1059,7 @@ const Printstyle2 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -3292,7 +3298,7 @@ const Printstyle2 = ({
|
|||
</span>
|
||||
))}
|
||||
</div>
|
||||
) : (
|
||||
) : UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3592,6 +3598,7 @@ const Printstyle2 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3601,6 +3608,7 @@ const Printstyle2 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
|
|||
|
|
@ -80,6 +80,9 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
|||
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 => setting?.SettingIdName?.toLowerCase() === 'estimateprintheader')?.SettingValue === 'Y';
|
||||
const estimateTitle =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
|
|
@ -279,7 +282,7 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
|||
</span>
|
||||
))}
|
||||
</div>
|
||||
: <div>
|
||||
: UomPrint?.SettingValue === 'Y' &&<div>
|
||||
({item?.Size ? item?.Size : "1"}{" "}
|
||||
{item?.SinglePc == "Y"
|
||||
? "PCS"
|
||||
|
|
@ -333,7 +336,7 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
|||
{GlobaldummyData ? GlobalItem && <div style={{ width: '300%', textAlign: 'left' }}>{item?.ProdName}</div> : Item &&
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '300%', textAlign: 'left', fontWeight: 600 }}>
|
||||
<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>}
|
||||
</div>}
|
||||
{GlobaldummyData ? GlobalHsnCode && <div style={{ width: '100%', textAlign: 'right' }}>{item?.HSN}</div> : HsnCode && <div style={{ width: '100%', textAlign: 'right', fontWeight: 600 }}>{item?.HSN}</div>}
|
||||
{GlobaldummyData ? GlobalMRP && <div style={{ width: '100%', textAlign: 'right', }}>{item?.MRP}</div> : MRP && <div style={{ width: '100%', textAlign: 'right', fontWeight: 600 }}>{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP}</div>}
|
||||
|
|
@ -1200,7 +1203,7 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
|||
</span>
|
||||
))}
|
||||
</div>
|
||||
: <div>
|
||||
: UomPrint?.SettingValue === 'Y' && <div>
|
||||
({item?.Size ? item?.Size : "1"}{" "}
|
||||
{item?.SinglePc == "Y"
|
||||
? "PCS"
|
||||
|
|
@ -1254,7 +1257,7 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
|||
{GlobaldummyData ? GlobalItem && <div style={{ width: '300%', textAlign: 'left' }}>{item?.ProdName}</div> : Item &&
|
||||
<div style={{ display: 'flex', flexDirection: 'column', width: '300%', textAlign: 'left', fontWeight: 600 }}>
|
||||
<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>}
|
||||
</div>}
|
||||
{GlobaldummyData ? GlobalHsnCode && <div style={{ width: '100%', textAlign: 'right' }}>{item?.HSN}</div> : HsnCode && <div style={{ width: '100%', textAlign: 'right', fontWeight: 600 }}>{item?.HSN}</div>}
|
||||
{GlobaldummyData ? GlobalMRP && <div style={{ width: '100%', textAlign: 'right', }}>{item?.MRP}</div> : MRP && <div style={{ width: '100%', textAlign: 'right', fontWeight: 600 }}>{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP}</div>}
|
||||
|
|
|
|||
|
|
@ -114,6 +114,9 @@ const Printstyle4 = ({
|
|||
),
|
||||
];
|
||||
console.log(table2Data, 'table2Data');
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
const estimatePrintHeader =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
|
|
@ -765,12 +768,14 @@ const Printstyle4 = ({
|
|||
) : (
|
||||
<div>
|
||||
{(
|
||||
(item?.Size || '1') +
|
||||
(UomPrint?.SettingValue === 'Y'
|
||||
? (item?.Size || '1') +
|
||||
(item?.SinglePc === 'Y'
|
||||
? ' PCS'
|
||||
: item?.Type !== 'C'
|
||||
? ` ${item?.UomName}`
|
||||
: ' COMBO') +
|
||||
: ' COMBO')
|
||||
: '') +
|
||||
(item?.BrandName
|
||||
? ` ${item?.BrandName}`
|
||||
: '') +
|
||||
|
|
@ -1062,6 +1067,7 @@ const Printstyle4 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1071,6 +1077,7 @@ const Printstyle4 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -3368,12 +3375,6 @@ const Printstyle4 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalQuantity && (
|
||||
<td style={{ textAlign: 'right' }}>
|
||||
{item?.SalesQty}
|
||||
<div>
|
||||
{PackageDetails?.filter(
|
||||
(pkg) => pkg.ProdId === item.ProdId
|
||||
|
|
@ -3424,12 +3425,14 @@ const Printstyle4 = ({
|
|||
) : (
|
||||
<div>
|
||||
{(
|
||||
(item?.Size || '1') +
|
||||
(UomPrint?.SettingValue === 'Y'
|
||||
? (item?.Size || '1') +
|
||||
(item?.SinglePc === 'Y'
|
||||
? ' PCS'
|
||||
: item?.Type !== 'C'
|
||||
? ` ${item?.UomName}`
|
||||
: ' COMBO') +
|
||||
: ' COMBO')
|
||||
: '') +
|
||||
(item?.BrandName
|
||||
? ` ${item?.BrandName}`
|
||||
: '') +
|
||||
|
|
@ -3464,6 +3467,13 @@ const Printstyle4 = ({
|
|||
)}
|
||||
</div>
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalQuantity && (
|
||||
<td style={{ textAlign: 'right' }}>
|
||||
{item?.SalesQty}
|
||||
|
||||
</td>
|
||||
)
|
||||
: Quantity && (
|
||||
<td style={{ textAlign: 'right' }}>
|
||||
|
|
@ -3829,6 +3839,7 @@ const Printstyle4 = ({
|
|||
: Quantity && (
|
||||
<td style={{ textAlign: 'right' }}>
|
||||
{item?.SalesQty}
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3838,6 +3849,7 @@ const Printstyle4 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
|
|||
|
|
@ -103,6 +103,9 @@ const PrintStyle5 = ({
|
|||
const GlobalCashierName = useSelector(GlobalprintCashierName);
|
||||
const GlobalLogo = useSelector(GlobalprintLogo);
|
||||
const GlobalCredit = useSelector(GlobalprintCredit);
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
const estimatePrintHeader =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
|
|
@ -673,6 +676,7 @@ const PrintStyle5 = ({
|
|||
) : (
|
||||
<>
|
||||
<div>{item?.ProdName}</div>
|
||||
{ UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -680,7 +684,7 @@ const PrintStyle5 = ({
|
|||
(GlobaldummyData
|
||||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty)}
|
||||
</div>
|
||||
</div>}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -740,12 +744,12 @@ const PrintStyle5 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
{(item?.Size || '1') +
|
||||
{UomPrint?.SettingValue === 'Y' ?((item?.Size || '1') +
|
||||
(item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO') +
|
||||
: 'COMBO')) :"" +
|
||||
(item?.BrandName || '') +
|
||||
(item?.ProductIdentifierDtls?.filter(
|
||||
(items) =>
|
||||
|
|
@ -1052,6 +1056,7 @@ const PrintStyle5 = ({
|
|||
) : (
|
||||
<>
|
||||
<div>{item?.ProdName}</div>
|
||||
{ UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -1060,6 +1065,7 @@ const PrintStyle5 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty)}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -1076,6 +1082,7 @@ const PrintStyle5 = ({
|
|||
) : (
|
||||
<>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
{(item?.Size ? item?.Size : '1') +
|
||||
(item?.SinglePc == 'Y'
|
||||
|
|
@ -1088,6 +1095,7 @@ const PrintStyle5 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty)}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -2955,6 +2963,7 @@ const PrintStyle5 = ({
|
|||
) : (
|
||||
<>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -2963,6 +2972,7 @@ const PrintStyle5 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty)}
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -3025,12 +3035,12 @@ const PrintStyle5 = ({
|
|||
</div>
|
||||
) : (
|
||||
<div>
|
||||
{(item?.Size || '1') +
|
||||
{UomPrint?.SettingValue === 'Y' ?((item?.Size || '1') +
|
||||
(item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO') +
|
||||
: 'COMBO')):"" +
|
||||
(item?.BrandName || '') +
|
||||
(item?.ProductIdentifierDtls?.filter(
|
||||
(items) =>
|
||||
|
|
@ -3307,6 +3317,7 @@ const PrintStyle5 = ({
|
|||
) : (
|
||||
<>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y'&&
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -3315,6 +3326,7 @@ const PrintStyle5 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty)}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
|
@ -3332,12 +3344,12 @@ const PrintStyle5 = ({
|
|||
<>
|
||||
<div>{item?.ProdName}</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') +
|
||||
: 'COMBO') ):""+
|
||||
'-' +
|
||||
(GlobaldummyData
|
||||
? GlobalQuantity && item?.SalesQty
|
||||
|
|
|
|||
|
|
@ -105,6 +105,9 @@ const Printstyle6 = ({
|
|||
const SettingData = useSelector(PreferenceData);
|
||||
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
||||
console.log(CashierNameField, "GlobaldummyData")
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
const estimatePrintHeader =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
|
|
@ -730,6 +733,7 @@ const Printstyle6 = ({
|
|||
) : (
|
||||
<>
|
||||
<div> {item?.ProdName} </div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -738,6 +742,7 @@ const Printstyle6 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</td>
|
||||
|
|
@ -779,6 +784,7 @@ const Printstyle6 = ({
|
|||
</div>
|
||||
))
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' &&
|
||||
<span>
|
||||
({item?.Size ? item?.Size : '1'}
|
||||
{item?.SinglePc === 'Y'
|
||||
|
|
@ -1096,6 +1102,7 @@ const Printstyle6 = ({
|
|||
) : (
|
||||
<>
|
||||
<div> {item?.ProdName} </div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -1104,6 +1111,7 @@ const Printstyle6 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</td>
|
||||
|
|
@ -1119,7 +1127,7 @@ const Printstyle6 = ({
|
|||
`(${item?.Size + item?.UomName})`
|
||||
: Item &&
|
||||
item?.ProdName +
|
||||
`(${item?.Size ? item?.Size : '1'}${item?.SinglePc == 'Y' ? 'PCS' : item?.Type != 'C' ? item?.UomName : 'COMBO'})`) +
|
||||
UomPrint?.SettingValue === 'Y' ? `(${item?.Size ? item?.Size : '1'}${item?.SinglePc == 'Y' ? 'PCS' : item?.Type != 'C' ? item?.UomName : 'COMBO'})` : '' ) +
|
||||
item?.BrandName !==
|
||||
null
|
||||
? item?.BrandName
|
||||
|
|
@ -3514,6 +3522,7 @@ const Printstyle6 = ({
|
|||
) : (
|
||||
<>
|
||||
<div> {item?.ProdName} </div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -3522,6 +3531,7 @@ const Printstyle6 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</td>
|
||||
|
|
@ -3559,6 +3569,7 @@ const Printstyle6 = ({
|
|||
</div>
|
||||
))
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' &&
|
||||
<span>
|
||||
({item?.Size ? item?.Size : '1'}
|
||||
{item?.SinglePc === 'Y'
|
||||
|
|
@ -3807,6 +3818,7 @@ const Printstyle6 = ({
|
|||
) : (
|
||||
<>
|
||||
<div> {item?.ProdName} </div>
|
||||
{UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
{item?.Size +
|
||||
item?.UomName +
|
||||
|
|
@ -3815,6 +3827,7 @@ const Printstyle6 = ({
|
|||
? GlobalQuantity && item?.SalesQty
|
||||
: item?.SalesQty}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</td>
|
||||
|
|
@ -3830,7 +3843,7 @@ const Printstyle6 = ({
|
|||
`(${item?.Size + item?.UomName})`
|
||||
: Item &&
|
||||
item?.ProdName +
|
||||
`(${item?.Size ? item?.Size : '1'}${item?.SinglePc == 'Y' ? 'PCS' : item?.Type != 'C' ? item?.UomName : 'COMBO'})`) +
|
||||
UomPrint?.SettingValue === 'Y' ? `(${item?.Size ? item?.Size : '1'}${item?.SinglePc == 'Y' ? 'PCS' : item?.Type != 'C' ? item?.UomName : 'COMBO'})` : '' ) +
|
||||
item?.BrandName !==
|
||||
null
|
||||
? item?.BrandName
|
||||
|
|
|
|||
|
|
@ -100,6 +100,9 @@ const PrintStyle7 = ({
|
|||
const GlobalCredit = useSelector(GlobalprintCredit);
|
||||
const SettingData = useSelector(PreferenceData);
|
||||
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||
(i) => i.SettingIdName === 'PrintUom'
|
||||
)?.[0];
|
||||
const estimatePrintHeader =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
|
|
@ -687,6 +690,7 @@ const PrintStyle7 = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -909,13 +913,16 @@ const PrintStyle7 = ({
|
|||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''
|
||||
}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -3122,6 +3129,7 @@ const PrintStyle7 = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' &&
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3331,13 +3339,16 @@ const PrintStyle7 = ({
|
|||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''
|
||||
}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
|
|||
|
|
@ -105,6 +105,9 @@ const Printstyle8 = ({
|
|||
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) =>
|
||||
|
|
@ -112,8 +115,7 @@ const Printstyle8 = ({
|
|||
)?.SettingValue === 'Y';
|
||||
const estimateTitle =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
(setting) => setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
)?.SettingValue === 'Y';
|
||||
const bookingTypePreference = appPreferences?.find(
|
||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||
|
|
@ -769,6 +771,7 @@ const Printstyle8 = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -778,6 +781,7 @@ const Printstyle8 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
|
|
@ -1095,13 +1099,15 @@ const Printstyle8 = ({
|
|||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -1743,8 +1749,10 @@ const Printstyle8 = ({
|
|||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -2740,8 +2748,10 @@ const Printstyle8 = ({
|
|||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -3491,6 +3501,7 @@ const Printstyle8 = ({
|
|||
))}
|
||||
</div>
|
||||
) : (
|
||||
UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3500,6 +3511,7 @@ const Printstyle8 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
|
|
@ -3738,13 +3750,15 @@ const Printstyle8 = ({
|
|||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -4329,8 +4343,10 @@ const Printstyle8 = ({
|
|||
<span>{'Adjustment Amount'}</span>
|
||||
<span>
|
||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
|
|
@ -102,6 +102,9 @@ const PrintStyle9 = ({
|
|||
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) =>
|
||||
|
|
@ -109,8 +112,7 @@ const PrintStyle9 = ({
|
|||
)?.SettingValue === 'Y';
|
||||
const estimateTitle =
|
||||
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(setting) =>
|
||||
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
(setting) => setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||
)?.SettingValue === 'Y';
|
||||
const bookingTypePreference = appPreferences?.find(
|
||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||
|
|
@ -532,7 +534,9 @@ const PrintStyle9 = ({
|
|||
</div>
|
||||
)}
|
||||
|
||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||
{!estimatePrintHeader &&
|
||||
table2Data?.OrderType === 'E' &&
|
||||
estimateTitle && (
|
||||
<div
|
||||
className=""
|
||||
style={{
|
||||
|
|
@ -1062,6 +1066,7 @@ const PrintStyle9 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -1071,6 +1076,7 @@ const PrintStyle9 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -1892,8 +1898,10 @@ const PrintStyle9 = ({
|
|||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -2875,8 +2883,10 @@ const PrintStyle9 = ({
|
|||
{lastTransaction?.AdjustmentType === 'REFUND'
|
||||
? '-'
|
||||
: '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
@ -3281,7 +3291,9 @@ const PrintStyle9 = ({
|
|||
</div>
|
||||
)}
|
||||
|
||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||
{!estimatePrintHeader &&
|
||||
table2Data?.OrderType === 'E' &&
|
||||
estimateTitle && (
|
||||
<div
|
||||
className=""
|
||||
style={{
|
||||
|
|
@ -3427,13 +3439,15 @@ const PrintStyle9 = ({
|
|||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
{UomPrint?.SettingValue === 'Y'
|
||||
? `${item?.Size || '1'} ${
|
||||
item?.SinglePc === 'Y'
|
||||
? 'PCS'
|
||||
: item?.Type != 'C'
|
||||
: item?.Type !== 'C'
|
||||
? item?.UomName
|
||||
: 'COMBO'}
|
||||
)
|
||||
: 'COMBO'
|
||||
}`
|
||||
: ''}
|
||||
{item?.BrandName !== null
|
||||
? item?.BrandName
|
||||
: ''}
|
||||
|
|
@ -3682,6 +3696,7 @@ const PrintStyle9 = ({
|
|||
}}
|
||||
>
|
||||
<div>{item?.ProdName}</div>
|
||||
{UomPrint?.SettingValue === 'Y' && (
|
||||
<div>
|
||||
({item?.Size ? item?.Size : '1'}{' '}
|
||||
{item?.SinglePc == 'Y'
|
||||
|
|
@ -3691,6 +3706,7 @@ const PrintStyle9 = ({
|
|||
: 'COMBO'}
|
||||
)
|
||||
</div>
|
||||
)}
|
||||
</td>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
|
|
@ -4455,8 +4471,10 @@ const PrintStyle9 = ({
|
|||
<span>{'Adjustment Amount'}</span>
|
||||
<span>
|
||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||
{Math.abs(
|
||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||
(lastTransaction?.AfterAdjustment ?? 0)
|
||||
).toFixed(2)}
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue