Android_Retail/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle12.jsx

4770 lines
202 KiB
React
Raw Normal View History

2026-01-27 18:27:29 +05:30
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import QrImage from '../../../../Images/qrcode.jpg';
2026-02-04 18:10:12 +05:30
import Logo from '../../../../Images/Logo.jpg';
import {
extractLastNumber,
extractLastNumberOrderId,
printDiv,
} from '../../../../Services/Others';
2026-01-27 18:27:29 +05:30
import {
GlobalprintSlNo,
GlobalprintItem,
GlobalprintMRP,
GlobalprintDiscount,
GlobalprintQuantity,
GlobalprintRate,
GlobalprintAmount,
GlobalprintHsnCode,
GlobalprintQrcodet,
GlobalPritdummyData,
changeReprintDataFound,
GloabalFieldDetails,
GlobalprintSignature,
GlobalprinttermsAndConditions,
GlobalSignatureImage,
Globalnotes,
GlobalthemeFormat,
GlobalBillName,
GlobalprintCashierName,
GlobalprintLogo,
GlobalprintCredit,
GlobalprintTax,
GlobalSelectedPrintHeaderColor,
2026-02-04 18:10:12 +05:30
} from '../../../../Features/ThemeChange/ThemeChange';
import {
GlobalUpiIDprint,
PreferenceData,
} from '../../../../Features/BookingScreen/BookingData/BookingData';
import '../../../../Styles/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle12.scss';
2026-01-27 18:27:29 +05:30
import QRCode from 'react-qr-code';
2026-02-04 18:10:12 +05:30
import signature from '../../../../Images/signatureimage.jpg';
2026-01-27 18:27:29 +05:30
import { ApplicationPreferences } from '../../../../Features/BrachLogin/BranchLogin';
import { isMobile } from 'react-device-detect';
import { settingDataSelector } from '../../../../Features/PreferenceMaster/PreferenceMaster';
2026-02-04 18:10:12 +05:30
const Printstyle12 = ({
index,
ExtraChargeTotal,
Date1,
base64Image,
PrintLogo,
totalQuantityFilter,
CashierName,
totalQuantity,
OrderDetailGST,
OrderDetailIGST,
OrderDetailVAT,
table2Data,
PaymentStatus,
PrintGreeting,
printDatas,
isPdf,
sportsAppPreference,
SalesModePref,
MembershipApplied = null,
}) => {
2026-01-27 18:27:29 +05:30
const dispatch = useDispatch();
2026-02-04 18:10:12 +05:30
const GlobalUpiID = useSelector(GlobalUpiIDprint);
2026-01-27 18:27:29 +05:30
const FieldDetails = useSelector(GloabalFieldDetails);
2026-02-04 18:10:12 +05:30
const SLNO = FieldDetails?.['Sl.No'];
const Item = FieldDetails?.['Item'];
const MRP = FieldDetails?.['MRP'];
const Discount = FieldDetails?.['Discount'];
const Tax = FieldDetails?.['Tax'];
const Quantity = FieldDetails?.['Quantity'];
const Rate = FieldDetails?.['Rate'];
const Amount = FieldDetails?.['Amount'];
const HsnCode = FieldDetails?.['HsnCode'];
const Qrcodet = FieldDetails?.['Qrcode'];
const CashierNameField = FieldDetails?.['CashierName'];
const LogoField = FieldDetails?.['Logo'];
const CreditDetails = FieldDetails?.['Credit details'];
2026-01-27 18:27:29 +05:30
const WeightasKg = FieldDetails?.['Weight'];
2026-02-04 18:10:12 +05:30
const GlobalSlNo = useSelector(GlobalprintSlNo);
const GlobalItem = useSelector(GlobalprintItem);
const GlobalMRP = useSelector(GlobalprintMRP);
const GlobalDiscount = useSelector(GlobalprintDiscount);
const GlobalTax = useSelector(GlobalprintTax);
const GlobalQuantity = useSelector(GlobalprintQuantity);
const GlobalRate = useSelector(GlobalprintRate);
const GlobalAmount = useSelector(GlobalprintAmount);
const GlobalHsnCode = useSelector(GlobalprintHsnCode);
const GlobalQrcodet = useSelector(GlobalprintQrcodet);
const GlobaldummyData = useSelector(GlobalPritdummyData);
2026-01-27 18:27:29 +05:30
const GlobalSignature = useSelector(GlobalprintSignature);
const GlobaltermsAndConditions = useSelector(GlobalprinttermsAndConditions);
const GlobalSignatureImages = useSelector(GlobalSignatureImage);
const GlobalIsnotes = useSelector(Globalnotes);
2026-02-04 18:10:12 +05:30
const GlobalthemeFormatr = useSelector(GlobalthemeFormat);
const GlobalBilltext = useSelector(GlobalBillName);
2026-01-27 18:27:29 +05:30
const appPreferences = useSelector(ApplicationPreferences);
const GlobalCashierName = useSelector(GlobalprintCashierName);
const GlobalLogo = useSelector(GlobalprintLogo);
const GlobalCredit = useSelector(GlobalprintCredit);
const SettingData = useSelector(PreferenceData);
2026-02-05 09:30:32 +05:30
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
2026-02-04 18:10:12 +05:30
const estimatePrintHeader =
SettingData?.[0]?.SettingDtlDetails?.find(
(setting) =>
setting?.SettingIdName?.toLowerCase() === 'estimateprintheader'
)?.SettingValue === 'Y';
2026-02-25 19:27:02 +05:30
const estimateTitle =
SettingData?.[0]?.SettingDtlDetails?.find(
(setting) =>
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
)?.SettingValue === 'Y';
2026-02-04 18:10:12 +05:30
const bookingTypePreference = appPreferences?.find(
(preference) => preference?.PreferredCatName === 'Booking Type'
)?.PreferenceCatDetails;
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 paymentTypeUPI = PaymentStatus?.find(
(ps) => ps.PaymentTypeName === 'UPI'
);
const isEditedBill = PaymentStatus?.some((payment) => {
const type = payment?.AdjustmentType?.toLowerCase();
return (
(type === 'extra' || type === 'refund') &&
payment?.BeforeAdjustment != null &&
payment?.AfterAdjustment != null
);
});
const lastTransaction = PaymentStatus?.find(
(ps) => ps.PaymentStatus === 'S' && ps?.LastOrderTran === 'Y'
);
let TermsAndConditions = printDatas?.TermsandConditions;
let SignatureImg = printDatas?.Signature;
let Notestext = printDatas?.Notes;
let BillName = printDatas?.PrintHdrName;
let FormatTheme = printDatas?.PrintType == 'S' ? true : false;
let PageSize = printDatas?.PageSize;
const Signature = FieldDetails?.['signature'];
const TermsnAdCondition = FieldDetails?.['terms&conditions'];
2026-01-27 18:27:29 +05:30
const PackageDetails = table2Data?.PackageDtl;
const keysLength = Object.keys(table2Data ?? {}).length;
2026-02-04 18:10:12 +05:30
let PaymentStatusSuccess = PaymentStatus?.filter(
(ps) => ps.PaymentStatus === 'S'
);
2026-01-27 18:27:29 +05:30
const printDocument = () => {
window.print();
2026-02-04 18:10:12 +05:30
};
2026-01-27 18:27:29 +05:30
if (keysLength > 0) {
dispatch(changeReprintDataFound(true));
}
2026-02-04 18:10:12 +05:30
const TakeawayData = table2Data?.productDetails?.filter(
(item) => item.BookingTypeName?.toLowerCase() === 'takeaway'
);
const DineInData = table2Data?.productDetails?.filter(
(item) => item.BookingTypeName?.toLowerCase() === 'dine in'
);
2026-01-27 18:27:29 +05:30
const TakeawayTotal = TakeawayData?.reduce(
(accumulator, currentValue) => accumulator + currentValue.TotalAmt,
2026-02-04 18:10:12 +05:30
0
2026-01-27 18:27:29 +05:30
);
const DineInTotal = DineInData?.reduce(
(accumulator, currentValue) => accumulator + currentValue.TotalAmt,
2026-02-04 18:10:12 +05:30
0
2026-01-27 18:27:29 +05:30
);
2026-02-04 18:10:12 +05:30
const aggregatedPayments = PaymentStatusSuccess?.reduce(
(acc, paymentdata) => {
const paymentType = paymentdata?.PaymentTypeName;
const amount = Number(paymentdata?.Amount);
if (acc[paymentType]) {
acc[paymentType] += amount;
} else {
acc[paymentType] = amount;
}
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
return acc;
},
{}
);
2026-01-27 18:27:29 +05:30
const productsData = table2Data?.productDetails || [];
const offers = table2Data?.OrderOfferDetails || [];
let TotalOfferAmount = 0;
// Calculate SalesWiseOffers total amount
2026-02-04 18:10:12 +05:30
offers.forEach((offer) => {
2026-01-27 18:27:29 +05:30
if (offer.TableName === 'SalesWiseOffers') {
TotalOfferAmount += offer.OfferAmount;
}
});
2026-02-04 18:10:12 +05:30
const hasMappedOffer = offers.some((offer) =>
['ItemWiseOffers', 'BundleOffers', 'QuantityWiseOffers'].includes(
offer.TableName
)
2026-01-27 18:27:29 +05:30
);
if (hasMappedOffer) {
2026-02-04 18:10:12 +05:30
const productTotal = productsData?.reduce(
(acc, item) =>
acc + (item?.Type != 'C' ? item.OfferAmt : item.OfferValue || 0),
0
);
2026-01-27 18:27:29 +05:30
TotalOfferAmount += productTotal;
} else {
2026-02-04 18:10:12 +05:30
const Combothere = productsData?.filter((item) => item?.Type == 'C');
const CombothereTotal = Combothere?.reduce(
(acc, item) => acc + (item.OfferValue || 0),
0
);
2026-01-27 18:27:29 +05:30
TotalOfferAmount += CombothereTotal;
}
const products = [
2026-02-04 18:10:12 +05:30
{
ProdName: 'ITEM 1',
Rate: 88.0,
SalesQty: 2,
MRP: 100,
TotalAmt: 176,
discount: 0,
HSN: '01',
Size: 250,
UomName: 'g',
ProdTaxPercentage: 5,
},
{
ProdName: 'ITEM 2',
Rate: 300.0,
SalesQty: 1,
MRP: 350,
TotalAmt: 300,
discount: 0,
HSN: '02',
Size: 250,
UomName: 'g',
ProdTaxPercentage: 5,
},
{
ProdName: 'ITEM 3',
Rate: 200.0,
SalesQty: 1,
MRP: 250,
TotalAmt: 200,
discount: 0,
HSN: '03',
Size: 250,
UomName: 'g',
ProdTaxPercentage: 0,
},
{
ProdName: 'ITEM 4',
Rate: 30.0,
SalesQty: 1,
MRP: 50,
TotalAmt: 30,
discount: 0,
HSN: '04',
Size: 250,
UomName: 'g',
ProdTaxPercentage: 18,
},
{
ProdName: 'ITEM 5',
Rate: 30.0,
SalesQty: 1,
MRP: 50,
TotalAmt: 30,
discount: 0,
HSN: '05',
Size: 250,
UomName: 'g',
ProdTaxPercentage: 40,
},
{
ProdName: 'ITEM 6',
Rate: 130.0,
SalesQty: 1,
MRP: 150,
TotalAmt: 130,
discount: 0,
HSN: '06',
Size: 250,
UomName: 'g',
ProdTaxPercentage: 0,
},
{
ProdName: 'ITEM 7',
Rate: 230.0,
SalesQty: 1,
MRP: 250,
TotalAmt: 230,
discount: 0,
HSN: '08',
Size: 250,
UomName: 'g',
ProdTaxPercentage: 5,
},
2026-01-27 18:27:29 +05:30
];
2026-02-04 18:10:12 +05:30
const chunkSize = PageSize == 'A5' ? 8 : 11;
2026-01-27 18:27:29 +05:30
let dataSource = [];
if (GlobaldummyData || TakeawayData?.length > 0) {
dataSource = GlobaldummyData ? products : TakeawayData;
} else if (DineInData?.length > 0) {
dataSource = DineInData;
}
// Paginate the data
const paginatedChunks = [];
for (let i = 0; i < dataSource.length; i += chunkSize) {
paginatedChunks.push(dataSource.slice(i, i + chunkSize));
}
2026-02-04 18:10:12 +05:30
const lastChunkRows =
paginatedChunks.length > 0
? paginatedChunks[paginatedChunks.length - 1].length
: 0;
const shouldFooterBeOnNewPage = lastChunkRows > (PageSize == 'A5' ? 5 : 10);
2026-01-27 18:27:29 +05:30
const style12 = `<style>
@media print {
body {
font-family: 'Roboto Slab', serif;
font-size: clamp(1.2rem, 2.5vw, 2rem);
font-size:18px
}
}
.PrintStyle12MasterDiv {
color: #000;
line-height: normal;
padding: 1rem 1rem;
font-size: clamp(0.81rem, 2.5vw, 1.2rem);
}
.PrintStyle12-firstDiv {
display: flex;
align-items: center;
justify-content: space-between;
flex-direction: row;
}
.PrintStyle12-SecondDiv {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 5px 0;
}
.PrintStyle12-print-dottline {
border-top: 0.5px dashed rgb(0, 0, 0);
border-width: 0.7px;
border-style: dashed;
border-image: initial;
}
.PrintStyle12-print-solid {
border-top: 0.5px solid rgb(0, 0, 0);
border-width: 0.7px;
border-style: solid;
border-image: initial;
width: 100%;
}
.PrintStyle12-ThirdDivMaster {
display: flex;
flex-direction: column;
}
.PrintStyle12-print-tableMaster {
display: flex;
width: 96%;
}
.PrintStyle12-print-table {
width: 100%;
border-collapse: collapse;
}
.PrintStyle12-print-table th,
.PrintStyle4-print-table td {
padding: 2px 5px;
border-collapse: collapse;
font-weight: 600;
}
.PrintStyle12-print-table th {
background-color: #f2f2f2;
padding: 5px 0px;
font-weight: 600;
font-size: clamp(0.68rem, 2.5vw, 0.9rem);
border-bottom: 1px dashed;
}
.PrintStyle12-print-table td {
font-size: clamp(0.68rem, 2.5vw, 0.9rem);
padding: 0 2px;
}
.PrintStyle12-BrandImage {
width: 87px;
height: auto;
mix-blend-mode: darken;
}
.PrintStyle12-FourthP {
display: flex;
flex-direction: column;
}
.PrintStyle12-FourthSpan {
display: flex;
justify-content: center;
}
.PrintStyle12-Qr-Order {
display: flex;
justify-content: space-between;
flex-direction: row;
padding: 0.5rem 0;
}
.PrintStyle12-OrderNo {
display: flex;
flex-direction: column;
}
.PrintStyle12-QrCode {
display: flex;
flex-direction: column;
}
.PrintStyle12-FourthDiv {
display: flex;
flex-direction: row;
justify-content: space-between;
padding: 0.3rem 0;
align-items: center;
}
.PrintStyle12-Summary {
display: flex;
justify-content: flex-end;
width: 100%;
padding: 0rem 0;
}
</style>`;
const PrintA4 = async () => {
2026-02-04 18:10:12 +05:30
await printDiv('PrintStyle12', style12, 'FontApply');
2026-01-27 18:27:29 +05:30
};
return (
<>
2026-02-04 18:10:12 +05:30
{FormatTheme ? (
<div
id={`PrintStyle12-${index}`}
onClick={PrintA4}
className="PrintStyle12MasterDiv"
style={{
fontFamily: "'Courier New', Courier, monospace",
position: 'relative',
width: '100%',
minHeight: isMobile ? '' : PageSize == 'A5' ? '210mm' : '297mm',
}}
>
2026-01-27 18:27:29 +05:30
{paginatedChunks.map((dataChunk, chunkIndex) => (
<div
2026-02-04 18:10:12 +05:30
className={
isMobile
? `invoice-wrapper container pdf-page`
: `invoice-wrapper container print-chunk${chunkIndex > 0 ? ' print-page-break' : ''}`
}
style={{
display: 'flex',
flexDirection: 'column',
justifyContent:
chunkIndex === paginatedChunks.length - 1 &&
2026-02-05 09:30:32 +05:30
!shouldFooterBeOnNewPage &&
FormatTheme
2026-02-04 18:10:12 +05:30
? 'space-between'
: '',
height: isMobile
? '295mm'
: FormatTheme
? PageSize == 'A5'
? '170mm'
: '257mm'
: '',
}}
key={chunkIndex}
>
2026-01-27 18:27:29 +05:30
{/* <div className="header" style={{ position: isMobile ? "" : GlobaldummyData ? "absolute" : "fixed", top: 0, width: "100%" }}> */}
2026-02-04 18:10:12 +05:30
<div
className="header"
style={{
position: isMobile
? ''
: GlobaldummyData
? 'absolute'
: isPdf
? 'static'
: 'fixed',
top: 0,
width: '100%',
}}
>
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
''
) : (
<div className="PrintStyle12-firstDiv">
<div style={{ display: 'flex', flexDirection: 'column' }}>
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px dashed rgb(0, 0, 0)',
}}
/>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1.8rem)',
fontWeight: '600',
color: SelectedHeaderColor,
2026-02-04 18:10:12 +05:30
}}
>
{GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName}
</div>
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
{GlobaldummyData
? 'BranchAddress, Town- 635XXX City - State'
: (table2Data?.AddressDetails?.[0]?.Address1 || '') +
2026-02-05 09:30:32 +05:30
(table2Data?.AddressDetails?.[0]?.City
? (table2Data?.AddressDetails?.[0]?.Address1 &&
table2Data?.AddressDetails?.[0]?.City
? '-'
: '') + table2Data?.AddressDetails?.[0]?.City
: '') +
(table2Data?.AddressDetails?.[0]?.Zip
? (table2Data?.AddressDetails?.[0]?.City &&
table2Data?.AddressDetails?.[0]?.Zip
? '-'
: '') + table2Data?.AddressDetails?.[0]?.Zip
: '')}
2026-02-04 18:10:12 +05:30
</div>
<div
style={{
margin: '0rem 0.5rem',
display: 'flex',
justifyContent: 'center',
fontWeight: '600',
textTransform: 'capitalize',
}}
className="PrintStyle11-print-BillNO"
>
{GlobaldummyData
? GlobalBilltext
? GlobalBilltext
: 'Cash' + ' Bill'
: BillName
? BillName
: PaymentStatusSuccess?.length === 1
? PaymentStatusSuccess?.[0]?.PaymentTypeName +
2026-02-05 09:30:32 +05:30
' Bill'
2026-02-04 18:10:12 +05:30
: ''}
</div>
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
{' '}
Mobile : +91{' '}
{GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}
</div>
{GlobaldummyData && GlobalCashierName && (
<p style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
{' '}
Cashier : Cashier Name
</p>
)}
{CashierName &&
CashierName !== undefined &&
CashierName !== null &&
!GlobaldummyData &&
CashierNameField && (
<div
style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}
>
Cashier : {CashierName}
</div>
)}
{GlobaldummyData && (
<div
style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}
>
{' '}
Customer : Customer Name
</div>
)}
{table2Data?.CustSuppName &&
table2Data?.CustSuppName !== undefined &&
table2Data?.CustSuppName !== null &&
!GlobaldummyData && (
<div
style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}
>
Customer : {table2Data?.CustSuppName}
</div>
)}
{table2Data?.BookingTypeName == 'Dine In' &&
table2Data?.SalesTableLinkDetails?.[0]?.WaiterName && (
<div>
Captain :{' '}
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
</div>
)}
2026-02-25 19:27:02 +05:30
{table2Data?.OrderType === 'E' && estimateTitle && (
2026-02-04 18:10:12 +05:30
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
fontWeight: '600',
}}
>
Estimate{' '}
</div>
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{GlobalLogo && GlobaldummyData && (
<div style={{ display: 'flex' }}>
{' '}
<img
style={{ width: '60px', height: '60px' }}
src={Logo}
alt="image"
/>
</div>
)}
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
''
) : base64Image &&
(PrintLogo?.SettingValue === 'Y' || LogoField) ? (
<div style={{ display: 'flex' }}>
{' '}
<img
style={{ width: '80px', height: '80px' }}
src={GlobaldummyData ? Logo : base64Image}
alt="image"
/>
</div>
) : null}
</div>
)}
2026-02-25 19:27:02 +05:30
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
2026-02-04 18:10:12 +05:30
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
textAlign: 'center',
fontWeight: '600',
}}
>
Estimate{' '}
</div>
)}
<div className="PrintStyle12-SecondDiv">
<div
style={{
fontWeight: '600',
fontSize: 'clamp(0.9286rem, 2.5vw, 1rem)',
}}
>
Bill No :{' '}
{GlobaldummyData
? '553'
: table2Data?.OrderId &&
2026-02-05 09:30:32 +05:30
extractLastNumberOrderId(
table2Data?.OrderId,
table2Data?.FYStatus
)}
2026-02-04 18:10:12 +05:30
</div>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 1rem',
}}
>
{Date1}
2026-01-27 18:27:29 +05:30
</div>
</div>
</div>
2026-02-04 18:10:12 +05:30
<div
style={{ marginTop: GlobaldummyData ? '9rem' : '0rem' }}
className="print-body"
>
{(TakeawayData?.length > 0 || GlobaldummyData) && (
2026-01-27 18:27:29 +05:30
<>
2026-02-04 18:10:12 +05:30
{takeAwayPreference && (
<div
style={{
display: 'flex',
width: '100%',
justifyContent: 'center',
alignItems: 'center',
fontSize: '12px',
fontWeight: '600',
}}
>
Take Away
</div>
)}
2026-01-27 18:27:29 +05:30
<div className="PrintStyle12-print-tableMaster">
<table className="PrintStyle12-print-table">
<thead>
<tr>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSlNo && <th>S.No</th>
: SLNO && <th>S.No</th>}
{GlobaldummyData
? GlobalItem && <th>Description</th>
: Item && <th>Des</th>}
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Qty</th>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>
{' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'}
</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>MRP</th>
)
2026-02-04 18:10:12 +05:30
: MRP && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>MRP</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Rate</th>
)
2026-02-04 18:10:12 +05:30
: Rate && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Rate</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>
Tax (%)
</th>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<th style={{ textAlign: 'right' }}>
Tax (%)
</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Amt</th>
)
2026-02-04 18:10:12 +05:30
: Amount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Amt</th>
)}
2026-01-27 18:27:29 +05:30
</tr>
</thead>
<tbody>
{dataChunk?.map((item, index) => {
return (
<tr key={index}>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td>
: SLNO && (
2026-02-05 09:30:32 +05:30
<td>
{chunkIndex * chunkSize + index + 1}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalItem && <td>{item?.ProdName}</td>
: Item && (
2026-02-05 09:30:32 +05:30
<td
style={{
display: 'flex',
flexDirection: 'column',
}}
>
<div>{item?.ProdName}</div>
{PackageDetails?.filter(
(pkg) => pkg.ProdId === item.ProdId
).length > 0 ? (
<div>
{PackageDetails?.filter(
(pkg) =>
pkg.ProdId === item.ProdId
)?.map((item, index) => (
<span
key={index}
style={{ display: 'block' }}
>
{item.ParcelCount} PCS{' '}
{item.ParcelQty} PACK (
{item.ParcelType})
</span>
))}
{item?.BrandName !== null
? item?.BrandName
: ''}
&nbsp;
{item?.ProductIdentifierDtls
?.length > 0
? item?.ProductIdentifierDtls?.filter(
(items) =>
!(
items.SerialNumber ==
'' ||
items.SerialNumber == null
)
)?.map((a) => {
return (
<div>{a.SerialNumber}</div>
);
})
: ''}{' '}
{item?.ProductIdentifierDtls
?.length > 0
? item?.ProductIdentifierDtls.filter(
(item1) =>
item1.IMEI1 !== '' ||
item1.IMEI2 !== ''
)?.map((item2) => {
const imei1 =
item2.IMEI1 || '';
const imei2 =
item2.IMEI2 || '';
return (
<div>
{[imei1, imei2]
.filter(Boolean)
.join(',')}
</div>
);
})
: ''}
</div>
) : (
<div>
({item?.Size ? item?.Size : '1'}{' '}
{item?.SinglePc == 'Y'
? 'PCS'
: item?.Type != 'C'
? item?.UomName
: 'COMBO'}
)
{item?.BrandName !== null
? item?.BrandName
: ''}
&nbsp;
{item?.ProductIdentifierDtls
?.length > 0
? item?.ProductIdentifierDtls?.filter(
(items) =>
!(
items.SerialNumber ==
'' ||
items.SerialNumber == null
)
)?.map((a) => {
return (
<div>{a.SerialNumber}</div>
);
})
: ''}{' '}
{item?.ProductIdentifierDtls
?.length > 0
? item?.ProductIdentifierDtls.filter(
(item1) =>
item1.IMEI1 !== '' ||
item1.IMEI2 !== ''
)?.map((item2) => {
const imei1 =
item2.IMEI1 || '';
const imei2 =
item2.IMEI2 || '';
return (
<div>
{[imei1, imei2]
.filter(Boolean)
.join(',')}
</div>
);
})
: ''}
</div>
)}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.MRP}
</td>
)
2026-02-04 18:10:12 +05:30
: MRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SinglePc === 'Y'
? item?.Rate
: item?.MRP}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)
2026-02-04 18:10:12 +05:30
: Rate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.discount}
</td>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.OfferAmt || 0
: item?.OfferValue || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage}
</td>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.TotalAmt}
</td>
)
2026-02-04 18:10:12 +05:30
: Amount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.TotalAmt - item?.OfferAmt || 0
: item?.TotalAmt - item?.OfferValue ||
0}
</td>
)}
2026-01-27 18:27:29 +05:30
</tr>
2026-02-04 18:10:12 +05:30
);
2026-01-27 18:27:29 +05:30
})}
</tbody>
</table>
</div>
</>
2026-02-04 18:10:12 +05:30
)}
{DineInData?.length > 0 && dinePreference && (
2026-01-27 18:27:29 +05:30
<>
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
width: '100%',
justifyContent: 'center',
alignItems: 'center',
fontSize: '12px',
fontWeight: '600',
}}
>
Dine In
</div>
2026-01-27 18:27:29 +05:30
<div className="PrintStyle12-print-tableMaster">
<table className="PrintStyle12-print-table">
<thead>
<tr>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSlNo && <th>S.No</th>
: SLNO && <th>S.No</th>}
{GlobaldummyData
? GlobalItem && <th>Description</th>
: Item && <th>Des</th>}
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Qty</th>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>
{' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'}
</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>MRP</th>
)
2026-02-04 18:10:12 +05:30
: MRP && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>MRP</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Rate</th>
)
2026-02-04 18:10:12 +05:30
: Rate && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Rate</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>
Tax (%)
</th>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<th style={{ textAlign: 'right' }}>
Tax (%)
</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Amt</th>
)
2026-02-04 18:10:12 +05:30
: Amount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Amt</th>
)}
2026-01-27 18:27:29 +05:30
</tr>
</thead>
<tbody>
{dataChunk?.map((item, index) => {
return (
<tr key={index}>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td>
: SLNO && (
2026-02-05 09:30:32 +05:30
<td>
{chunkIndex * chunkSize + index + 1}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalItem && <td>{item?.ProdName}</td>
: Item && (
2026-02-05 09:30:32 +05:30
<td
style={{
display: 'flex',
flexDirection: 'column',
}}
>
<div>{item?.ProdName}</div>
<div>
({item?.Size ? item?.Size : '1'}{' '}
{item?.SinglePc == 'Y'
? 'PCS'
: item?.Type != 'C'
? item?.UomName
: 'COMBO'}
)
</div>
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.MRP}
</td>
)
2026-02-04 18:10:12 +05:30
: MRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SinglePc === 'Y'
? item?.Rate
: item?.MRP}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)
2026-02-04 18:10:12 +05:30
: Rate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.discount}
</td>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.OfferAmt || 0
: item?.OfferValue || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage}
</td>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.TotalAmt}
</td>
)
2026-02-04 18:10:12 +05:30
: Amount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.TotalAmt - item?.OfferAmt || 0
: item?.TotalAmt - item?.OfferValue ||
0}
</td>
)}
2026-01-27 18:27:29 +05:30
</tr>
2026-02-04 18:10:12 +05:30
);
2026-01-27 18:27:29 +05:30
})}
</tbody>
</table>
</div>
</>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{chunkIndex === paginatedChunks.length - 1 &&
!shouldFooterBeOnNewPage &&
FormatTheme && (
<>
<hr className="PrintStyle12-print-dottline " />
<div className="PrintStyle12-Summary">
<div
style={{
display: 'flex',
justifyContent: 'flex-end',
width: '60%',
flexDirection: 'column',
rowGap: '0.2rem',
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
}}
>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%' }}>Items</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
{GlobaldummyData
? '8'
: totalQuantityFilter?.length}
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
</div>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%' }}>Qty</div>
2026-01-27 18:27:29 +05:30
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
{GlobaldummyData ? '9' : totalQuantity}
2026-01-27 18:27:29 +05:30
</div>
</div>
2026-02-04 18:10:12 +05:30
{(table2Data?.OverallDisc > 0 ||
TotalOfferAmount > 0) && (
<div
style={{
display: 'flex',
2026-02-05 09:30:32 +05:30
justifyContent: 'space-between',
2026-02-04 18:10:12 +05:30
}}
>
2026-02-05 09:30:32 +05:30
<div style={{ width: '45%' }}>Off</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
{GlobaldummyData
? '9'
: Number(
2026-02-04 18:10:12 +05:30
TotalOfferAmount + table2Data?.OverallDisc
).toFixed(2)}
2026-02-05 09:30:32 +05:30
</div>
2026-02-04 18:10:12 +05:30
</div>
2026-02-05 09:30:32 +05:30
)}
2026-02-04 18:10:12 +05:30
{/* <div style={{ display: "flex", justifyContent: "space-between" }}>
2026-01-27 18:27:29 +05:30
<div style={{ width: '45%' }}>
Extra Charges
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
0
</div>
</div> */}
2026-02-04 18:10:12 +05:30
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px solid rgb(0, 0, 0)',
}}
/>
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
{DineInData?.length > 0 && TakeawayData?.length > 0 && (
<>
{takeAwayPreference && (
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div
style={{ width: '45%', fontWeight: '600' }}
>
TakeAway
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{Number(TakeawayTotal).toFixed(2)}
</div>
</div>
)}
{dinePreference && (
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div
style={{ width: '45%', fontWeight: '600' }}
>
Dine In
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{Number(DineInTotal).toFixed(2)}
</div>
</div>
)}
</>
)}
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
Amount
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{GlobaldummyData
? '1,066.00'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
</div>
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
{PaymentStatusSuccess?.length > 1 && !isEditedBill && (
<>
{/* <p>Split Payment:</p> */}
{Object.keys(aggregatedPayments).map(
(paymentType) => (
<div
key={paymentType}
style={{
margin: 0,
padding: 0,
fontSize: '12px',
}}
>
{paymentType}:{' '}
{aggregatedPayments[paymentType].toFixed(2)}
</div>
)
)}
</>
)}
{table2Data?.OrderType === 'E' ? (
''
) : (
<div>
{((OrderDetailGST?.length > 0 &&
OrderDetailGST?.[0]?.TaxAmt > 0) ||
(OrderDetailIGST?.length > 0 &&
OrderDetailIGST?.[0]?.TaxAmt > 0) ||
(OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0)) && (
2026-02-05 09:30:32 +05:30
<>
<div>
<p
style={{
margin: 0,
padding: 0,
fontSize: '12px',
textAlign: 'center',
}}
>
--------- GST Breakup Details -----------
</p>
{OrderDetailGST?.length > 0 &&
OrderDetailGST?.[0]?.TaxAmt > 0 && (
<table style={{ width: '90%' }}>
2026-02-04 18:10:12 +05:30
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
2026-02-05 09:30:32 +05:30
></td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Taxable Amount
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
CGST
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
SGST
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
Total Amount
</td>
</tr>
2026-02-05 09:30:32 +05:30
{OrderDetailGST?.map((item) => (
2026-02-04 18:10:12 +05:30
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(
item.WithOutTaxAmount
).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
{Number(item.CGST).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.SGST).toFixed(2)}
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
{Number(item.TotalAmt).toFixed(2)}
2026-02-04 18:10:12 +05:30
</td>
</tr>
))}
</table>
2026-02-05 09:30:32 +05:30
)}
{OrderDetailIGST?.length > 0 &&
OrderDetailIGST?.[0]?.TaxAmt > 0 && (
<>
<div
style={{
border: '0.01px dashed black',
margin: '10px 0 5px 10px',
width: '90%',
}}
></div>
<table style={{ width: '90%' }}>
2026-02-04 18:10:12 +05:30
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
2026-02-05 09:30:32 +05:30
></td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
2026-02-04 18:10:12 +05:30
>
2026-02-05 09:30:32 +05:30
Taxable Amount
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
IGST
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Total Amount
</td>
</tr>
{OrderDetailIGST?.map((item) => (
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(
item.WithOutTaxAmount
).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TaxAmt).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(
2
)}
</td>
</tr>
))}
</table>
</>
)}
{OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0 && (
<>
<div
style={{
border: '0.01px dashed black',
margin: '10px 0 5px 10px',
width: '90%',
}}
></div>
<table style={{ width: '90%' }}>
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
></td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
Taxable Amount
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
VAT
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Total Amount
2026-02-04 18:10:12 +05:30
</td>
</tr>
2026-02-05 09:30:32 +05:30
{OrderDetailVAT?.map((item) => (
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(
item.WithOutTaxAmount
).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TaxAmt).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(
2
)}
</td>
</tr>
))}
</table>
</>
)}
</div>
</>
)}
2026-02-04 18:10:12 +05:30
</div>
)}
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px solid rgb(0, 0, 0)',
}}
/>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
{PaymentStatusSuccess?.length === 1
? PaymentStatusSuccess?.[0]?.PaymentTypeName
: 'Split'}{' '}
&nbsp; Payment
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{GlobaldummyData
? '1,066.00'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
</div>
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{/* <div style={{ display: "flex", justifyContent: "space-between" }}>
2026-01-27 18:27:29 +05:30
<div style={{ width: '45%' }}>
Recived Amt
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
{GlobaldummyData ? '1,066.00' : Number(table2Data?.NetAmount).toFixed(2) ? Number(table2Data?.NetAmount).toFixed(2) : 0}
</div>
</div>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ width: '45%' }}>
Balance Amt
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
0.00
</div>
</div> */}
2026-02-04 18:10:12 +05:30
</div>
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{isEditedBill && lastTransaction && (
<div
style={{
width: '100%',
marginTop: '2px',
paddingTop: '2px',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
borderTop: '1px dashed #000',
}}
>
<div
style={{
fontSize: '12px',
width: '90%',
}}
>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<span style={{ color: '#000', fontWeight: '600' }}>
Bill Gross Amount
</span>
<strong>
{(lastTransaction?.BeforeAdjustment || 0).toFixed(
2
)}
</strong>
</div>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
fontWeight: '800',
color: '#000',
}}
>
<span>{'Adjustment Amount'}</span>
<span>
{lastTransaction?.AdjustmentType === 'REFUND'
? '-'
: '+'}
2026-02-06 19:41:52 +05:30
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
2026-02-25 19:27:02 +05:30
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
2026-02-04 18:10:12 +05:30
</span>
</div>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
marginTop: '4px',
}}
>
<span style={{ color: '#000', fontWeight: '600' }}>
Net Bill Amount
</span>
<strong>
{(lastTransaction?.AfterAdjustment || 0).toFixed(
2
)}
</strong>
</div>
</div>
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
{GlobaldummyData
? GlobalCredit && (
2026-02-05 09:30:32 +05:30
<div
style={{
textAlign: 'left',
fontSize: '14px',
fontWeight: '600',
lineHeight: '12px',
}}
>
<h6>Advance Amount:</h6>
<h6>Opening Balance:</h6>
</div>
)
2026-02-04 18:10:12 +05:30
: CreditDetails &&
2026-02-05 09:30:32 +05:30
table2Data?.CustomerDetails?.length > 0 && (
<div
style={{
textAlign: 'left',
fontSize: '12px',
fontWeight: '600',
lineHeight: '12px',
}}
>
{/* OLD CREDIT BAL */}
{PaymentStatusSuccess?.[0]?.PaymentTypeName ===
'Credit' && (
2026-02-04 18:10:12 +05:30
<>
{table2Data.CustomerDetails[0].OldCreditBal >
2026-02-05 09:30:32 +05:30
0 ? (
2026-02-04 18:10:12 +05:30
<p>
Advance Amount:
{table2Data.CustomerDetails[0].OldCreditBal}
</p>
) : table2Data.CustomerDetails[0].OldCreditBal <
0 ? (
<p>
{' '}
Opening Balance:{' '}
{Math.abs(
table2Data.CustomerDetails[0].OldCreditBal
)}
</p>
) : null}
</>
)}
2026-02-05 09:30:32 +05:30
{/* CURRENT CREDIT BAL */}
{table2Data.CustomerDetails[0].CurrentCreditBal >
2026-02-04 18:10:12 +05:30
0 ? (
2026-02-05 09:30:32 +05:30
<p>
{' '}
Current Advance Amount:{' '}
{table2Data.CustomerDetails[0].CurrentCreditBal}
</p>
) : table2Data.CustomerDetails[0].CurrentCreditBal <
0 ? (
<p>
{' '}
Current Balance Amount:{' '}
{Math.abs(
table2Data.CustomerDetails[0].CurrentCreditBal
)}
</p>
) : null}
</div>
)}
2026-02-04 18:10:12 +05:30
<hr className="PrintStyle12-print-dottline" />
<div className="PrintStyle12-Qr-Order">
<div className="PrintStyle12-OrderNo">
<div
style={{
fontWeight: '600',
fontSize: 'clamp(0.8rem, 2.5vw, 1rem)',
}}
>
Your Order No:{' '}
{GlobaldummyData
? '53'
: table2Data?.SalesId &&
2026-02-05 09:30:32 +05:30
extractLastNumber(table2Data?.SalesId)}
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
</div>
2026-02-04 19:16:18 +05:30
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalQrcodet && (
2026-02-05 09:30:32 +05:30
<div className="PrintStyle12-QrCode">
<img
className="PrintStyle12-BrandImage"
src={QrImage}
alt="image"
/>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 3px',
}}
>
{' '}
Scan to Pay:{' '}
</div>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 3px',
}}
>
&#8377;
{GlobaldummyData
? '1,066'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
</div>
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Qrcodet &&
paymentTypeUPI && (
<div
style={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
padding: '0rem 2rem',
}}
>
<QRCode
value={`upi://pay?pa=${GlobalUpiID}&pn=Merchant&am=${table2Data?.NetAmount}&cu=INR`}
size={80}
2026-02-04 18:10:12 +05:30
/>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
}}
>
2026-02-05 09:30:32 +05:30
Scan to Pay{' '}
2026-02-04 18:10:12 +05:30
</div>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
}}
>
2026-02-05 09:30:32 +05:30
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? '1,066'
2026-02-05 09:30:32 +05:30
: Number(table2Data?.NetAmount).toFixed(2)}
2026-02-04 18:10:12 +05:30
</div>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{sportsAppPreference && MembershipApplied && (
<div
style={{
width: '100%',
textAlign: 'center',
paddingTop: '10px',
fontSize: '13px',
}}
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
)}
<div
className="page-footerA4Style11"
style={{
marginTop: 'auto',
pageBreakBefore: 'avoid',
pageBreakInside: 'avoid',
minHeight: 'auto',
}}
>
{GlobaldummyData
? GlobalIsnotes && (
2026-02-05 09:30:32 +05:30
<div>
<p style={{ padding: '0rem 1rem' }}>
Notes : 10 days Return policy
</p>
<hr className="PrintA4Style11-print-dottline" />
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Notestext && (
2026-02-04 18:10:12 +05:30
<div>
<p style={{ padding: '0rem 1rem' }}>
2026-02-05 09:30:32 +05:30
{Notestext}
2026-02-04 18:10:12 +05:30
</p>
<hr className="PrintA4Style11-print-dottline" />
</div>
2026-02-05 09:30:32 +05:30
)}
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
width: '90%',
padding: '0 1rem',
justifyContent: GlobaltermsAndConditions
? 'space-between'
: 'flex-end',
alignItems: 'center',
}}
>
{GlobaldummyData
? GlobaltermsAndConditions && (
2026-02-05 09:30:32 +05:30
<div
style={{
margin: '8px 0',
padding: '8px',
fontFamily: 'sans-serif',
width: '100%',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Terms & Conditions
</p>
<ol
style={{
fontSize: '12px',
paddingLeft: '18px',
margin: 0,
lineHeight: '1',
}}
>
<li>
Once goods are sold, they are not
exchangeable or refundable.
</li>
<li>
Please check the product before leaving the
counter.
</li>
</ol>
</div>
)
: !estimatePrintHeader &&
table2Data?.OrderType === 'E'
? ''
: TermsnAdCondition == true &&
TermsAndConditions?.length > 0 && (
2026-02-04 18:10:12 +05:30
<div
style={{
margin: '8px 0',
fontFamily: 'sans-serif',
width: '100%',
2026-02-05 09:30:32 +05:30
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
2026-02-04 18:10:12 +05:30
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Terms & Conditions
</p>
<ol
style={{
fontSize: '12px',
paddingLeft: '18px',
margin: 0,
lineHeight: '1',
}}
>
2026-02-05 09:30:32 +05:30
{TermsAndConditions?.map((item) => (
<li style={{ textAlign: 'start' }}>
{item?.TermsandConditions}
</li>
))}
{/* <li>Please check the product before leaving the counter.</li> */}
2026-02-04 18:10:12 +05:30
</ol>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSignature && (
2026-02-05 09:30:32 +05:30
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-end',
paddingBottom: '1rem',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Signature
</p>
<img
style={{ width: '70px', height: '40px' }}
src={
GlobalSignatureImages
? GlobalSignatureImages
: signature
}
alt=""
/>
</div>
)
: !estimatePrintHeader &&
table2Data?.OrderType === 'E'
? ''
: Signature == true && (
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
flexDirection: 'column',
2026-02-05 09:30:32 +05:30
alignItems: 'center',
marginTop: '1rem',
2026-02-04 18:10:12 +05:30
paddingBottom: '1rem',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Signature
</p>
<img
2026-02-05 09:30:32 +05:30
style={{ width: '100px', height: '60px' }}
src={SignatureImg}
2026-02-04 18:10:12 +05:30
alt=""
/>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-02-04 18:10:12 +05:30
</div>
2026-02-04 19:16:18 +05:30
</div>
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
{PrintGreeting?.SettingValue === 'Y' && (
<div className="PrintStyle12-FourthSpan">
Thank You Visit Again
</div>
)}
</>
)}
2026-01-27 18:27:29 +05:30
</div>
))}
2026-02-04 18:10:12 +05:30
{shouldFooterBeOnNewPage && FormatTheme && (
2026-01-27 18:27:29 +05:30
<div
className="print-page"
style={{
2026-02-04 18:10:12 +05:30
display: 'flex',
flexDirection: 'column',
minHeight: PageSize == 'A5' ? '200mm' : '260mm',
justifyContent: 'flex-end',
pageBreakBefore: 'always',
2026-01-27 18:27:29 +05:30
}}
>
2026-02-04 18:10:12 +05:30
<div
className="page-footerA4Style11"
2026-01-27 18:27:29 +05:30
style={{
2026-02-04 18:10:12 +05:30
marginTop: 'auto',
pageBreakBefore: 'avoid',
pageBreakInside: 'avoid',
minHeight: 'auto',
2026-01-27 18:27:29 +05:30
}}
>
<>
<hr className="PrintStyle12-print-dottline " />
2026-02-04 18:10:12 +05:30
<div className="PrintStyle12-Summary">
<div
style={{
display: 'flex',
justifyContent: 'flex-end',
width: '60%',
flexDirection: 'column',
rowGap: '0.2rem',
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
}}
>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%' }}>Items</div>
2026-01-27 18:27:29 +05:30
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
2026-01-27 18:27:29 +05:30
{GlobaldummyData ? '8' : totalQuantityFilter?.length}
</div>
</div>
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%' }}>Qty</div>
2026-01-27 18:27:29 +05:30
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
2026-01-27 18:27:29 +05:30
{GlobaldummyData ? '9' : totalQuantity}
</div>
</div>
2026-02-04 18:10:12 +05:30
{(table2Data?.OverallDisc > 0 ||
TotalOfferAmount > 0) && (
<div
style={{
display: 'flex',
2026-02-05 09:30:32 +05:30
justifyContent: 'space-between',
2026-02-04 18:10:12 +05:30
}}
>
2026-02-05 09:30:32 +05:30
<div style={{ width: '45%' }}>Off</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
{GlobaldummyData
? '9'
: Number(
2026-02-04 18:10:12 +05:30
TotalOfferAmount + table2Data?.OverallDisc
).toFixed(2)}
2026-02-05 09:30:32 +05:30
</div>
2026-01-27 18:27:29 +05:30
</div>
2026-02-05 09:30:32 +05:30
)}
2026-01-27 18:27:29 +05:30
{/* <div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ width: '45%' }}>
Extra Charges
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
0
</div>
</div> */}
2026-02-04 18:10:12 +05:30
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px solid rgb(0, 0, 0)',
}}
/>
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
{DineInData?.length > 0 && TakeawayData?.length > 0 && (
2026-01-27 18:27:29 +05:30
<>
2026-02-04 18:10:12 +05:30
{takeAwayPreference && (
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
TakeAway
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{Number(TakeawayTotal).toFixed(2)}
</div>
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
{dinePreference && (
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
Dine In
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{Number(DineInTotal).toFixed(2)}
</div>
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
</>
2026-02-04 18:10:12 +05:30
)}
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
2026-01-27 18:27:29 +05:30
Amount
</div>
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{GlobaldummyData
? '1,066.00'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
2026-01-27 18:27:29 +05:30
</div>
</div>
2026-02-04 18:10:12 +05:30
{PaymentStatusSuccess?.length > 1 && !isEditedBill && (
2026-01-27 18:27:29 +05:30
<>
{/* <p>Split Payment:</p> */}
2026-02-04 18:10:12 +05:30
{Object.keys(aggregatedPayments).map(
(paymentType) => (
<div
key={paymentType}
style={{
margin: 0,
padding: 0,
fontSize: '12px',
}}
>
{paymentType}:{' '}
{aggregatedPayments[paymentType].toFixed(2)}
</div>
)
)}
2026-01-27 18:27:29 +05:30
</>
2026-02-04 18:10:12 +05:30
)}
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
''
) : (
2026-01-27 18:27:29 +05:30
<div>
2026-02-04 18:10:12 +05:30
{((OrderDetailGST?.length > 0 &&
OrderDetailGST?.[0]?.TaxAmt > 0) ||
(OrderDetailIGST?.length > 0 &&
OrderDetailIGST?.[0]?.TaxAmt > 0) ||
(OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0)) && (
2026-02-05 09:30:32 +05:30
<>
<div>
<p
style={{
margin: 0,
padding: 0,
fontSize: '12px',
textAlign: 'center',
}}
>
--------- GST Breakup Details -----------
</p>
{OrderDetailGST?.length > 0 &&
OrderDetailGST?.[0]?.TaxAmt > 0 && (
<table style={{ width: '90%' }}>
2026-01-27 18:27:29 +05:30
<tr>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
2026-02-05 09:30:32 +05:30
></td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Taxable Amount
2026-01-27 18:27:29 +05:30
</td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
CGST
2026-02-04 18:10:12 +05:30
</td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
SGST
2026-02-04 18:10:12 +05:30
</td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
Total Amount
2026-02-04 18:10:12 +05:30
</td>
</tr>
2026-02-05 09:30:32 +05:30
{OrderDetailGST?.map((item) => (
2026-02-04 18:10:12 +05:30
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(
item.WithOutTaxAmount
).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
{Number(item.CGST).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.SGST).toFixed(2)}
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(2)}
</td>
</tr>
))}
</table>
2026-02-05 09:30:32 +05:30
)}
{OrderDetailIGST?.length > 0 &&
OrderDetailIGST?.[0]?.TaxAmt > 0 && (
<>
<div
style={{
border: '0.01px dashed black',
margin: '10px 0 5px 10px',
width: '90%',
}}
></div>
<table style={{ width: '90%' }}>
2026-02-04 18:10:12 +05:30
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
2026-02-05 09:30:32 +05:30
></td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
2026-02-04 18:10:12 +05:30
>
2026-02-05 09:30:32 +05:30
Taxable Amount
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
IGST
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Total Amount
</td>
</tr>
{OrderDetailIGST?.map((item) => (
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(
item.WithOutTaxAmount
).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TaxAmt).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(2)}
</td>
</tr>
))}
</table>
</>
)}
{OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0 && (
<>
<div
style={{
border: '0.01px dashed black',
margin: '10px 0 5px 10px',
width: '90%',
}}
></div>
<table style={{ width: '90%' }}>
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
></td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
Taxable Amount
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
VAT
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Total Amount
2026-02-04 18:10:12 +05:30
</td>
</tr>
2026-02-05 09:30:32 +05:30
{OrderDetailVAT?.map((item) => (
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(
item.WithOutTaxAmount
).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TaxAmt).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(2)}
</td>
</tr>
))}
</table>
</>
)}
</div>
</>
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px solid rgb(0, 0, 0)',
}}
/>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
{PaymentStatusSuccess?.length === 1
? PaymentStatusSuccess?.[0]?.PaymentTypeName
: 'Split'}{' '}
&nbsp; Payment
2026-01-27 18:27:29 +05:30
</div>
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{GlobaldummyData
? '1,066.00'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
2026-01-27 18:27:29 +05:30
</div>
</div>
{/* <div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ width: '45%' }}>
Recived Amt
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
{GlobaldummyData ? '1,066.00' : Number(table2Data?.NetAmount).toFixed(2) ? Number(table2Data?.NetAmount).toFixed(2) : 0}
</div>
</div>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ width: '45%' }}>
Balance Amt
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
0.00
</div>
</div> */}
</div>
</div>
2026-02-04 18:10:12 +05:30
{isEditedBill && lastTransaction && (
<div
style={{
width: '100%',
marginTop: '2px',
paddingTop: '2px',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
borderTop: '1px dashed #000',
}}
>
<div
style={{
fontSize: '12px',
width: '90%',
}}
>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<span style={{ color: '#000', fontWeight: '600' }}>
Bill Gross Amount
</span>
<strong>
{(lastTransaction?.BeforeAdjustment || 0).toFixed(
2
)}
</strong>
</div>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
fontWeight: '800',
color: '#000',
}}
>
<span>{'Adjustment Amount'}</span>
<span>
{lastTransaction?.AdjustmentType === 'REFUND'
? '-'
: '+'}
2026-02-06 19:41:52 +05:30
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
2026-02-25 19:27:02 +05:30
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
2026-02-04 18:10:12 +05:30
</span>
</div>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
marginTop: '4px',
}}
>
<span style={{ color: '#000', fontWeight: '600' }}>
Net Bill Amount
</span>
<strong>
{(lastTransaction?.AfterAdjustment || 0).toFixed(2)}
</strong>
</div>
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalCredit && (
2026-02-05 09:30:32 +05:30
<div
style={{
textAlign: 'left',
fontSize: '14px',
fontWeight: '600',
lineHeight: '12px',
}}
>
<h6>Advance Amount:</h6>
<h6>Opening Balance:</h6>
</div>
)
2026-02-04 18:10:12 +05:30
: CreditDetails &&
2026-02-05 09:30:32 +05:30
table2Data?.CustomerDetails?.length > 0 && (
<div
style={{
textAlign: 'left',
fontSize: '12px',
fontWeight: '600',
lineHeight: '12px',
}}
>
{/* OLD CREDIT BAL */}
{PaymentStatusSuccess?.[0]?.PaymentTypeName ===
'Credit' && (
2026-02-04 18:10:12 +05:30
<>
{table2Data.CustomerDetails[0].OldCreditBal >
2026-02-05 09:30:32 +05:30
0 ? (
2026-02-04 18:10:12 +05:30
<p>
Advance Amount:
{table2Data.CustomerDetails[0].OldCreditBal}
</p>
) : table2Data.CustomerDetails[0].OldCreditBal <
0 ? (
<p>
{' '}
Opening Balance:{' '}
{Math.abs(
table2Data.CustomerDetails[0].OldCreditBal
)}
</p>
) : null}
</>
)}
2026-02-05 09:30:32 +05:30
{/* CURRENT CREDIT BAL */}
{table2Data.CustomerDetails[0].CurrentCreditBal >
2026-02-04 18:10:12 +05:30
0 ? (
2026-02-05 09:30:32 +05:30
<p>
{' '}
Current Advance Amount:{' '}
{table2Data.CustomerDetails[0].CurrentCreditBal}
</p>
) : table2Data.CustomerDetails[0].CurrentCreditBal <
0 ? (
<p>
{' '}
Current Balance Amount:{' '}
{Math.abs(
table2Data.CustomerDetails[0].CurrentCreditBal
)}
</p>
) : null}
</div>
)}
2026-02-04 18:10:12 +05:30
<hr className="PrintStyle12-print-dottline" />
2026-02-04 19:16:18 +05:30
2026-02-04 18:10:12 +05:30
<div className="PrintStyle12-Qr-Order">
<div className="PrintStyle12-OrderNo">
<div
style={{
fontWeight: '600',
fontSize: 'clamp(0.8rem, 2.5vw, 1rem)',
}}
>
Your Order No:{' '}
{GlobaldummyData
? '53'
: table2Data?.SalesId &&
2026-02-05 09:30:32 +05:30
extractLastNumber(table2Data?.SalesId)}
2026-02-04 18:10:12 +05:30
</div>
</div>
2026-02-04 19:16:18 +05:30
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalQrcodet && (
2026-02-05 09:30:32 +05:30
<div className="PrintStyle12-QrCode">
<img
className="PrintStyle12-BrandImage"
src={QrImage}
alt="image"
/>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 3px',
}}
>
{' '}
Scan to Pay:{' '}
</div>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 3px',
}}
>
&#8377;
{GlobaldummyData
? '1,066'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
</div>
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Qrcodet &&
paymentTypeUPI && (
<div
style={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
padding: '0rem 2rem',
}}
>
<QRCode
value={`upi://pay?pa=${GlobalUpiID}&pn=Merchant&am=${table2Data?.NetAmount}&cu=INR`}
size={80}
2026-02-04 18:10:12 +05:30
/>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
}}
>
2026-02-05 09:30:32 +05:30
Scan to Pay{' '}
2026-02-04 18:10:12 +05:30
</div>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
}}
>
2026-02-05 09:30:32 +05:30
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? '1,066'
2026-02-05 09:30:32 +05:30
: Number(table2Data?.NetAmount).toFixed(2)}
2026-02-04 18:10:12 +05:30
</div>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{sportsAppPreference && MembershipApplied && (
<div
style={{
width: '100%',
textAlign: 'center',
paddingTop: '10px',
fontSize: '13px',
}}
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
)}
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
<div
className="page-footerA4Style11"
2026-01-27 18:27:29 +05:30
style={{
2026-02-04 18:10:12 +05:30
marginTop: 'auto',
pageBreakBefore: 'avoid',
pageBreakInside: 'avoid',
minHeight: 'auto',
2026-01-27 18:27:29 +05:30
}}
>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalIsnotes && (
2026-02-05 09:30:32 +05:30
<div>
<p style={{ padding: '0rem 1rem' }}>
Notes : 10 days Return policy
</p>
<hr className="PrintA4Style11-print-dottline" />
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Notestext && (
2026-02-04 18:10:12 +05:30
<div>
<p style={{ padding: '0rem 1rem' }}>
2026-02-05 09:30:32 +05:30
{Notestext}
2026-01-27 18:27:29 +05:30
</p>
2026-02-04 18:10:12 +05:30
<hr className="PrintA4Style11-print-dottline" />
</div>
2026-02-05 09:30:32 +05:30
)}
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
width: '90%',
padding: '0 1rem',
justifyContent: GlobaltermsAndConditions
? 'space-between'
: 'flex-end',
alignItems: 'center',
}}
>
{GlobaldummyData
? GlobaltermsAndConditions && (
2026-02-05 09:30:32 +05:30
<div
style={{
margin: '8px 0',
padding: '8px',
fontFamily: 'sans-serif',
width: '100%',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Terms & Conditions
</p>
<ol
style={{
fontSize: '12px',
paddingLeft: '18px',
margin: 0,
lineHeight: '1',
}}
>
<li>
Once goods are sold, they are not exchangeable
or refundable.
</li>
<li>
Please check the product before leaving the
counter.
</li>
</ol>
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: TermsnAdCondition == true &&
TermsAndConditions?.length > 0 && (
2026-02-04 18:10:12 +05:30
<div
style={{
margin: '8px 0',
fontFamily: 'sans-serif',
width: '100%',
2026-02-05 09:30:32 +05:30
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
2026-02-04 18:10:12 +05:30
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Terms & Conditions
2026-02-05 09:30:32 +05:30
</p>
<ol
2026-02-04 18:10:12 +05:30
style={{
2026-02-05 09:30:32 +05:30
fontSize: '12px',
paddingLeft: '18px',
margin: 0,
lineHeight: '1',
2026-02-04 18:10:12 +05:30
}}
>
2026-02-05 09:30:32 +05:30
{TermsAndConditions?.map((item) => (
<li style={{ textAlign: 'start' }}>
{item?.TermsandConditions}
</li>
))}
{/* <li>Please check the product before leaving the counter.</li> */}
</ol>
</div>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSignature && (
2026-02-05 09:30:32 +05:30
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-end',
paddingBottom: '1rem',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Signature
</p>
<img
style={{ width: '70px', height: '40px' }}
src={
GlobalSignatureImages
? GlobalSignatureImages
: signature
}
alt=""
/>
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Signature == true && (
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
flexDirection: 'column',
2026-02-05 09:30:32 +05:30
alignItems: 'center',
marginTop: '1rem',
2026-02-04 18:10:12 +05:30
paddingBottom: '1rem',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Signature
</p>
<img
2026-02-05 09:30:32 +05:30
style={{ width: '100px', height: '60px' }}
src={SignatureImg}
2026-02-04 18:10:12 +05:30
alt=""
/>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-01-27 18:27:29 +05:30
</div>
</div>
2026-02-04 18:10:12 +05:30
{PrintGreeting?.SettingValue === 'Y' && (
<div className="PrintStyle12-FourthSpan">
2026-01-27 18:27:29 +05:30
Thank You Visit Again
</div>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
</>
</div>
</div>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
) : (
<div
id={`PrintStyle12-${index}`}
onClick={PrintA4}
className="PrintStyle12MasterDiv"
style={{ fontFamily: "'Courier New', Courier, monospace" }}
>
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
''
) : (
<div className="PrintStyle12-firstDiv">
{/* <h3>{table2Data?.BrName}</h3> */}
<div style={{ display: 'flex', flexDirection: 'column' }}>
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px dashed rgb(0, 0, 0)',
}}
/>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1.8rem)',
fontWeight: '600',
color: SelectedHeaderColor,
2026-02-04 18:10:12 +05:30
}}
>
{GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName}
</div>
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
{GlobaldummyData
? 'BranchAddress, Town- 635XXX City - State'
: (table2Data?.AddressDetails?.[0]?.Address1 || '') +
2026-02-05 09:30:32 +05:30
(table2Data?.AddressDetails?.[0]?.City
? (table2Data?.AddressDetails?.[0]?.Address1 &&
table2Data?.AddressDetails?.[0]?.City
? '-'
: '') + table2Data?.AddressDetails?.[0]?.City
: '') +
(table2Data?.AddressDetails?.[0]?.Zip
? (table2Data?.AddressDetails?.[0]?.City &&
table2Data?.AddressDetails?.[0]?.Zip
? '-'
: '') + table2Data?.AddressDetails?.[0]?.Zip
: '')}
2026-02-04 18:10:12 +05:30
</div>
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
{' '}
Mobile : +91{' '}
{GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}
</div>
{GlobaldummyData && GlobalCashierName && (
<p style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
{' '}
Cashier : Cashier Name
</p>
)}
{CashierName &&
CashierName !== undefined &&
CashierName !== null &&
!GlobaldummyData &&
CashierNameField && (
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
Cashier : {CashierName}
</div>
)}
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
{GlobaldummyData && (
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
{' '}
Customer : Customer Name
</div>
)}
{table2Data?.CustSuppName &&
table2Data?.CustSuppName !== undefined &&
table2Data?.CustSuppName !== null &&
!GlobaldummyData && (
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
Customer : {table2Data?.CustSuppName}
</div>
)}
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
{table2Data?.BookingTypeName == 'Dine In' &&
table2Data?.SalesTableLinkDetails?.[0]?.WaiterName && (
<div>
Captain :{' '}
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
</div>
)}
2026-02-25 19:27:02 +05:30
{table2Data?.OrderType === 'E' && estimateTitle && (
2026-02-04 18:10:12 +05:30
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
fontWeight: '600',
}}
>
Estimate{' '}
</div>
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{GlobalLogo && GlobaldummyData && (
<div style={{ display: 'flex' }}>
{' '}
<img
style={{ width: '60px', height: '60px' }}
src={Logo}
alt="image"
/>
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
{base64Image && (PrintLogo?.SettingValue === 'Y' || LogoField) ? (
<div style={{ display: 'flex' }}>
{' '}
<img
style={{ width: '80px', height: '80px' }}
src={GlobaldummyData ? Logo : base64Image}
alt="image"
/>
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
) : null}
2026-02-04 18:10:12 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
2026-02-25 19:27:02 +05:30
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
2026-02-04 18:10:12 +05:30
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
fontWeight: '600',
textAlign: 'center',
}}
>
Estimate{' '}
</div>
)}
2026-01-27 18:27:29 +05:30
{/* <div style={{ display: "flex", justifyContent: "left", marginTop: '5px' }}>
<p style={{ marginTop: '5px', padding: 0, fontSize: "17px", fontWeight: "600" }}>{table2Data?.PaymentTypeName} &nbsp;Payment : &nbsp;{Number(table2Data?.NetAmount).toFixed(2)}/- </p>
</div> */}
2026-02-04 18:10:12 +05:30
<div className="PrintStyle12-SecondDiv">
<div
style={{
fontWeight: '600',
fontSize: 'clamp(0.9286rem, 2.5vw, 1rem)',
}}
>
Bill No :{' '}
{GlobaldummyData
? '553'
: table2Data?.OrderId &&
2026-02-05 09:30:32 +05:30
extractLastNumberOrderId(
table2Data?.OrderId,
table2Data?.FYStatus
)}
2026-02-04 18:10:12 +05:30
</div>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 1rem',
}}
>
{Date1}
</div>
2026-01-27 18:27:29 +05:30
</div>
{/* <hr className="PrintStyle8-print-dottline" /> */}
2026-02-04 18:10:12 +05:30
{(TakeawayData?.length > 0 || GlobaldummyData) && (
2026-01-27 18:27:29 +05:30
<>
2026-02-04 18:10:12 +05:30
{takeAwayPreference && (
<div
style={{
display: 'flex',
width: '100%',
justifyContent: 'center',
alignItems: 'center',
fontSize: '12px',
fontWeight: '600',
}}
>
Take Away
</div>
)}
2026-01-27 18:27:29 +05:30
<div className="PrintStyle12-print-tableMaster">
<table className="PrintStyle12-print-table">
<thead>
<tr>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSlNo && <th>S.No</th>
: SLNO && <th>S.No</th>}
{GlobaldummyData
? GlobalItem && <th>Description</th>
: Item && <th>Des</th>}
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Qty</th>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>
{' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'}
</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>MRP</th>
)
2026-02-04 18:10:12 +05:30
: MRP && <th style={{ textAlign: 'right' }}>MRP</th>}
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Rate</th>
)
2026-02-04 18:10:12 +05:30
: Rate && <th style={{ textAlign: 'right' }}>Rate</th>}
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Tax (%)</th>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<th style={{ textAlign: 'right' }}>Tax (%)</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Amt</th>
)
2026-02-04 18:10:12 +05:30
: Amount && <th style={{ textAlign: 'right' }}>Amt</th>}
2026-01-27 18:27:29 +05:30
</tr>
</thead>
<tbody>
2026-02-04 18:10:12 +05:30
{(GlobaldummyData ? products : TakeawayData)?.map(
(item, index) => {
return (
<tr key={index}>
{GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td>
: SLNO && <td>{index + 1}</td>}
{GlobaldummyData
? GlobalItem && <td>{item?.ProdName}</td>
: Item && (
2026-02-05 09:30:32 +05:30
<td
style={{
display: 'flex',
flexDirection: 'column',
}}
>
<div>{item?.ProdName}</div>
{PackageDetails?.filter(
(pkg) => pkg.ProdId === item.ProdId
).length > 0 ? (
<div>
{PackageDetails?.filter(
(pkg) => pkg.ProdId === item.ProdId
)?.map((item, index) => (
<span
key={index}
style={{ display: 'block' }}
>
{item.ParcelCount} PCS{' '}
{item.ParcelQty} PACK (
{item.ParcelType})
</span>
))}
{item?.BrandName !== null
? item?.BrandName
: ''}
&nbsp;
{item?.ProductIdentifierDtls?.length > 0
? item?.ProductIdentifierDtls?.filter(
(items) =>
!(
items.SerialNumber == '' ||
items.SerialNumber == null
)
)?.map((a) => {
return (
<div>{a.SerialNumber}</div>
);
})
: ''}{' '}
{item?.ProductIdentifierDtls?.length > 0
? item?.ProductIdentifierDtls.filter(
(item1) =>
item1.IMEI1 !== '' ||
item1.IMEI2 !== ''
)?.map((item2) => {
const imei1 = item2.IMEI1 || '';
const imei2 = item2.IMEI2 || '';
return (
<div>
{[imei1, imei2]
.filter(Boolean)
.join(',')}
</div>
);
})
: ''}
</div>
) : (
<div>
({item?.Size ? item?.Size : '1'}{' '}
{item?.SinglePc == 'Y'
? 'PCS'
: item?.Type != 'C'
? item?.UomName
: 'COMBO'}
)
{item?.BrandName !== null
? item?.BrandName
: ''}
&nbsp;
{item?.ProductIdentifierDtls?.length > 0
? item?.ProductIdentifierDtls?.filter(
(items) =>
!(
items.SerialNumber == '' ||
items.SerialNumber == null
)
)?.map((a) => {
return (
<div>{a.SerialNumber}</div>
);
})
: ''}{' '}
{item?.ProductIdentifierDtls?.length > 0
? item?.ProductIdentifierDtls.filter(
(item1) =>
item1.IMEI1 !== '' ||
item1.IMEI2 !== ''
)?.map((item2) => {
const imei1 = item2.IMEI1 || '';
const imei2 = item2.IMEI2 || '';
return (
<div>
{[imei1, imei2]
.filter(Boolean)
.join(',')}
</div>
);
})
: ''}
</div>
)}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.MRP}
</td>
)
2026-02-04 18:10:12 +05:30
: MRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SinglePc === 'Y'
? item?.Rate
: item?.MRP}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)
2026-02-04 18:10:12 +05:30
: Rate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.discount}
</td>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.OfferAmt || 0
: item?.OfferValue || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage}
</td>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.TotalAmt}
</td>
)
2026-02-04 18:10:12 +05:30
: Amount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.TotalAmt - item?.OfferAmt || 0
: item?.TotalAmt - item?.OfferValue || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
</tr>
);
}
)}
2026-01-27 18:27:29 +05:30
</tbody>
</table>
</div>
</>
2026-02-04 18:10:12 +05:30
)}
{DineInData?.length > 0 && dinePreference && (
2026-01-27 18:27:29 +05:30
<>
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
width: '100%',
justifyContent: 'center',
alignItems: 'center',
fontSize: '12px',
fontWeight: '600',
}}
>
Dine In
</div>
2026-01-27 18:27:29 +05:30
<div className="PrintStyle12-print-tableMaster">
<table className="PrintStyle12-print-table">
<thead>
<tr>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSlNo && <th>S.No</th>
: SLNO && <th>S.No</th>}
{GlobaldummyData
? GlobalItem && <th>Description</th>
: Item && <th>Des</th>}
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Qty</th>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>
{' '}
{WeightasKg ? 'Qty/Kg' : 'Qty'}
</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>MRP</th>
)
2026-02-04 18:10:12 +05:30
: MRP && <th style={{ textAlign: 'right' }}>MRP</th>}
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Rate</th>
)
2026-02-04 18:10:12 +05:30
: Rate && <th style={{ textAlign: 'right' }}>Rate</th>}
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>HSN</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>(%)</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Tax (%)</th>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<th style={{ textAlign: 'right' }}>Tax (%)</th>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<th style={{ textAlign: 'right' }}>Amt</th>
)
2026-02-04 18:10:12 +05:30
: Amount && <th style={{ textAlign: 'right' }}>Amt</th>}
2026-01-27 18:27:29 +05:30
</tr>
</thead>
<tbody>
2026-02-04 18:10:12 +05:30
{(GlobaldummyData ? products : DineInData)?.map(
(item, index) => {
return (
<tr key={index}>
{GlobaldummyData
? GlobalSlNo && <td>{index + 1}</td>
: SLNO && <td>{index + 1}</td>}
{GlobaldummyData
? GlobalItem && <td>{item?.ProdName}</td>
: Item && (
2026-02-05 09:30:32 +05:30
<td
style={{
display: 'flex',
flexDirection: 'column',
}}
>
<div>{item?.ProdName}</div>
<div>
({item?.Size ? item?.Size : '1'}{' '}
{item?.SinglePc == 'Y'
? 'PCS'
: item?.Type != 'C'
? item?.UomName
: 'COMBO'}
)
</div>
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalQuantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)
2026-02-04 18:10:12 +05:30
: Quantity && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SalesQty}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalMRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.MRP}
</td>
)
2026-02-04 18:10:12 +05:30
: MRP && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.SinglePc === 'Y'
? item?.Rate
: item?.MRP}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalRate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)
2026-02-04 18:10:12 +05:30
: Rate && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Rate}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalHsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)
2026-02-04 18:10:12 +05:30
: HsnCode && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.HSN}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalDiscount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.discount}
</td>
)
2026-02-04 18:10:12 +05:30
: Discount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.OfferAmt || 0
: item?.OfferValue || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalTax && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage}
</td>
)
2026-02-04 18:10:12 +05:30
: Tax &&
2026-02-05 09:30:32 +05:30
table2Data?.OrderType !== 'E' && (
<td style={{ textAlign: 'right' }}>
{item?.ProdTaxPercentage || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalAmount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.TotalAmt}
</td>
)
2026-02-04 18:10:12 +05:30
: Amount && (
2026-02-05 09:30:32 +05:30
<td style={{ textAlign: 'right' }}>
{item?.Type != 'C'
? item?.TotalAmt - item?.OfferAmt || 0
: item?.TotalAmt - item?.OfferValue || 0}
</td>
)}
2026-02-04 18:10:12 +05:30
</tr>
);
}
)}
2026-01-27 18:27:29 +05:30
</tbody>
</table>
</div>
2026-02-04 18:10:12 +05:30
</>
)}
2026-01-27 18:27:29 +05:30
<hr className="PrintStyle12-print-dottline " />
2026-02-04 18:10:12 +05:30
<div className="PrintStyle12-Summary">
<div
style={{
display: 'flex',
justifyContent: 'flex-end',
width: '60%',
flexDirection: 'column',
rowGap: '0.2rem',
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
}}
>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<div style={{ width: '45%' }}>Items</div>
2026-01-27 18:27:29 +05:30
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
2026-01-27 18:27:29 +05:30
{GlobaldummyData ? '8' : totalQuantityFilter?.length}
</div>
</div>
2026-02-04 18:10:12 +05:30
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<div style={{ width: '45%' }}>Qty</div>
2026-01-27 18:27:29 +05:30
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
2026-01-27 18:27:29 +05:30
{GlobaldummyData ? '9' : totalQuantity}
</div>
</div>
2026-02-04 18:10:12 +05:30
{(table2Data?.OverallDisc > 0 || TotalOfferAmount > 0) && (
<div
style={{ display: 'flex', justifyContent: 'space-between' }}
>
<div style={{ width: '45%' }}>Off</div>
2026-01-27 18:27:29 +05:30
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
width: '35%',
}}
>
{GlobaldummyData
? '9'
: Number(
2026-02-05 09:30:32 +05:30
TotalOfferAmount + table2Data?.OverallDisc
).toFixed(2)}
2026-01-27 18:27:29 +05:30
</div>
</div>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
{/* <div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ width: '45%' }}>
Extra Charges
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
0
</div>
</div> */}
2026-02-04 18:10:12 +05:30
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px solid rgb(0, 0, 0)',
}}
/>
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
{DineInData?.length > 0 && TakeawayData?.length > 0 && (
2026-01-27 18:27:29 +05:30
<>
2026-02-04 18:10:12 +05:30
{takeAwayPreference && (
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
TakeAway
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{Number(TakeawayTotal).toFixed(2)}
</div>
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
{dinePreference && (
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<div style={{ width: '45%', fontWeight: '600' }}>
Dine In
</div>
<div> : </div>
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{Number(DineInTotal).toFixed(2)}
</div>
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
</>
2026-02-04 18:10:12 +05:30
)}
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<div style={{ width: '45%', fontWeight: '600' }}>Amount</div>
2026-01-27 18:27:29 +05:30
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{GlobaldummyData
? '1,066.00'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
2026-01-27 18:27:29 +05:30
</div>
</div>
2026-02-04 18:10:12 +05:30
{PaymentStatusSuccess?.length > 1 && !isEditedBill && (
2026-01-27 18:27:29 +05:30
<>
{/* <p>Split Payment:</p> */}
{Object.keys(aggregatedPayments).map((paymentType) => (
2026-02-04 18:10:12 +05:30
<div
key={paymentType}
style={{ margin: 0, padding: 0, fontSize: '12px' }}
>
{paymentType}:{' '}
{aggregatedPayments[paymentType].toFixed(2)}
2026-01-27 18:27:29 +05:30
</div>
))}
</>
2026-02-04 18:10:12 +05:30
)}
{table2Data?.OrderType === 'E' ? (
''
) : (
2026-01-27 18:27:29 +05:30
<div>
2026-02-04 18:10:12 +05:30
{((OrderDetailGST?.length > 0 &&
OrderDetailGST?.[0]?.TaxAmt > 0) ||
(OrderDetailIGST?.length > 0 &&
OrderDetailIGST?.[0]?.TaxAmt > 0) ||
(OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0)) && (
2026-02-05 09:30:32 +05:30
<>
<div>
<p
style={{
margin: 0,
padding: 0,
fontSize: '12px',
textAlign: 'center',
}}
>
--------- GST Breakup Details -----------
</p>
{OrderDetailGST?.length > 0 &&
OrderDetailGST?.[0]?.TaxAmt > 0 && (
<table style={{ width: '90%' }}>
2026-01-27 18:27:29 +05:30
<tr>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
2026-02-05 09:30:32 +05:30
></td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Taxable Amount
2026-01-27 18:27:29 +05:30
</td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
CGST
2026-02-04 18:10:12 +05:30
</td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
SGST
2026-02-04 18:10:12 +05:30
</td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
Total Amount
2026-02-04 18:10:12 +05:30
</td>
</tr>
2026-02-05 09:30:32 +05:30
{OrderDetailGST?.map((item) => (
2026-02-04 18:10:12 +05:30
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.WithOutTaxAmount).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
{Number(item.CGST).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.SGST).toFixed(2)}
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(2)}
</td>
</tr>
))}
</table>
2026-02-05 09:30:32 +05:30
)}
{OrderDetailIGST?.length > 0 &&
OrderDetailIGST?.[0]?.TaxAmt > 0 && (
<>
<div
style={{
border: '0.01px dashed black',
margin: '10px 0 5px 10px',
width: '90%',
}}
></div>
<table style={{ width: '90%' }}>
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
></td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
Taxable Amount
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
IGST
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
Total Amount
</td>
</tr>
{OrderDetailIGST?.map((item) => (
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.WithOutTaxAmount).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TaxAmt).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(2)}
</td>
</tr>
))}
</table>
</>
)}
{OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0 && (
<>
<div
style={{
border: '0.01px dashed black',
margin: '10px 0 5px 10px',
width: '90%',
}}
></div>
<table style={{ width: '90%' }}>
2026-02-04 18:10:12 +05:30
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
2026-02-05 09:30:32 +05:30
></td>
2026-02-04 18:10:12 +05:30
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Taxable Amount
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
VAT
2026-02-04 18:10:12 +05:30
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
2026-02-05 09:30:32 +05:30
Total Amount
2026-02-04 18:10:12 +05:30
</td>
</tr>
2026-02-05 09:30:32 +05:30
{OrderDetailVAT?.map((item) => (
<tr>
<td
style={{
fontSize: '10px',
textAlign: 'right',
}}
>
{item?.TaxPercentage || 0}%
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.WithOutTaxAmount).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TaxAmt).toFixed(2)}
</td>
<td
style={{
fontSize: '10px',
textAlign: 'center',
}}
>
{Number(item.TotalAmt).toFixed(2)}
</td>
</tr>
))}
</table>
</>
)}
</div>
</>
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
)}
<hr
style={{
width: '100%',
borderWidth: '0.7px',
borderTop: '0.5px solid rgb(0, 0, 0)',
}}
/>
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
<div style={{ width: '45%', fontWeight: '600' }}>
{PaymentStatusSuccess?.length === 1
? PaymentStatusSuccess?.[0]?.PaymentTypeName
: 'Split'}{' '}
&nbsp; Payment
2026-01-27 18:27:29 +05:30
</div>
<div> : </div>
2026-02-04 18:10:12 +05:30
<div
style={{
padding: '0rem 1rem',
display: 'flex',
justifyContent: 'flex-end',
fontWeight: '600',
width: '35%',
}}
>
{GlobaldummyData
? '1,066.00'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
2026-01-27 18:27:29 +05:30
</div>
</div>
{/* <div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ width: '45%' }}>
Recived Amt
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
{GlobaldummyData ? '1,066.00' : Number(table2Data?.NetAmount).toFixed(2) ? Number(table2Data?.NetAmount).toFixed(2) : 0}
</div>
</div>
<div style={{ display: "flex", justifyContent: "space-between" }}>
<div style={{ width: '45%' }}>
Balance Amt
</div>
<div> : </div>
<div style={{ padding: '0rem 1rem', display: "flex", justifyContent: "flex-end", width: '35%' }}>
0.00
</div>
</div> */}
2026-02-04 18:10:12 +05:30
</div>
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
2026-02-04 18:10:12 +05:30
{isEditedBill && lastTransaction && (
<div
style={{
width: '100%',
marginTop: '2px',
paddingTop: '2px',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
flexDirection: 'column',
borderTop: '1px dashed #000',
}}
>
<div
style={{
fontSize: '12px',
width: '90%',
}}
>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
}}
>
<span style={{ color: '#000', fontWeight: '600' }}>
Bill Gross Amount
</span>
<strong>
{(lastTransaction?.BeforeAdjustment || 0).toFixed(2)}
</strong>
</div>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
fontWeight: '800',
color: '#000',
}}
>
<span>{'Adjustment Amount'}</span>
<span>
{lastTransaction?.AdjustmentType === 'REFUND' ? '-' : '+'}
2026-02-06 19:41:52 +05:30
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
2026-02-25 19:27:02 +05:30
(lastTransaction?.AfterAdjustment ?? 0)).toFixed(2)}
2026-02-04 18:10:12 +05:30
</span>
</div>
<div
style={{
display: 'flex',
justifyContent: 'space-between',
marginTop: '4px',
}}
>
<span style={{ color: '#000', fontWeight: '600' }}>
Net Bill Amount
</span>
<strong>
{(lastTransaction?.AfterAdjustment || 0).toFixed(2)}
</strong>
</div>
</div>
</div>
)}
2026-01-27 18:27:29 +05:30
{/* <hr className="PrintStyle12-print-dottline" /> */}
{/* <div className='PrintStyle12-FourthDiv'>
<div className='PrintStyle12-FourthP'>
<div >
Credit Points: 875673
</div>
<div style={{ fontWeight: '600' }}>
Saved Rs.200 /-
</div>
</div>
</div> */}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalCredit && (
2026-02-05 09:30:32 +05:30
<div
style={{
textAlign: 'left',
fontSize: '14px',
fontWeight: '600',
lineHeight: '12px',
}}
>
<h6>Advance Amount:</h6>
<h6>Opening Balance:</h6>
</div>
)
2026-02-04 18:10:12 +05:30
: CreditDetails &&
2026-02-05 09:30:32 +05:30
table2Data?.CustomerDetails?.length > 0 && (
<div
style={{
textAlign: 'left',
fontSize: '12px',
fontWeight: '600',
lineHeight: '12px',
}}
>
{/* OLD CREDIT BAL */}
{PaymentStatusSuccess?.[0]?.PaymentTypeName === 'Credit' && (
<>
{table2Data.CustomerDetails[0].OldCreditBal > 0 ? (
<p>
Advance Amount:
{table2Data.CustomerDetails[0].OldCreditBal}
</p>
) : table2Data.CustomerDetails[0].OldCreditBal < 0 ? (
<p>
{' '}
Opening Balance:{' '}
{Math.abs(table2Data.CustomerDetails[0].OldCreditBal)}
</p>
) : null}
</>
)}
2026-01-27 18:27:29 +05:30
2026-02-05 09:30:32 +05:30
{/* CURRENT CREDIT BAL */}
{table2Data.CustomerDetails[0].CurrentCreditBal > 0 ? (
<p>
{' '}
Current Advance Amount:{' '}
{table2Data.CustomerDetails[0].CurrentCreditBal}
</p>
) : table2Data.CustomerDetails[0].CurrentCreditBal < 0 ? (
<p>
{' '}
Current Balance Amount:{' '}
{Math.abs(table2Data.CustomerDetails[0].CurrentCreditBal)}
</p>
) : null}
</div>
)}
2026-02-04 19:16:18 +05:30
<hr className="PrintStyle12-print-dottline" />
2026-02-04 18:10:12 +05:30
<div className="PrintStyle12-Qr-Order">
<div className="PrintStyle12-OrderNo">
<div
style={{
fontWeight: '600',
fontSize: 'clamp(0.8rem, 2.5vw, 1rem)',
}}
>
Your Order No:{' '}
{GlobaldummyData
? '53'
: table2Data?.SalesId &&
2026-02-05 09:30:32 +05:30
extractLastNumber(table2Data?.SalesId)}
2026-02-04 19:16:18 +05:30
</div>
2026-02-04 18:10:12 +05:30
</div>
2026-02-04 19:16:18 +05:30
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalQrcodet && (
2026-02-05 09:30:32 +05:30
<div className="PrintStyle12-QrCode">
<img
className="PrintStyle12-BrandImage"
src={QrImage}
alt="image"
/>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 3px',
}}
>
{' '}
Scan to Pay:{' '}
</div>
<div
style={{
fontSize: 'clamp(0.75rem, 2.5vw, 1rem)',
padding: '0 3px',
}}
>
&#8377;
{GlobaldummyData
? '1,066'
: Number(table2Data?.NetAmount).toFixed(2)
? Number(table2Data?.NetAmount).toFixed(2)
: 0}
</div>
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Qrcodet &&
paymentTypeUPI && (
<div
style={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
padding: '0rem 2rem',
}}
>
<QRCode
value={`upi://pay?pa=${GlobalUpiID}&pn=Merchant&am=${table2Data?.NetAmount}&cu=INR`}
size={80}
2026-02-04 18:10:12 +05:30
/>
2026-02-05 09:30:32 +05:30
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
Scan to Pay{' '}
2026-02-04 18:10:12 +05:30
</div>
2026-02-05 09:30:32 +05:30
<div style={{ fontSize: 'clamp(0.75rem, 2.5vw, 1rem)' }}>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? '1,066'
2026-02-05 09:30:32 +05:30
: Number(table2Data?.NetAmount).toFixed(2)}
2026-02-04 18:10:12 +05:30
</div>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-01-27 18:27:29 +05:30
</div>
2026-02-04 18:10:12 +05:30
{sportsAppPreference && MembershipApplied && (
<div
style={{
width: '100%',
textAlign: 'center',
paddingTop: '10px',
fontSize: '13px',
}}
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
)}
2026-02-04 19:16:18 +05:30
2026-02-04 18:10:12 +05:30
<div
className="page-footerA4Style11"
2026-01-27 18:27:29 +05:30
style={{
2026-02-04 18:10:12 +05:30
marginTop: 'auto',
pageBreakBefore: 'avoid',
pageBreakInside: 'avoid',
minHeight: 'auto',
2026-01-27 18:27:29 +05:30
}}
>
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalIsnotes && (
2026-02-05 09:30:32 +05:30
<div>
<p
style={{
padding: '0rem 1rem',
marginTop: GlobalthemeFormatr ? '5vh' : '',
}}
>
Notes : 10 days Return policy
</p>
2026-01-27 18:27:29 +05:30
2026-02-05 09:30:32 +05:30
<hr className="PrintA4Style11-print-dottline" />
</div>
)
2026-02-04 18:10:12 +05:30
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Notestext && (
2026-02-05 09:30:32 +05:30
<div>
<p style={{ padding: '0rem 1rem' }}>{Notestext}</p>
2026-02-04 18:10:12 +05:30
2026-02-05 09:30:32 +05:30
<hr className="PrintA4Style11-print-dottline" />
</div>
)}
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
width: '90%',
padding: '0 1rem',
justifyContent: GlobaltermsAndConditions
? 'space-between'
: 'flex-end',
alignItems: 'center',
}}
>
{GlobaldummyData
? GlobaltermsAndConditions && (
2026-02-05 09:30:32 +05:30
<div
style={{
margin: '8px 0',
padding: '8px',
fontFamily: 'sans-serif',
width: '100%',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Terms & Conditions
</p>
<ol
style={{
fontSize: '12px',
paddingLeft: '18px',
margin: 0,
lineHeight: '1',
}}
>
<li>
Once goods are sold, they are not exchangeable or
refundable.
</li>
<li>
Please check the product before leaving the counter.
</li>
</ol>
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: TermsnAdCondition == true &&
TermsAndConditions?.length > 0 && (
2026-02-04 18:10:12 +05:30
<div
style={{
margin: '8px 0',
fontFamily: 'sans-serif',
width: '100%',
2026-02-05 09:30:32 +05:30
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
2026-02-04 18:10:12 +05:30
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Terms & Conditions
</p>
<ol
style={{
fontSize: '12px',
paddingLeft: '18px',
margin: 0,
lineHeight: '1',
}}
>
2026-02-05 09:30:32 +05:30
{TermsAndConditions?.map((item) => (
<li style={{ textAlign: 'start' }}>
{item?.TermsandConditions}
</li>
))}
{/* <li>Please check the product before leaving the counter.</li> */}
2026-02-04 18:10:12 +05:30
</ol>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-02-04 18:10:12 +05:30
{GlobaldummyData
? GlobalSignature && (
2026-02-05 09:30:32 +05:30
<div
style={{
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-end',
paddingBottom: '1rem',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Signature
</p>
<img
style={{ width: '70px', height: '40px' }}
src={
GlobalSignatureImages
? GlobalSignatureImages
: signature
}
alt=""
/>
</div>
)
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Signature == true && (
2026-02-04 18:10:12 +05:30
<div
style={{
display: 'flex',
flexDirection: 'column',
2026-02-05 09:30:32 +05:30
alignItems: 'center',
marginTop: '1rem',
2026-02-04 18:10:12 +05:30
paddingBottom: '1rem',
}}
>
<p
style={{
fontSize: '13px',
fontWeight: 'bold',
marginBottom: '6px',
}}
>
Signature
</p>
<img
2026-02-05 09:30:32 +05:30
style={{ width: '100px', height: '60px' }}
src={SignatureImg}
2026-02-04 18:10:12 +05:30
alt=""
/>
</div>
2026-02-05 09:30:32 +05:30
)}
2026-01-27 18:27:29 +05:30
</div>
</div>
2026-02-04 18:10:12 +05:30
{PrintGreeting?.SettingValue === 'Y' && (
<div className="PrintStyle12-FourthSpan">Thank You Visit Again</div>
)}
2026-01-27 18:27:29 +05:30
{/* <div onClick={Print}> print</div> */}
</div>
2026-02-04 18:10:12 +05:30
)}
2026-01-27 18:27:29 +05:30
</>
2026-02-04 18:10:12 +05:30
);
};
2026-01-27 18:27:29 +05:30
2026-02-04 18:10:12 +05:30
export default Printstyle12;