fixed bugs
This commit is contained in:
parent
7a6a888e34
commit
f07880a1fd
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -106,6 +106,11 @@ const PrintA5Style11 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const currentDate = new Date();
|
const currentDate = new Date();
|
||||||
console.log(FieldDetails, 'FieldDetails');
|
console.log(FieldDetails, 'FieldDetails');
|
||||||
const day = currentDate.getDate().toString().padStart(2, '0');
|
const day = currentDate.getDate().toString().padStart(2, '0');
|
||||||
|
|
@ -978,7 +983,7 @@ const PrintA5Style11 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -1959,7 +1964,7 @@ const PrintA5Style11 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -2552,7 +2557,7 @@ const PrintA5Style11 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -2593,7 +2598,7 @@ const PrintA5Style11 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -3141,7 +3146,7 @@ const PrintA5Style11 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -3182,7 +3187,7 @@ const PrintA5Style11 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@ const TaxInvoice = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
let BillName = printDatas?.PrintHdrName;
|
let BillName = printDatas?.PrintHdrName;
|
||||||
let companyColour = printDatas?.PrintHdrColor ?? '#00000';
|
let companyColour = printDatas?.PrintHdrColor ?? '#00000';
|
||||||
|
|
||||||
|
|
@ -374,7 +379,7 @@ const TaxInvoice = ({
|
||||||
>
|
>
|
||||||
<div></div>
|
<div></div>
|
||||||
<h2 style={{ margin: '0', fontSize: '20px', fontWeight: '700' }}>
|
<h2 style={{ margin: '0', fontSize: '20px', fontWeight: '700' }}>
|
||||||
{table2Data?.OrderType === 'E'
|
{table2Data?.OrderType === 'E' && estimateTitle
|
||||||
? 'Estimate'
|
? 'Estimate'
|
||||||
: BillName
|
: BillName
|
||||||
? BillName
|
? BillName
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
|
|
@ -110,6 +110,11 @@ const PrintStyle11 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -481,7 +486,7 @@ const PrintStyle11 = ({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{ textTransform: 'uppercase', textAlign: 'center' }}
|
style={{ textTransform: 'uppercase', textAlign: 'center' }}
|
||||||
>
|
>
|
||||||
|
|
@ -1830,7 +1835,7 @@ const PrintStyle11 = ({
|
||||||
? '-'
|
? '-'
|
||||||
: '+'}
|
: '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -2784,7 +2789,7 @@ const PrintStyle11 = ({
|
||||||
? '-'
|
? '-'
|
||||||
: '+'}
|
: '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -3132,7 +3137,7 @@ const PrintStyle11 = ({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div style={{ textTransform: 'uppercase', textAlign: 'center' }}>
|
<div style={{ textTransform: 'uppercase', textAlign: 'center' }}>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{SalesModePref?.SettingValue == 'Y' &&
|
||||||
|
|
@ -4293,7 +4298,7 @@ const PrintStyle11 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,11 @@ const Printstyle12 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -632,7 +637,7 @@ const Printstyle12 = ({
|
||||||
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
|
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
||||||
|
|
@ -668,7 +673,7 @@ const Printstyle12 = ({
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
||||||
|
|
@ -1827,7 +1832,7 @@ const Printstyle12 = ({
|
||||||
? '-'
|
? '-'
|
||||||
: '+'}
|
: '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -2815,7 +2820,7 @@ const Printstyle12 = ({
|
||||||
? '-'
|
? '-'
|
||||||
: '+'}
|
: '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -3284,7 +3289,7 @@ const Printstyle12 = ({
|
||||||
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
|
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
||||||
|
|
@ -3317,7 +3322,7 @@ const Printstyle12 = ({
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
|
||||||
|
|
@ -4382,7 +4387,7 @@ const Printstyle12 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ const Printstyle2 = ({
|
||||||
const paymentTypeUPI = PaymentStatus?.find(
|
const paymentTypeUPI = PaymentStatus?.find(
|
||||||
(ps) => ps.PaymentTypeName === 'UPI'
|
(ps) => ps.PaymentTypeName === 'UPI'
|
||||||
);
|
);
|
||||||
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
||||||
console.log(Qrcodet, 'Qrcodet', paymentTypeUPI);
|
console.log(Qrcodet, 'Qrcodet', paymentTypeUPI);
|
||||||
const GlobalSignature = useSelector(GlobalprintSignature);
|
const GlobalSignature = useSelector(GlobalprintSignature);
|
||||||
const GlobaltermsAndConditions = useSelector(GlobalprinttermsAndConditions);
|
const GlobaltermsAndConditions = useSelector(GlobalprinttermsAndConditions);
|
||||||
|
|
@ -112,6 +112,11 @@ const Printstyle2 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -413,7 +418,7 @@ const Printstyle2 = ({
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: '18px',
|
fontSize: '18px',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
|
|
@ -450,7 +455,7 @@ const Printstyle2 = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
|
|
@ -1717,7 +1722,7 @@ const Printstyle2 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -2589,7 +2594,7 @@ const Printstyle2 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -3039,7 +3044,7 @@ const Printstyle2 = ({
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: '18px',
|
fontSize: '18px',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
|
|
@ -3076,7 +3081,7 @@ const Printstyle2 = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
|
|
@ -4147,7 +4152,7 @@ const Printstyle2 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,12 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
||||||
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 estimatePrintHeader = SettingData?.[0]?.SettingDtlDetails?.find(setting => setting?.SettingIdName?.toLowerCase() === 'estimateprintheader')?.SettingValue === 'Y'
|
const estimatePrintHeader = SettingData?.[0]?.SettingDtlDetails?.find(setting => setting?.SettingIdName?.toLowerCase() === 'estimateprintheader')?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find((preference) => preference?.PreferredCatName === 'Booking Type')?.PreferenceCatDetails
|
const bookingTypePreference = appPreferences?.find((preference) => preference?.PreferredCatName === 'Booking Type')?.PreferenceCatDetails
|
||||||
const dinePreference = bookingTypePreference?.find((type) => type?.PreferredSubCatName?.toLowerCase() === "dine in" && type?.PreferredStatus === 'Y')
|
const dinePreference = bookingTypePreference?.find((type) => type?.PreferredSubCatName?.toLowerCase() === "dine in" && type?.PreferredStatus === 'Y')
|
||||||
const takeAwayPreference = bookingTypePreference?.find((type) => type?.PreferredSubCatName?.toLowerCase() === "take away" && type?.PreferredStatus === 'Y')
|
const takeAwayPreference = bookingTypePreference?.find((type) => type?.PreferredSubCatName?.toLowerCase() === "take away" && type?.PreferredStatus === 'Y')
|
||||||
|
|
@ -223,13 +228,13 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
||||||
|
|
||||||
{table2Data?.BrGSTIN && <div>GST NO :{GlobaldummyData ? '334bhbsagbysfgbfgbu' : table2Data?.BrGSTIN},</div>}
|
{table2Data?.BrGSTIN && <div>GST NO :{GlobaldummyData ? '334bhbsagbysfgbfgbu' : table2Data?.BrGSTIN},</div>}
|
||||||
<div style={{ fontWeight: '600' }}> Mobile : +91 {GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}</div>
|
<div style={{ fontWeight: '600' }}> Mobile : +91 {GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}</div>
|
||||||
{table2Data?.OrderType === "E" && <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
{table2Data?.OrderType === "E" && estimateTitle && <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
||||||
{table2Data?.OrderType === "E" ? "" : <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>{GlobaldummyData ? 'Cash Bill' : BillName ? BillName : PaymentStatusSuccess?.length === 1 ? PaymentStatusSuccess?.[0]?.PaymentTypeName : ""} {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} </div>}
|
{table2Data?.OrderType === "E" ? "" : <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>{GlobaldummyData ? 'Cash Bill' : BillName ? BillName : PaymentStatusSuccess?.length === 1 ? PaymentStatusSuccess?.[0]?.PaymentTypeName : ""} {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} </div>}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>)}
|
</div>)}
|
||||||
|
|
||||||
{(!estimatePrintHeader && table2Data?.OrderType === "E") && <div style={{ fontSize: "14px", margin: "2px 0 0 0", textAlign: 'center', padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
{(!estimatePrintHeader && table2Data?.OrderType === "E" && estimateTitle) && <div style={{ fontSize: "14px", margin: "2px 0 0 0", textAlign: 'center', padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
||||||
|
|
||||||
<hr className="PrintStyle3-print-dottline" />
|
<hr className="PrintStyle3-print-dottline" />
|
||||||
<div className="PrintStyle3-print-ordr-dtls">
|
<div className="PrintStyle3-print-ordr-dtls">
|
||||||
|
|
@ -537,7 +542,7 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -936,7 +941,7 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -1150,12 +1155,12 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
||||||
|
|
||||||
{table2Data?.BrGSTIN && <div>GST NO :{GlobaldummyData ? '334bhbsagbysfgbfgbu' : table2Data?.BrGSTIN},</div>}
|
{table2Data?.BrGSTIN && <div>GST NO :{GlobaldummyData ? '334bhbsagbysfgbfgbu' : table2Data?.BrGSTIN},</div>}
|
||||||
<div style={{ fontWeight: '600' }}> Mobile : +91 {GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}</div>
|
<div style={{ fontWeight: '600' }}> Mobile : +91 {GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}</div>
|
||||||
{table2Data?.OrderType === "E" && <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
{table2Data?.OrderType === "E" && estimateTitle && <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
||||||
{table2Data?.OrderType === "E" ? "" : <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>{GlobaldummyData ? GlobalBilltext ? GlobalBilltext : "Cash" + ' Bill' : BillName ? BillName : PaymentStatusSuccess?.length === 1 ? PaymentStatusSuccess?.[0]?.PaymentTypeName + ' Bill' : ""} {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
{table2Data?.OrderType === "E" ? "" : <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>{GlobaldummyData ? GlobalBilltext ? GlobalBilltext : "Cash" + ' Bill' : BillName ? BillName : PaymentStatusSuccess?.length === 1 ? PaymentStatusSuccess?.[0]?.PaymentTypeName + ' Bill' : ""} {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
||||||
</div>
|
</div>
|
||||||
</div>)}
|
</div>)}
|
||||||
|
|
||||||
{(!estimatePrintHeader && table2Data?.OrderType === "E") && <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
{(!estimatePrintHeader && table2Data?.OrderType === "E" && estimateTitle) && <div style={{ fontSize: "14px", margin: "2px 0 0 0", padding: 0, fontWeight: 600 }}>Estimate Bill {SalesModePref?.SettingValue == 'Y' && `(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`}</div>}
|
||||||
<hr className="PrintStyle3-print-dottline" />
|
<hr className="PrintStyle3-print-dottline" />
|
||||||
<div className="PrintStyle3-print-ordr-dtls">
|
<div className="PrintStyle3-print-ordr-dtls">
|
||||||
<div style={{ lineheight: '50px' }}>
|
<div style={{ lineheight: '50px' }}>
|
||||||
|
|
@ -1454,7 +1459,7 @@ const PrintStyle3 = ({ index, totalQuantityFilter, Date1, CashierName, totalQuan
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,11 @@ const Printstyle4 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -428,7 +433,7 @@ const Printstyle4 = ({
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
color: SelectedHeaderColor,
|
color: SelectedHeaderColor,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName}{' '}
|
{GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName}{' '}
|
||||||
|
|
@ -495,7 +500,7 @@ const Printstyle4 = ({
|
||||||
{/* <div>{GlobaldummyData ? formattedDate : Date1}</div> */}
|
{/* <div>{GlobaldummyData ? formattedDate : Date1}</div> */}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
className="PrintStyle4-FourthSpan"
|
className="PrintStyle4-FourthSpan"
|
||||||
style={{ textTransform: 'uppercase', fontSize: '12px' }}
|
style={{ textTransform: 'uppercase', fontSize: '12px' }}
|
||||||
|
|
@ -533,21 +538,21 @@ const Printstyle4 = ({
|
||||||
>
|
>
|
||||||
{(TakeawayData?.length > 0 || GlobaldummyData) && (
|
{(TakeawayData?.length > 0 || GlobaldummyData) && (
|
||||||
<>
|
<>
|
||||||
{takeAwayPreference &&
|
{takeAwayPreference &&
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
fontSize: '12px',
|
fontSize: '12px',
|
||||||
fontWeight: '500',
|
fontWeight: '500',
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Poppins',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
TakeAway
|
TakeAway
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div className="PrintStyle4-print-tableMaster">
|
<div className="PrintStyle4-print-tableMaster">
|
||||||
<table className="PrintStyle4-print-table">
|
<table className="PrintStyle4-print-table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
@ -572,15 +577,15 @@ const Printstyle4 = ({
|
||||||
</th>
|
</th>
|
||||||
)
|
)
|
||||||
: Quantity && (
|
: Quantity && (
|
||||||
<th
|
<th
|
||||||
style={{
|
style={{
|
||||||
width: '30px',
|
width: '30px',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
||||||
</th>
|
</th>
|
||||||
)}
|
)}
|
||||||
{GlobaldummyData
|
{GlobaldummyData
|
||||||
? GlobalHsnCode && (
|
? GlobalHsnCode && (
|
||||||
<th
|
<th
|
||||||
|
|
@ -1682,7 +1687,7 @@ const Printstyle4 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -2644,7 +2649,7 @@ const Printstyle4 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -3196,7 +3201,7 @@ const Printstyle4 = ({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
className="PrintStyle4-FourthSpan"
|
className="PrintStyle4-FourthSpan"
|
||||||
style={{ textTransform: 'uppercase', fontSize: '12px' }}
|
style={{ textTransform: 'uppercase', fontSize: '12px' }}
|
||||||
|
|
@ -3230,21 +3235,21 @@ const Printstyle4 = ({
|
||||||
<hr className="PrintStyle4-print-dottline" />
|
<hr className="PrintStyle4-print-dottline" />
|
||||||
{(TakeawayData?.length > 0 || GlobaldummyData) && (
|
{(TakeawayData?.length > 0 || GlobaldummyData) && (
|
||||||
<>
|
<>
|
||||||
{takeAwayPreference &&
|
{takeAwayPreference &&
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
fontSize: '12px',
|
fontSize: '12px',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
fontFamily: 'Poppins',
|
fontFamily: 'Poppins',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Take Away
|
Take Away
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div className="PrintStyle4-print-tableMaster">
|
<div className="PrintStyle4-print-tableMaster">
|
||||||
<table className="PrintStyle4-print-table">
|
<table className="PrintStyle4-print-table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
@ -4398,7 +4403,7 @@ const Printstyle4 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
|
||||||
|
|
@ -108,6 +108,11 @@ const PrintStyle5 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -429,7 +434,7 @@ const PrintStyle5 = ({
|
||||||
? '1234567890'
|
? '1234567890'
|
||||||
: table2Data?.BrMobile}{' '}
|
: table2Data?.BrMobile}{' '}
|
||||||
</div>
|
</div>
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div style={{ textTransform: 'uppercase' }}>
|
<div style={{ textTransform: 'uppercase' }}>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{SalesModePref?.SettingValue == 'Y' &&
|
||||||
|
|
@ -455,7 +460,7 @@ const PrintStyle5 = ({
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{ textTransform: 'uppercase', textAlign: 'center' }}
|
style={{ textTransform: 'uppercase', textAlign: 'center' }}
|
||||||
>
|
>
|
||||||
|
|
@ -1499,7 +1504,7 @@ const PrintStyle5 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -2240,7 +2245,7 @@ const PrintStyle5 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -2721,7 +2726,7 @@ const PrintStyle5 = ({
|
||||||
Mobile :
|
Mobile :
|
||||||
{GlobaldummyData ? '1234567890' : table2Data?.BrMobile}{' '}
|
{GlobaldummyData ? '1234567890' : table2Data?.BrMobile}{' '}
|
||||||
</div>
|
</div>
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div style={{ textTransform: 'uppercase' }}>
|
<div style={{ textTransform: 'uppercase' }}>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{SalesModePref?.SettingValue == 'Y' &&
|
||||||
|
|
@ -2749,7 +2754,7 @@ const PrintStyle5 = ({
|
||||||
<hr />
|
<hr />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div style={{ textTransform: 'uppercase', textAlign: 'center' }}>
|
<div style={{ textTransform: 'uppercase', textAlign: 'center' }}>
|
||||||
Estimate{' '}
|
Estimate{' '}
|
||||||
{SalesModePref?.SettingValue == 'Y' &&
|
{SalesModePref?.SettingValue == 'Y' &&
|
||||||
|
|
@ -3696,7 +3701,7 @@ const PrintStyle5 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
|
||||||
|
|
@ -110,6 +110,11 @@ const Printstyle6 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -441,7 +446,7 @@ const Printstyle6 = ({
|
||||||
Mobile : {table2Data?.BrMobile}
|
Mobile : {table2Data?.BrMobile}
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
textTransform: 'uppercase',
|
textTransform: 'uppercase',
|
||||||
|
|
@ -478,7 +483,7 @@ const Printstyle6 = ({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
textTransform: 'uppercase',
|
textTransform: 'uppercase',
|
||||||
|
|
@ -1696,7 +1701,7 @@ const Printstyle6 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -2698,7 +2703,7 @@ const Printstyle6 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
@ -3297,7 +3302,7 @@ const Printstyle6 = ({
|
||||||
Mobile : {table2Data?.BrMobile}
|
Mobile : {table2Data?.BrMobile}
|
||||||
</div>}
|
</div>}
|
||||||
|
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
textTransform: 'uppercase',
|
textTransform: 'uppercase',
|
||||||
|
|
@ -3337,7 +3342,7 @@ const Printstyle6 = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
textTransform: 'uppercase',
|
textTransform: 'uppercase',
|
||||||
|
|
@ -4375,7 +4380,7 @@ const Printstyle6 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: '4px' }}>
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,11 @@ const PrintStyle7 = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -453,7 +458,7 @@ const PrintStyle7 = ({
|
||||||
: '') + table2Data?.AddressDetails?.[0]?.Zip
|
: '') + table2Data?.AddressDetails?.[0]?.Zip
|
||||||
: '')}
|
: '')}
|
||||||
</div>
|
</div>
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: '12px',
|
fontSize: '12px',
|
||||||
|
|
@ -490,7 +495,7 @@ const PrintStyle7 = ({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: '12px',
|
fontSize: '12px',
|
||||||
|
|
@ -1465,7 +1470,7 @@ const PrintStyle7 = ({
|
||||||
? '-'
|
? '-'
|
||||||
: '+'}
|
: '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -2372,7 +2377,7 @@ const PrintStyle7 = ({
|
||||||
? '-'
|
? '-'
|
||||||
: '+'}
|
: '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -2908,7 +2913,7 @@ const PrintStyle7 = ({
|
||||||
: '') + table2Data?.AddressDetails?.[0]?.Zip
|
: '') + table2Data?.AddressDetails?.[0]?.Zip
|
||||||
: '')}
|
: '')}
|
||||||
</div>
|
</div>
|
||||||
{table2Data?.OrderType === 'E' && (
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: '12px',
|
fontSize: '12px',
|
||||||
|
|
@ -2947,7 +2952,7 @@ const PrintStyle7 = ({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!estimatePrintHeader && table2Data?.OrderType === 'E' && (
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
fontSize: '12px',
|
fontSize: '12px',
|
||||||
|
|
@ -3858,7 +3863,7 @@ const PrintStyle7 = ({
|
||||||
<span>
|
<span>
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
|
@ -133,6 +133,11 @@ const PaymentPdfBooking = ({
|
||||||
(setting) =>
|
(setting) =>
|
||||||
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
|
||||||
)?.SettingValue === 'Y';
|
)?.SettingValue === 'Y';
|
||||||
|
const estimateTitle =
|
||||||
|
SettingData?.[0]?.SettingDtlDetails?.find(
|
||||||
|
(setting) =>
|
||||||
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
||||||
|
)?.SettingValue === 'Y';
|
||||||
const bookingTypePreference = appPreferences?.find(
|
const bookingTypePreference = appPreferences?.find(
|
||||||
(preference) => preference?.PreferredCatName === 'Booking Type'
|
(preference) => preference?.PreferredCatName === 'Booking Type'
|
||||||
)?.PreferenceCatDetails;
|
)?.PreferenceCatDetails;
|
||||||
|
|
@ -402,8 +407,8 @@ const PaymentPdfBooking = ({
|
||||||
{table2Data?.AddressDetails?.[0]?.City &&
|
{table2Data?.AddressDetails?.[0]?.City &&
|
||||||
table2Data?.AddressDetails?.[0]?.Zip &&
|
table2Data?.AddressDetails?.[0]?.Zip &&
|
||||||
table2Data?.AddressDetails?.[0]?.City +
|
table2Data?.AddressDetails?.[0]?.City +
|
||||||
'- ' +
|
'- ' +
|
||||||
table2Data?.AddressDetails?.[0]?.Zip}
|
table2Data?.AddressDetails?.[0]?.Zip}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
@ -435,7 +440,7 @@ const PaymentPdfBooking = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="Re-print-top">
|
<div className="Re-print-top">
|
||||||
{table2Data?.OrderType === 'E' ? (
|
{table2Data?.OrderType === 'E' && estimateTitle ? (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|
@ -581,27 +586,27 @@ const PaymentPdfBooking = ({
|
||||||
|
|
||||||
{item?.ProductIdentifierDtls?.length > 0
|
{item?.ProductIdentifierDtls?.length > 0
|
||||||
? item?.ProductIdentifierDtls.filter(
|
? item?.ProductIdentifierDtls.filter(
|
||||||
(items) =>
|
(items) =>
|
||||||
items.SerialNumber &&
|
items.SerialNumber &&
|
||||||
items.SerialNumber !== ''
|
items.SerialNumber !== ''
|
||||||
).map((a, i) => (
|
).map((a, i) => (
|
||||||
<div key={i}>{a.SerialNumber}</div>
|
<div key={i}>{a.SerialNumber}</div>
|
||||||
))
|
))
|
||||||
: ''}
|
: ''}
|
||||||
{item?.ProductIdentifierDtls?.length > 0
|
{item?.ProductIdentifierDtls?.length > 0
|
||||||
? item?.ProductIdentifierDtls.filter(
|
? item?.ProductIdentifierDtls.filter(
|
||||||
(id) => id.IMEI1 !== '' || id.IMEI2 !== ''
|
(id) => id.IMEI1 !== '' || id.IMEI2 !== ''
|
||||||
).map((id, i) => {
|
).map((id, i) => {
|
||||||
const imei1 = id.IMEI1 || '';
|
const imei1 = id.IMEI1 || '';
|
||||||
const imei2 = id.IMEI2 || '';
|
const imei2 = id.IMEI2 || '';
|
||||||
return (
|
return (
|
||||||
<div key={i}>
|
<div key={i}>
|
||||||
{[imei1, imei2]
|
{[imei1, imei2]
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(',')}
|
.join(',')}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
: ''}
|
: ''}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -618,25 +623,25 @@ const PaymentPdfBooking = ({
|
||||||
|
|
||||||
{item?.ProductIdentifierDtls?.length > 0
|
{item?.ProductIdentifierDtls?.length > 0
|
||||||
? item?.ProductIdentifierDtls.filter(
|
? item?.ProductIdentifierDtls.filter(
|
||||||
(items) =>
|
(items) =>
|
||||||
items.SerialNumber &&
|
items.SerialNumber &&
|
||||||
items.SerialNumber !== ''
|
items.SerialNumber !== ''
|
||||||
).map((a, i) => (
|
).map((a, i) => (
|
||||||
<div key={i}>{a.SerialNumber}</div>
|
<div key={i}>{a.SerialNumber}</div>
|
||||||
))
|
))
|
||||||
: ''}
|
: ''}
|
||||||
{item?.ProductIdentifierDtls?.length > 0
|
{item?.ProductIdentifierDtls?.length > 0
|
||||||
? item?.ProductIdentifierDtls.filter(
|
? item?.ProductIdentifierDtls.filter(
|
||||||
(id) => id.IMEI1 !== '' || id.IMEI2 !== ''
|
(id) => id.IMEI1 !== '' || id.IMEI2 !== ''
|
||||||
).map((id, i) => {
|
).map((id, i) => {
|
||||||
const imei1 = id.IMEI1 || '';
|
const imei1 = id.IMEI1 || '';
|
||||||
const imei2 = id.IMEI2 || '';
|
const imei2 = id.IMEI2 || '';
|
||||||
return (
|
return (
|
||||||
<div key={i}>
|
<div key={i}>
|
||||||
{[imei1, imei2].filter(Boolean).join(',')}
|
{[imei1, imei2].filter(Boolean).join(',')}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
: ''}
|
: ''}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
@ -1252,7 +1257,7 @@ const PaymentPdfBooking = ({
|
||||||
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
|
||||||
{Math.abs(
|
{Math.abs(
|
||||||
(lastTransaction?.BeforeAdjustment ?? 0) -
|
(lastTransaction?.BeforeAdjustment ?? 0) -
|
||||||
(lastTransaction?.AfterAdjustment ?? 0)
|
(lastTransaction?.AfterAdjustment ?? 0)
|
||||||
).toFixed(2)}
|
).toFixed(2)}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue