Implement dynamic header and table color functionality
This commit is contained in:
parent
d5c5365a09
commit
ec17811122
|
|
@ -32,6 +32,17 @@ import {
|
||||||
GlobalPritdummyData,
|
GlobalPritdummyData,
|
||||||
GlobalSignatureImage,
|
GlobalSignatureImage,
|
||||||
GlobalthemeFormat,
|
GlobalthemeFormat,
|
||||||
|
GlobalSelectedPrintHeaderColor,
|
||||||
|
GlobalSelectedPrintHeaderFontColor,
|
||||||
|
GlobalSelectedTableHeaderColor,
|
||||||
|
GlobalSelectedTableHeaderFontColor,
|
||||||
|
GlobalSelectedTableBodyFontColor,
|
||||||
|
GlobalSelectedTableBodyColor,
|
||||||
|
GlobalRowType,
|
||||||
|
GlobalSelectedFooterColor,
|
||||||
|
GlobalSelectedFooterFontColor,
|
||||||
|
GlobalSelectedNetAmountColor,
|
||||||
|
GlobalSelectedNetAmountFontColor,
|
||||||
} from '../../../../Features/ThemeChange/ThemeChange';
|
} from '../../../../Features/ThemeChange/ThemeChange';
|
||||||
import signature from '../../../../Images/signatureimage.jpg';
|
import signature from '../../../../Images/signatureimage.jpg';
|
||||||
import QRCode from 'react-qr-code';
|
import QRCode from 'react-qr-code';
|
||||||
|
|
@ -102,6 +113,23 @@ const PrintA4Style11 = ({
|
||||||
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 SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
||||||
|
const SelectedHeaderFontColor = useSelector(GlobalSelectedPrintHeaderFontColor);
|
||||||
|
const SelectedTableHeaderColor = useSelector(GlobalSelectedTableHeaderColor);
|
||||||
|
const SelectedTableHeaderFontColor = useSelector(GlobalSelectedTableHeaderFontColor);
|
||||||
|
const SelectedTableBodyColor = useSelector(GlobalSelectedTableBodyColor);
|
||||||
|
const SelectedTableBodyFontColor = useSelector(GlobalSelectedTableBodyFontColor);
|
||||||
|
const SelectedRowType = useSelector(GlobalRowType);
|
||||||
|
const SelectedTableFooterColor = useSelector(GlobalSelectedFooterColor);
|
||||||
|
const SelectedTableFooterFontColor = useSelector(GlobalSelectedFooterFontColor);
|
||||||
|
const SelectedNetAmountColor = useSelector(GlobalSelectedNetAmountColor);
|
||||||
|
const SelectedNetAmountFontColor = useSelector(GlobalSelectedNetAmountFontColor);
|
||||||
|
let printColors = printDatas?.PrintColors;
|
||||||
|
const headerColor = printColors?.find(obj => obj.headerColor)?.headerColor;
|
||||||
|
const tableHeaderColor = printColors?.find(obj => obj.tableHeaderColor)?.tableHeaderColor;
|
||||||
|
const tableBodyColor = printColors?.find(obj => obj.tableBodyColor)?.tableBodyColor;
|
||||||
|
const footerColor = printColors?.find(obj => obj.footerColor)?.footerColor;
|
||||||
|
const netAmtColor = printColors?.find(obj => obj.netAmtColor)?.netAmtColor;
|
||||||
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
||||||
(i) => i.SettingIdName === 'PrintUom'
|
(i) => i.SettingIdName === 'PrintUom'
|
||||||
)?.[0];
|
)?.[0];
|
||||||
|
|
@ -279,6 +307,51 @@ const PrintA4Style11 = ({
|
||||||
: 0;
|
: 0;
|
||||||
const shouldFooterBeOnNewPage = lastChunkRows > 6;
|
const shouldFooterBeOnNewPage = lastChunkRows > 6;
|
||||||
|
|
||||||
|
const headerStyle = {
|
||||||
|
backgroundColor: GlobaldummyData
|
||||||
|
? SelectedHeaderColor
|
||||||
|
: headerColor?.background,
|
||||||
|
|
||||||
|
color: GlobaldummyData
|
||||||
|
? SelectedHeaderFontColor
|
||||||
|
: headerColor?.font,
|
||||||
|
}
|
||||||
|
const tableHeaderStyle = {
|
||||||
|
backgroundColor: GlobaldummyData
|
||||||
|
? SelectedTableHeaderColor
|
||||||
|
: tableHeaderColor?.background,
|
||||||
|
|
||||||
|
color: GlobaldummyData
|
||||||
|
? SelectedTableHeaderFontColor
|
||||||
|
: tableHeaderColor?.font,
|
||||||
|
}
|
||||||
|
const tableBodyStyle = {
|
||||||
|
backgroundColor: GlobaldummyData
|
||||||
|
? SelectedTableBodyColor
|
||||||
|
: tableBodyColor?.background,
|
||||||
|
color: GlobaldummyData
|
||||||
|
? SelectedTableBodyFontColor
|
||||||
|
: tableBodyColor?.font,
|
||||||
|
}
|
||||||
|
const rowtypeStyle = GlobaldummyData ? SelectedRowType : tableBodyColor?.rowType;
|
||||||
|
const footerColorStyle = {
|
||||||
|
backgroundColor: GlobaldummyData
|
||||||
|
? SelectedTableFooterColor
|
||||||
|
: footerColor?.background,
|
||||||
|
|
||||||
|
color: GlobaldummyData
|
||||||
|
? SelectedTableFooterFontColor
|
||||||
|
: footerColor?.font,
|
||||||
|
}
|
||||||
|
const netAmountStyle = {
|
||||||
|
backgroundColor: GlobaldummyData
|
||||||
|
? SelectedNetAmountColor
|
||||||
|
: netAmtColor?.background,
|
||||||
|
|
||||||
|
color: GlobaldummyData
|
||||||
|
? SelectedNetAmountFontColor
|
||||||
|
: netAmtColor?.font,
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
|
|
@ -317,6 +390,7 @@ const PrintA4Style11 = ({
|
||||||
justifyContent: 'space-between',
|
justifyContent: 'space-between',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
textAlign: 'left',
|
textAlign: 'left',
|
||||||
|
...headerStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
@ -489,7 +563,7 @@ const PrintA4Style11 = ({
|
||||||
<table className="A4TableStyle11" style={{ width: '100%' }}>
|
<table className="A4TableStyle11" style={{ width: '100%' }}>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td >
|
||||||
{/* Placeholder for the fixed-position header */}
|
{/* Placeholder for the fixed-position header */}
|
||||||
<div className="page-headerA4Style11-space"> </div>
|
<div className="page-headerA4Style11-space"> </div>
|
||||||
</td>
|
</td>
|
||||||
|
|
@ -520,6 +594,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
S.No
|
S.No
|
||||||
|
|
@ -530,20 +605,22 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
S.No
|
S.No
|
||||||
</th>
|
</th>
|
||||||
)}
|
)}
|
||||||
{GlobaldummyData
|
{GlobaldummyData
|
||||||
? GlobalItem && <th>Item</th>
|
? GlobalItem && <th style={{...tableHeaderStyle,}}>Item</th>
|
||||||
: Item == true && <th>Item</th>}
|
: Item == true && <th style={{...tableHeaderStyle,}}>Item</th>}
|
||||||
{GlobaldummyData
|
{GlobaldummyData
|
||||||
? GlobalHsnCode && (
|
? GlobalHsnCode && (
|
||||||
<th
|
<th
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
HSN
|
HSN
|
||||||
|
|
@ -554,6 +631,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
HSN
|
HSN
|
||||||
|
|
@ -565,6 +643,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Qty
|
Qty
|
||||||
|
|
@ -575,6 +654,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
||||||
|
|
@ -586,6 +666,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
MRP
|
MRP
|
||||||
|
|
@ -596,6 +677,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
MRP
|
MRP
|
||||||
|
|
@ -607,6 +689,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Rate
|
Rate
|
||||||
|
|
@ -617,6 +700,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Rate
|
Rate
|
||||||
|
|
@ -628,6 +712,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Dis{' '}
|
Dis{' '}
|
||||||
|
|
@ -638,6 +723,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Dis{' '}
|
Dis{' '}
|
||||||
|
|
@ -649,6 +735,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Tax %
|
Tax %
|
||||||
|
|
@ -660,6 +747,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Tax %
|
Tax %
|
||||||
|
|
@ -671,6 +759,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Amt
|
Amt
|
||||||
|
|
@ -681,6 +770,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
|
...tableHeaderStyle,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Amt
|
Amt
|
||||||
|
|
@ -691,7 +781,18 @@ const PrintA4Style11 = ({
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{dataChunk?.map((item, index) => (
|
{dataChunk?.map((item, index) => (
|
||||||
<tr key={index}>
|
<tr key={index}
|
||||||
|
style={
|
||||||
|
index % 2 !== 1 && rowtypeStyle === "even"
|
||||||
|
? {
|
||||||
|
...tableBodyStyle
|
||||||
|
}
|
||||||
|
: index % 2 === 1 && rowtypeStyle === "odd"
|
||||||
|
? {
|
||||||
|
...tableBodyStyle
|
||||||
|
}
|
||||||
|
: {}
|
||||||
|
}>
|
||||||
{GlobaldummyData
|
{GlobaldummyData
|
||||||
? GlobalSlNo && (
|
? GlobalSlNo && (
|
||||||
<td style={{ textAlign: 'center' }}>
|
<td style={{ textAlign: 'center' }}>
|
||||||
|
|
@ -944,7 +1045,8 @@ const PrintA4Style11 = ({
|
||||||
fontSize: '25px',
|
fontSize: '25px',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
backgroundColor: '#fdc716',
|
// backgroundColor: '#fdc716',
|
||||||
|
...netAmountStyle,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -1323,7 +1425,8 @@ const PrintA4Style11 = ({
|
||||||
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{GlobaldummyData
|
<div style={{ ...footerColorStyle}}>
|
||||||
|
{GlobaldummyData
|
||||||
? GlobalIsnotes && (
|
? GlobalIsnotes && (
|
||||||
<div>
|
<div>
|
||||||
<p style={{ padding: '0rem 1rem' }}>
|
<p style={{ padding: '0rem 1rem' }}>
|
||||||
|
|
@ -1505,6 +1608,7 @@ const PrintA4Style11 = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
@ -1576,6 +1680,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
S.No
|
S.No
|
||||||
|
|
@ -1586,6 +1691,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
S.No
|
S.No
|
||||||
|
|
@ -1600,6 +1706,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
HSN
|
HSN
|
||||||
|
|
@ -1610,6 +1717,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
HSN
|
HSN
|
||||||
|
|
@ -1621,6 +1729,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Qty
|
Qty
|
||||||
|
|
@ -1631,6 +1740,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
||||||
|
|
@ -1642,6 +1752,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
MRP
|
MRP
|
||||||
|
|
@ -1652,6 +1763,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
MRP
|
MRP
|
||||||
|
|
@ -1663,6 +1775,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Rate
|
Rate
|
||||||
|
|
@ -1673,6 +1786,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Rate
|
Rate
|
||||||
|
|
@ -1684,6 +1798,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Dis{' '}
|
Dis{' '}
|
||||||
|
|
@ -1694,6 +1809,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Dis{' '}
|
Dis{' '}
|
||||||
|
|
@ -1705,6 +1821,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Tax %
|
Tax %
|
||||||
|
|
@ -1716,6 +1833,7 @@ const PrintA4Style11 = ({
|
||||||
style={{
|
style={{
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Tax %
|
Tax %
|
||||||
|
|
@ -1728,6 +1846,7 @@ const PrintA4Style11 = ({
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Amt
|
Amt
|
||||||
|
|
@ -1739,6 +1858,7 @@ const PrintA4Style11 = ({
|
||||||
width: '8%',
|
width: '8%',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
textAlign: 'right',
|
textAlign: 'right',
|
||||||
|
...tableHeaderStyle
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
Amt
|
Amt
|
||||||
|
|
@ -1749,7 +1869,18 @@ const PrintA4Style11 = ({
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
{dataChunk?.map((item, index) => (
|
{dataChunk?.map((item, index) => (
|
||||||
<tr key={index}>
|
<tr key={index}
|
||||||
|
style={
|
||||||
|
index % 2 !== 1 && rowtypeStyle === "even"
|
||||||
|
? {
|
||||||
|
...tableBodyStyle
|
||||||
|
}
|
||||||
|
: index % 2 === 1 && rowtypeStyle === "odd"
|
||||||
|
? {
|
||||||
|
...tableBodyStyle
|
||||||
|
}
|
||||||
|
: {}
|
||||||
|
}>
|
||||||
{GlobaldummyData
|
{GlobaldummyData
|
||||||
? GlobalSlNo && (
|
? GlobalSlNo && (
|
||||||
<td style={{ textAlign: 'center' }}>
|
<td style={{ textAlign: 'center' }}>
|
||||||
|
|
@ -1975,7 +2106,8 @@ const PrintA4Style11 = ({
|
||||||
fontSize: '25px',
|
fontSize: '25px',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
backgroundColor: '#fdc716',
|
// backgroundColor: '#fdc716',
|
||||||
|
...netAmountStyle,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -2352,7 +2484,8 @@ const PrintA4Style11 = ({
|
||||||
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{GlobaldummyData
|
<div style={{...footerColorStyle}}>
|
||||||
|
{GlobaldummyData
|
||||||
? GlobalIsnotes && (
|
? GlobalIsnotes && (
|
||||||
<div>
|
<div>
|
||||||
<p style={{ padding: '0rem 1rem' }}>
|
<p style={{ padding: '0rem 1rem' }}>
|
||||||
|
|
@ -2534,6 +2667,7 @@ const PrintA4Style11 = ({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -2631,7 +2765,8 @@ const PrintA4Style11 = ({
|
||||||
fontSize: '25px',
|
fontSize: '25px',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
backgroundColor: '#fdc716',
|
// backgroundColor: '#fdc716',
|
||||||
|
...netAmountStyle,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -2945,7 +3080,8 @@ const PrintA4Style11 = ({
|
||||||
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{GlobaldummyData
|
<div style={{...footerColorStyle}}>
|
||||||
|
{GlobaldummyData
|
||||||
? GlobalIsnotes && (
|
? GlobalIsnotes && (
|
||||||
<div>
|
<div>
|
||||||
<p style={{ padding: '0rem 1rem' }}>
|
<p style={{ padding: '0rem 1rem' }}>
|
||||||
|
|
@ -3116,6 +3252,7 @@ const PrintA4Style11 = ({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
@ -3198,7 +3335,8 @@ const PrintA4Style11 = ({
|
||||||
fontSize: '25px',
|
fontSize: '25px',
|
||||||
fontWeight: '600',
|
fontWeight: '600',
|
||||||
padding: '10px',
|
padding: '10px',
|
||||||
backgroundColor: '#fdc716',
|
// backgroundColor: '#fdc716',
|
||||||
|
...netAmountStyle,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
@ -3494,7 +3632,8 @@ const PrintA4Style11 = ({
|
||||||
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{GlobaldummyData
|
<div style={{...footerColorStyle}}>
|
||||||
|
{GlobaldummyData
|
||||||
? GlobalIsnotes && (
|
? GlobalIsnotes && (
|
||||||
<div>
|
<div>
|
||||||
<p style={{ padding: '0rem 1rem' }}>
|
<p style={{ padding: '0rem 1rem' }}>
|
||||||
|
|
@ -3513,7 +3652,6 @@ const PrintA4Style11 = ({
|
||||||
<hr className="PrintA4Style11-print-dottline" />
|
<hr className="PrintA4Style11-print-dottline" />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
|
@ -3659,6 +3797,7 @@ const PrintA4Style11 = ({
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue