testing
This commit is contained in:
parent
a123ddfe5e
commit
0027bb1f49
|
|
@ -130,6 +130,12 @@ const Printstyle12 = ({
|
|||
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 Retailshortname = SettingData?.[0]?.SettingDtlDetails?.find(
|
||||
(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'
|
||||
)?.[0];
|
||||
|
|
@ -810,67 +816,67 @@ const Printstyle12 = ({
|
|||
<thead>
|
||||
<tr>
|
||||
{GlobaldummyData
|
||||
? GlobalSlNo && <th style={{...tableHeaderStyle}}>S.No</th>
|
||||
: SLNO && <th style={{...tableHeaderStyle}}>S.No</th>}
|
||||
? GlobalSlNo && <th style={{ ...tableHeaderStyle }}>S.No</th>
|
||||
: SLNO && <th style={{ ...tableHeaderStyle }}>S.No</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalItem && <th style={{...tableHeaderStyle}}>Description</th>
|
||||
: Item && <th style={{...tableHeaderStyle}}>Des</th>}
|
||||
? GlobalItem && <th style={{ ...tableHeaderStyle }}>Description</th>
|
||||
: Item && <th style={{ ...tableHeaderStyle }}>Des</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalQuantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
)
|
||||
: Quantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
{' '}
|
||||
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
||||
</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalMRP && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
|
||||
)
|
||||
: MRP && (
|
||||
<th style={{ ...tableHeaderStyle,textAlign: 'right' }}>MRP</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalRate && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
)
|
||||
: Rate && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalHsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)
|
||||
: HsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalDiscount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)
|
||||
: Discount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalTax && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
Tax (%)
|
||||
</th>
|
||||
)
|
||||
: Tax &&
|
||||
table2Data?.OrderType !== 'E' && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
Tax (%)
|
||||
</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalAmount && (
|
||||
<th style={{ ...tableHeaderStyle,textAlign: 'right' }}>Amt</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
|
||||
)
|
||||
: Amount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
|
||||
)}
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -1107,67 +1113,67 @@ const Printstyle12 = ({
|
|||
<thead>
|
||||
<tr>
|
||||
{GlobaldummyData
|
||||
? GlobalSlNo && <th style={{...tableHeaderStyle,}}>S.No</th>
|
||||
: SLNO && <th style={{...tableHeaderStyle,}}>S.No</th>}
|
||||
? GlobalSlNo && <th style={{ ...tableHeaderStyle, }}>S.No</th>
|
||||
: SLNO && <th style={{ ...tableHeaderStyle, }}>S.No</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalItem && <th style={{...tableHeaderStyle,}}>Description</th>
|
||||
: Item && <th style={{...tableHeaderStyle,}}>Des</th>}
|
||||
? GlobalItem && <th style={{ ...tableHeaderStyle, }}>Description</th>
|
||||
: Item && <th style={{ ...tableHeaderStyle, }}>Des</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalQuantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
)
|
||||
: Quantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
{' '}
|
||||
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
||||
</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalMRP && (
|
||||
<th style={{ ...tableHeaderStyle,textAlign: 'right' }}>MRP</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
|
||||
)
|
||||
: MRP && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>MRP</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalRate && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
)
|
||||
: Rate && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Rate</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalHsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)
|
||||
: HsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalDiscount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)
|
||||
: Discount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalTax && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
Tax (%)
|
||||
</th>
|
||||
)
|
||||
: Tax &&
|
||||
table2Data?.OrderType !== 'E' && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
Tax (%)
|
||||
</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalAmount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
|
||||
)
|
||||
: Amount && (
|
||||
<th style={{ ...tableHeaderStyle,textAlign: 'right' }}>Amt</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Amt</th>
|
||||
)}
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
@ -3290,7 +3296,7 @@ const Printstyle12 = ({
|
|||
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
||||
''
|
||||
) : (
|
||||
<div className="PrintStyle12-firstDiv" style={{...headerStyle}}>
|
||||
<div className="PrintStyle12-firstDiv" style={{ ...headerStyle }}>
|
||||
{/* <h3>{table2Data?.BrName}</h3> */}
|
||||
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
||||
<hr
|
||||
|
|
@ -3466,58 +3472,58 @@ const Printstyle12 = ({
|
|||
<thead>
|
||||
<tr>
|
||||
{GlobaldummyData
|
||||
? GlobalSlNo && <th style={{...tableHeaderStyle}}>S.No</th>
|
||||
: SLNO && <th style={{...tableHeaderStyle}}>S.No</th>}
|
||||
? GlobalSlNo && <th style={{ ...tableHeaderStyle }}>S.No</th>
|
||||
: SLNO && <th style={{ ...tableHeaderStyle }}>S.No</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalItem && <th style={{...tableHeaderStyle}}>Description</th>
|
||||
: Item && <th style={{...tableHeaderStyle}}>Des</th>}
|
||||
? GlobalItem && <th style={{ ...tableHeaderStyle }}>Description</th>
|
||||
: Item && <th style={{ ...tableHeaderStyle }}>Des</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalQuantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
)
|
||||
: Quantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
{' '}
|
||||
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
||||
</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? 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
|
||||
? 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
|
||||
? GlobalHsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)
|
||||
: HsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalDiscount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)
|
||||
: Discount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalTax && (
|
||||
<th style={{ ...tableHeaderStyle,textAlign: 'right' }}>Tax (%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th>
|
||||
)
|
||||
: Tax &&
|
||||
table2Data?.OrderType !== 'E' && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? 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>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -3774,44 +3780,44 @@ const Printstyle12 = ({
|
|||
<thead>
|
||||
<tr>
|
||||
{GlobaldummyData
|
||||
? GlobalSlNo && <th style={{...tableHeaderStyle}}>S.No</th>
|
||||
: SLNO && <th style={{...tableHeaderStyle}}>S.No</th>}
|
||||
? GlobalSlNo && <th style={{ ...tableHeaderStyle }}>S.No</th>
|
||||
: SLNO && <th style={{ ...tableHeaderStyle }}>S.No</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalItem && <th style={{...tableHeaderStyle}}>Description</th>
|
||||
: Item && <th style={{...tableHeaderStyle}}>Des</th>}
|
||||
? GlobalItem && <th style={{ ...tableHeaderStyle }}>Description</th>
|
||||
: Item && <th style={{ ...tableHeaderStyle }}>Des</th>}
|
||||
{GlobaldummyData
|
||||
? GlobalQuantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Qty</th>
|
||||
)
|
||||
: Quantity && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>
|
||||
{' '}
|
||||
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
||||
</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? 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
|
||||
? 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
|
||||
? GlobalHsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)
|
||||
: HsnCode && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>HSN</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalDiscount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)
|
||||
: Discount && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>(%)</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? GlobalTax && (
|
||||
|
|
@ -3819,13 +3825,13 @@ const Printstyle12 = ({
|
|||
)
|
||||
: Tax &&
|
||||
table2Data?.OrderType !== 'E' && (
|
||||
<th style={{...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th>
|
||||
<th style={{ ...tableHeaderStyle, textAlign: 'right' }}>Tax (%)</th>
|
||||
)}
|
||||
{GlobaldummyData
|
||||
? 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>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -4094,7 +4100,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> : </div>
|
||||
<div
|
||||
|
|
|
|||
Loading…
Reference in New Issue