Revert "testing"

This reverts commit 0027bb1f49.
This commit is contained in:
Tamilselvan 2026-03-05 14:06:00 +05:30
parent 0027bb1f49
commit 1b0ed556ee
1 changed files with 145 additions and 151 deletions

View File

@ -31,16 +31,16 @@ import {
GlobalprintCredit, GlobalprintCredit,
GlobalprintTax, GlobalprintTax,
GlobalSelectedPrintHeaderColor, GlobalSelectedPrintHeaderColor,
GlobalSelectedPrintHeaderFontColor, GlobalSelectedPrintHeaderFontColor,
GlobalSelectedTableHeaderColor, GlobalSelectedTableHeaderColor,
GlobalSelectedTableHeaderFontColor, GlobalSelectedTableHeaderFontColor,
GlobalSelectedTableBodyFontColor, GlobalSelectedTableBodyFontColor,
GlobalSelectedTableBodyColor, GlobalSelectedTableBodyColor,
GlobalRowType, GlobalRowType,
GlobalSelectedFooterColor, GlobalSelectedFooterColor,
GlobalSelectedFooterFontColor, GlobalSelectedFooterFontColor,
GlobalSelectedNetAmountColor, GlobalSelectedNetAmountColor,
GlobalSelectedNetAmountFontColor, GlobalSelectedNetAmountFontColor,
} from '../../../../Features/ThemeChange/ThemeChange'; } from '../../../../Features/ThemeChange/ThemeChange';
import { import {
GlobalUpiIDprint, GlobalUpiIDprint,
@ -114,29 +114,23 @@ const Printstyle12 = ({
const GlobalCredit = useSelector(GlobalprintCredit); const GlobalCredit = useSelector(GlobalprintCredit);
const SettingData = useSelector(PreferenceData); const SettingData = useSelector(PreferenceData);
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor); const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
const SelectedHeaderFontColor = useSelector(GlobalSelectedPrintHeaderFontColor); const SelectedHeaderFontColor = useSelector(GlobalSelectedPrintHeaderFontColor);
const SelectedTableHeaderColor = useSelector(GlobalSelectedTableHeaderColor); const SelectedTableHeaderColor = useSelector(GlobalSelectedTableHeaderColor);
const SelectedTableHeaderFontColor = useSelector(GlobalSelectedTableHeaderFontColor); const SelectedTableHeaderFontColor = useSelector(GlobalSelectedTableHeaderFontColor);
const SelectedTableBodyColor = useSelector(GlobalSelectedTableBodyColor); const SelectedTableBodyColor = useSelector(GlobalSelectedTableBodyColor);
const SelectedTableBodyFontColor = useSelector(GlobalSelectedTableBodyFontColor); const SelectedTableBodyFontColor = useSelector(GlobalSelectedTableBodyFontColor);
const SelectedRowType = useSelector(GlobalRowType); const SelectedRowType = useSelector(GlobalRowType);
const SelectedTableFooterColor = useSelector(GlobalSelectedFooterColor); const SelectedTableFooterColor = useSelector(GlobalSelectedFooterColor);
const SelectedTableFooterFontColor = useSelector(GlobalSelectedFooterFontColor); const SelectedTableFooterFontColor = useSelector(GlobalSelectedFooterFontColor);
const SelectedNetAmountColor = useSelector(GlobalSelectedNetAmountColor); const SelectedNetAmountColor = useSelector(GlobalSelectedNetAmountColor);
const SelectedNetAmountFontColor = useSelector(GlobalSelectedNetAmountFontColor); const SelectedNetAmountFontColor = useSelector(GlobalSelectedNetAmountFontColor);
let printColors = printDatas?.PrintColors; let printColors = printDatas?.PrintColors;
const headerColor = printColors?.find(obj => obj.headerColor)?.headerColor; const headerColor = printColors?.find(obj => obj.headerColor)?.headerColor;
const tableHeaderColor = printColors?.find(obj => obj.tableHeaderColor)?.tableHeaderColor; const tableHeaderColor = printColors?.find(obj => obj.tableHeaderColor)?.tableHeaderColor;
const tableBodyColor = printColors?.find(obj => obj.tableBodyColor)?.tableBodyColor; const tableBodyColor = printColors?.find(obj => obj.tableBodyColor)?.tableBodyColor;
const footerColor = printColors?.find(obj => obj.footerColor)?.footerColor; const footerColor = printColors?.find(obj => obj.footerColor)?.footerColor;
const netAmtColor = printColors?.find(obj => obj.netAmtColor)?.netAmtColor; const netAmtColor = printColors?.find(obj => obj.netAmtColor)?.netAmtColor;
const Retailshortname = SettingData?.[0]?.SettingDtlDetails?.find( const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
(setting) => setting?.SettingIdName?.toLowerCase() === 'retailshortname'
);
const Wholesaleshortname = SettingData?.[0]?.SettingDtlDetails?.find(
(setting) => setting?.SettingIdName?.toLowerCase() === 'wholesaleshortname'
);
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
(i) => i.SettingIdName === 'PrintUom' (i) => i.SettingIdName === 'PrintUom'
)?.[0]; )?.[0];
const estimatePrintHeader = const estimatePrintHeader =
@ -510,7 +504,7 @@ const Printstyle12 = ({
await printDiv('PrintStyle12', style12, 'FontApply'); await printDiv('PrintStyle12', style12, 'FontApply');
}; };
const headerStyle = { const headerStyle = {
backgroundColor: GlobaldummyData backgroundColor: GlobaldummyData
? SelectedHeaderColor ? SelectedHeaderColor
: headerColor?.background, : headerColor?.background,
@ -816,67 +810,67 @@ const Printstyle12 = ({
<thead> <thead>
<tr> <tr>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <th style={{ ...tableHeaderStyle }}>S.No</th> ? GlobalSlNo && <th style={{...tableHeaderStyle}}>S.No</th>
: SLNO && <th style={{ ...tableHeaderStyle }}>S.No</th>} : SLNO && <th style={{...tableHeaderStyle}}>S.No</th>}
{GlobaldummyData {GlobaldummyData
? GlobalItem && <th style={{ ...tableHeaderStyle }}>Description</th> ? GlobalItem && <th style={{...tableHeaderStyle}}>Description</th>
: Item && <th style={{ ...tableHeaderStyle }}>Des</th>} : Item && <th style={{...tableHeaderStyle}}>Des</th>}
{GlobaldummyData {GlobaldummyData
? GlobalQuantity && ( ? GlobalQuantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
) )
: Quantity && ( : Quantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
{' '} {' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'} {WeightasKg ? 'Qty/Kg' : 'Qty'}
</th> </th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalMRP && ( ? GlobalMRP && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
) )
: MRP && ( : MRP && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th> <th style={{ ...tableHeaderStyle,textAlign: 'right' }}>MRP</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalRate && ( ? GlobalRate && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
) )
: Rate && ( : Rate && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalHsnCode && ( ? GlobalHsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
) )
: HsnCode && ( : HsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalDiscount && ( ? GlobalDiscount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
) )
: Discount && ( : Discount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalTax && ( ? GlobalTax && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
Tax (%) Tax (%)
</th> </th>
) )
: Tax && : Tax &&
table2Data?.OrderType !== 'E' && ( table2Data?.OrderType !== 'E' && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
Tax (%) Tax (%)
</th> </th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalAmount && ( ? GlobalAmount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th> <th style={{ ...tableHeaderStyle,textAlign: 'right' }}>Amt</th>
) )
: Amount && ( : Amount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
)} )}
</tr> </tr>
</thead> </thead>
@ -884,17 +878,17 @@ const Printstyle12 = ({
{dataChunk?.map((item, index) => { {dataChunk?.map((item, index) => {
return ( return (
<tr key={index} <tr key={index}
style={ style={
index % 2 !== 1 && rowtypeStyle === "even" index % 2 !== 1 && rowtypeStyle === "even"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: index % 2 === 1 && rowtypeStyle === "odd" : index % 2 === 1 && rowtypeStyle === "odd"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: {} : {}
}> }>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td> ? GlobalSlNo && <td>{index + 1}</td>
: SLNO && ( : SLNO && (
@ -1113,67 +1107,67 @@ const Printstyle12 = ({
<thead> <thead>
<tr> <tr>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <th style={{ ...tableHeaderStyle, }}>S.No</th> ? GlobalSlNo && <th style={{...tableHeaderStyle,}}>S.No</th>
: SLNO && <th style={{ ...tableHeaderStyle, }}>S.No</th>} : SLNO && <th style={{...tableHeaderStyle,}}>S.No</th>}
{GlobaldummyData {GlobaldummyData
? GlobalItem && <th style={{ ...tableHeaderStyle, }}>Description</th> ? GlobalItem && <th style={{...tableHeaderStyle,}}>Description</th>
: Item && <th style={{ ...tableHeaderStyle, }}>Des</th>} : Item && <th style={{...tableHeaderStyle,}}>Des</th>}
{GlobaldummyData {GlobaldummyData
? GlobalQuantity && ( ? GlobalQuantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
) )
: Quantity && ( : Quantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
{' '} {' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'} {WeightasKg ? 'Qty/Kg' : 'Qty'}
</th> </th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalMRP && ( ? GlobalMRP && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th> <th style={{ ...tableHeaderStyle,textAlign: 'right' }}>MRP</th>
) )
: MRP && ( : MRP && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalRate && ( ? GlobalRate && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
) )
: Rate && ( : Rate && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalHsnCode && ( ? GlobalHsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
) )
: HsnCode && ( : HsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalDiscount && ( ? GlobalDiscount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
) )
: Discount && ( : Discount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalTax && ( ? GlobalTax && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
Tax (%) Tax (%)
</th> </th>
) )
: Tax && : Tax &&
table2Data?.OrderType !== 'E' && ( table2Data?.OrderType !== 'E' && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
Tax (%) Tax (%)
</th> </th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalAmount && ( ? GlobalAmount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
) )
: Amount && ( : Amount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th> <th style={{ ...tableHeaderStyle,textAlign: 'right' }}>Amt</th>
)} )}
</tr> </tr>
</thead> </thead>
@ -1181,17 +1175,17 @@ const Printstyle12 = ({
{dataChunk?.map((item, index) => { {dataChunk?.map((item, index) => {
return ( return (
<tr key={index} <tr key={index}
style={ style={
index % 2 !== 1 && rowtypeStyle === "even" index % 2 !== 1 && rowtypeStyle === "even"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: index % 2 === 1 && rowtypeStyle === "odd" : index % 2 === 1 && rowtypeStyle === "odd"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: {} : {}
}> }>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td> ? GlobalSlNo && <td>{index + 1}</td>
: SLNO && ( : SLNO && (
@ -3296,7 +3290,7 @@ const Printstyle12 = ({
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? ( {!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
'' ''
) : ( ) : (
<div className="PrintStyle12-firstDiv" style={{ ...headerStyle }}> <div className="PrintStyle12-firstDiv" style={{...headerStyle}}>
{/* <h3>{table2Data?.BrName}</h3> */} {/* <h3>{table2Data?.BrName}</h3> */}
<div style={{ display: 'flex', flexDirection: 'column' }}> <div style={{ display: 'flex', flexDirection: 'column' }}>
<hr <hr
@ -3472,58 +3466,58 @@ const Printstyle12 = ({
<thead> <thead>
<tr> <tr>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <th style={{ ...tableHeaderStyle }}>S.No</th> ? GlobalSlNo && <th style={{...tableHeaderStyle}}>S.No</th>
: SLNO && <th style={{ ...tableHeaderStyle }}>S.No</th>} : SLNO && <th style={{...tableHeaderStyle}}>S.No</th>}
{GlobaldummyData {GlobaldummyData
? GlobalItem && <th style={{ ...tableHeaderStyle }}>Description</th> ? GlobalItem && <th style={{...tableHeaderStyle}}>Description</th>
: Item && <th style={{ ...tableHeaderStyle }}>Des</th>} : Item && <th style={{...tableHeaderStyle}}>Des</th>}
{GlobaldummyData {GlobaldummyData
? GlobalQuantity && ( ? GlobalQuantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
) )
: Quantity && ( : Quantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
{' '} {' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'} {WeightasKg ? 'Qty/Kg' : 'Qty'}
</th> </th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalMRP && ( ? GlobalMRP && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th> <th style={{ ...tableHeaderStyle,textAlign: 'right' }}>MRP</th>
) )
: MRP && <th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th>} : MRP && <th style={{ ...tableHeaderStyle,textAlign: 'right' }}>MRP</th>}
{GlobaldummyData {GlobaldummyData
? GlobalRate && ( ? GlobalRate && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
) )
: Rate && <th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th>} : Rate && <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>}
{GlobaldummyData {GlobaldummyData
? GlobalHsnCode && ( ? GlobalHsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
) )
: HsnCode && ( : HsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalDiscount && ( ? GlobalDiscount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
) )
: Discount && ( : Discount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalTax && ( ? GlobalTax && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th> <th style={{ ...tableHeaderStyle,textAlign: 'right' }}>Tax (%)</th>
) )
: Tax && : Tax &&
table2Data?.OrderType !== 'E' && ( table2Data?.OrderType !== 'E' && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalAmount && ( ? GlobalAmount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
) )
: Amount && <th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th>} : Amount && <th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -3531,17 +3525,17 @@ const Printstyle12 = ({
(item, index) => { (item, index) => {
return ( return (
<tr key={index} <tr key={index}
style={ style={
index % 2 !== 1 && rowtypeStyle === "even" index % 2 !== 1 && rowtypeStyle === "even"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: index % 2 === 1 && rowtypeStyle === "odd" : index % 2 === 1 && rowtypeStyle === "odd"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: {} : {}
}> }>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td> ? GlobalSlNo && <td>{index + 1}</td>
: SLNO && <td>{index + 1}</td>} : SLNO && <td>{index + 1}</td>}
@ -3780,44 +3774,44 @@ const Printstyle12 = ({
<thead> <thead>
<tr> <tr>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <th style={{ ...tableHeaderStyle }}>S.No</th> ? GlobalSlNo && <th style={{...tableHeaderStyle}}>S.No</th>
: SLNO && <th style={{ ...tableHeaderStyle }}>S.No</th>} : SLNO && <th style={{...tableHeaderStyle}}>S.No</th>}
{GlobaldummyData {GlobaldummyData
? GlobalItem && <th style={{ ...tableHeaderStyle }}>Description</th> ? GlobalItem && <th style={{...tableHeaderStyle}}>Description</th>
: Item && <th style={{ ...tableHeaderStyle }}>Des</th>} : Item && <th style={{...tableHeaderStyle}}>Des</th>}
{GlobaldummyData {GlobaldummyData
? GlobalQuantity && ( ? GlobalQuantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
) )
: Quantity && ( : Quantity && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}> <th style={{...tableHeaderStyle, textAlign: 'right' }}>
{' '} {' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'} {WeightasKg ? 'Qty/Kg' : 'Qty'}
</th> </th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalMRP && ( ? GlobalMRP && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
) )
: MRP && <th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th>} : MRP && <th style={{...tableHeaderStyle, textAlign: 'right' }}>MRP</th>}
{GlobaldummyData {GlobaldummyData
? GlobalRate && ( ? GlobalRate && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
) )
: Rate && <th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th>} : Rate && <th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>}
{GlobaldummyData {GlobaldummyData
? GlobalHsnCode && ( ? GlobalHsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
) )
: HsnCode && ( : HsnCode && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalDiscount && ( ? GlobalDiscount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
) )
: Discount && ( : Discount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalTax && ( ? GlobalTax && (
@ -3825,13 +3819,13 @@ const Printstyle12 = ({
) )
: Tax && : Tax &&
table2Data?.OrderType !== 'E' && ( table2Data?.OrderType !== 'E' && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th>
)} )}
{GlobaldummyData {GlobaldummyData
? GlobalAmount && ( ? GlobalAmount && (
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th> <th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
) )
: Amount && <th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th>} : Amount && <th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -3839,17 +3833,17 @@ const Printstyle12 = ({
(item, index) => { (item, index) => {
return ( return (
<tr key={index} <tr key={index}
style={ style={
index % 2 !== 1 && rowtypeStyle === "even" index % 2 !== 1 && rowtypeStyle === "even"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: index % 2 === 1 && rowtypeStyle === "odd" : index % 2 === 1 && rowtypeStyle === "odd"
? { ? {
...tableBodyStyle ...tableBodyStyle
} }
: {} : {}
}> }>
{GlobaldummyData {GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td> ? GlobalSlNo && <td>{index + 1}</td>
: SLNO && <td>{index + 1}</td>} : SLNO && <td>{index + 1}</td>}
@ -4100,7 +4094,7 @@ const Printstyle12 = ({
)} )}
</> </>
)} )}
<div style={{ display: 'flex', justifyContent: 'space-between', ...netAmountStyle }}> <div style={{ display: 'flex', justifyContent: 'space-between',...netAmountStyle }}>
<div style={{ width: '45%', fontWeight: '600' }}>Amount</div> <div style={{ width: '45%', fontWeight: '600' }}>Amount</div>
<div> : </div> <div> : </div>
<div <div