2026-01-27 18:27:29 +05:30
|
|
|
import React from 'react';
|
|
|
|
|
import { useDispatch, useSelector } from 'react-redux';
|
|
|
|
|
import Qrcode from '../../../../Images/Qrcode.png';
|
|
|
|
|
import {
|
|
|
|
|
extractLastNumber,
|
|
|
|
|
extractLastNumberOrderId,
|
|
|
|
|
} from '../../../../Services/Others';
|
|
|
|
|
import {
|
|
|
|
|
GlobalprintSlNo,
|
|
|
|
|
GlobalprintItem,
|
|
|
|
|
GlobalprintMRP,
|
|
|
|
|
GlobalprintDiscount,
|
|
|
|
|
GlobalprintQuantity,
|
|
|
|
|
GlobalprintRate,
|
|
|
|
|
GlobalprintAmount,
|
|
|
|
|
GlobalprintHsnCode,
|
|
|
|
|
GlobalprintQrcodet,
|
|
|
|
|
GlobalPritdummyData,
|
|
|
|
|
GloabalFieldDetails,
|
|
|
|
|
changeReprintDataFound,
|
|
|
|
|
GlobalprintSignature,
|
|
|
|
|
GlobalprinttermsAndConditions,
|
|
|
|
|
GlobalSignatureImage,
|
|
|
|
|
Globalnotes,
|
|
|
|
|
GlobalthemeFormat,
|
|
|
|
|
GlobalBillName,
|
|
|
|
|
GlobalprintCashierName,
|
|
|
|
|
GlobalprintLogo,
|
|
|
|
|
GlobalprintCredit,
|
|
|
|
|
GlobalprintTax,
|
2026-02-03 13:55:24 +05:30
|
|
|
GlobalSelectedPrintHeaderColor,
|
2026-03-04 16:32:06 +05:30
|
|
|
GlobalSelectedPrintHeaderFontColor,
|
|
|
|
|
GlobalSelectedTableHeaderColor,
|
|
|
|
|
GlobalSelectedTableHeaderFontColor,
|
|
|
|
|
GlobalSelectedTableBodyFontColor,
|
|
|
|
|
GlobalSelectedTableBodyColor,
|
|
|
|
|
GlobalRowType,
|
|
|
|
|
GlobalSelectedFooterColor,
|
|
|
|
|
GlobalSelectedFooterFontColor,
|
|
|
|
|
GlobalSelectedNetAmountColor,
|
|
|
|
|
GlobalSelectedNetAmountFontColor,
|
2026-01-27 18:27:29 +05:30
|
|
|
} from '../../../../Features/ThemeChange/ThemeChange';
|
|
|
|
|
import Logo from '../../../../Images/Logo.jpg';
|
2026-02-04 18:10:12 +05:30
|
|
|
import {
|
|
|
|
|
GlobalUpiIDprint,
|
|
|
|
|
PreferenceData,
|
|
|
|
|
} from '../../../../Features/BookingScreen/BookingData/BookingData';
|
2026-01-27 18:27:29 +05:30
|
|
|
import '../../../../Styles/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle9.scss';
|
|
|
|
|
import QRCode from 'react-qr-code';
|
|
|
|
|
import signature from '../../../../Images/signatureimage.jpg';
|
|
|
|
|
import { ApplicationPreferences } from '../../../../Features/BrachLogin/BranchLogin';
|
|
|
|
|
import { isMobile } from 'react-device-detect';
|
|
|
|
|
import { settingDataSelector } from '../../../../Features/PreferenceMaster/PreferenceMaster';
|
|
|
|
|
|
|
|
|
|
const PrintStyle9 = ({
|
|
|
|
|
index,
|
|
|
|
|
ExtraChargeTotal,
|
|
|
|
|
Date1,
|
|
|
|
|
totalQuantityFilter,
|
|
|
|
|
CashierName,
|
|
|
|
|
totalQuantity,
|
|
|
|
|
OrderDetailGST,
|
|
|
|
|
OrderDetailIGST,
|
|
|
|
|
OrderDetailVAT,
|
|
|
|
|
table2Data,
|
|
|
|
|
PaymentStatus,
|
|
|
|
|
base64Image,
|
|
|
|
|
PrintLogo,
|
|
|
|
|
PrintGreeting,
|
|
|
|
|
printDatas,
|
|
|
|
|
isPdf,
|
|
|
|
|
sportsAppPreference,
|
|
|
|
|
SalesModePref,
|
|
|
|
|
MembershipApplied = null,
|
|
|
|
|
}) => {
|
|
|
|
|
const dispatch = useDispatch();
|
|
|
|
|
const GlobalUpiID = useSelector(GlobalUpiIDprint);
|
|
|
|
|
const FieldDetails = useSelector(GloabalFieldDetails);
|
|
|
|
|
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'];
|
|
|
|
|
const WeightasKg = FieldDetails?.['Weight'];
|
|
|
|
|
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);
|
|
|
|
|
const GlobalSignature = useSelector(GlobalprintSignature);
|
|
|
|
|
const GlobaltermsAndConditions = useSelector(GlobalprinttermsAndConditions);
|
|
|
|
|
const GlobalSignatureImages = useSelector(GlobalSignatureImage);
|
|
|
|
|
const GlobalIsnotes = useSelector(Globalnotes);
|
|
|
|
|
const GlobalthemeFormatr = useSelector(GlobalthemeFormat);
|
|
|
|
|
const GlobalBilltext = useSelector(GlobalBillName);
|
|
|
|
|
const appPreferences = useSelector(ApplicationPreferences);
|
|
|
|
|
const GlobalCashierName = useSelector(GlobalprintCashierName);
|
|
|
|
|
const GlobalLogo = useSelector(GlobalprintLogo);
|
|
|
|
|
const GlobalCredit = useSelector(GlobalprintCredit);
|
|
|
|
|
const SettingData = useSelector(PreferenceData);
|
2026-02-26 11:44:46 +05:30
|
|
|
const UomPrint = SettingData?.[0]?.SettingDtlDetails?.filter(
|
|
|
|
|
(i) => i.SettingIdName === 'PrintUom'
|
|
|
|
|
)?.[0];
|
2026-01-27 18:27:29 +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(
|
2026-03-03 09:54:56 +05:30
|
|
|
(setting) =>
|
|
|
|
|
setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
|
2026-02-25 19:27:02 +05:30
|
|
|
)?.SettingValue === 'Y';
|
2026-01-27 18:27:29 +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'
|
|
|
|
|
);
|
2026-02-04 18:10:12 +05:30
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
);
|
|
|
|
|
|
2026-03-04 16:32:06 +05:30
|
|
|
const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
|
|
|
|
|
const SelectedHeaderFontColor = useSelector(GlobalSelectedPrintHeaderFontColor);
|
|
|
|
|
const SelectedTableHeaderColor = useSelector(GlobalSelectedTableHeaderColor);
|
|
|
|
|
const SelectedTableHeaderFontColor = useSelector(GlobalSelectedTableHeaderFontColor);
|
|
|
|
|
const SelectedTableBodyColor = useSelector(GlobalSelectedTableBodyColor);
|
|
|
|
|
const SelectedTableBodyFontColor = useSelector(GlobalSelectedTableBodyFontColor);
|
|
|
|
|
const SelectedRowType = useSelector(GlobalRowType);
|
|
|
|
|
const SelectedTableFooterColor = useSelector(GlobalSelectedFooterColor);
|
|
|
|
|
const SelectedTableFooterFontColor = useSelector(GlobalSelectedFooterFontColor);
|
|
|
|
|
const SelectedNetAmountColor = useSelector(GlobalSelectedNetAmountColor);
|
|
|
|
|
const SelectedNetAmountFontColor = useSelector(GlobalSelectedNetAmountFontColor);
|
|
|
|
|
let printColors = printDatas?.PrintColors;
|
|
|
|
|
const headerColor = printColors?.find(obj => obj.headerColor)?.headerColor;
|
|
|
|
|
const tableHeaderColor = printColors?.find(obj => obj.tableHeaderColor)?.tableHeaderColor;
|
|
|
|
|
const tableBodyColor = printColors?.find(obj => obj.tableBodyColor)?.tableBodyColor;
|
|
|
|
|
const footerColor = printColors?.find(obj => obj.footerColor)?.footerColor;
|
|
|
|
|
const netAmtColor = printColors?.find(obj => obj.netAmtColor)?.netAmtColor;
|
2026-01-27 18:27:29 +05:30
|
|
|
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'];
|
|
|
|
|
const PackageDetails = table2Data?.PackageDtl;
|
|
|
|
|
let PaymentStatusSuccess = PaymentStatus?.filter(
|
|
|
|
|
(ps) => ps.PaymentStatus === 'S'
|
|
|
|
|
);
|
|
|
|
|
const keysLength = Object.keys(table2Data ?? {}).length;
|
|
|
|
|
if (keysLength > 0) {
|
|
|
|
|
dispatch(changeReprintDataFound(true));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const currentDate = new Date();
|
|
|
|
|
const day = currentDate.getDate().toString().padStart(2, '0');
|
|
|
|
|
const monthNames = [
|
|
|
|
|
'Jan',
|
|
|
|
|
'Feb',
|
|
|
|
|
'Mar',
|
|
|
|
|
'Apr',
|
|
|
|
|
'May',
|
|
|
|
|
'Jun',
|
|
|
|
|
'Jul',
|
|
|
|
|
'Aug',
|
|
|
|
|
'Sep',
|
|
|
|
|
'Oct',
|
|
|
|
|
'Nov',
|
|
|
|
|
'Dec',
|
|
|
|
|
];
|
|
|
|
|
const monthIndex = currentDate.getMonth();
|
|
|
|
|
const year = currentDate.getFullYear().toString().slice(-2);
|
|
|
|
|
|
|
|
|
|
const formattedDate = `${day}-${monthNames[monthIndex]}-${year}`;
|
|
|
|
|
|
|
|
|
|
const TakeawayData = table2Data?.productDetails?.filter(
|
|
|
|
|
(item) => item.BookingTypeName?.toLowerCase() === 'takeaway'
|
|
|
|
|
);
|
|
|
|
|
const DineInData = table2Data?.productDetails?.filter(
|
|
|
|
|
(item) => item.BookingTypeName?.toLowerCase() === 'dine in'
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const TakeawayTotal = TakeawayData?.reduce(
|
|
|
|
|
(accumulator, currentValue) => accumulator + currentValue.TotalAmt,
|
|
|
|
|
0
|
|
|
|
|
);
|
|
|
|
|
const DineInTotal = DineInData?.reduce(
|
|
|
|
|
(accumulator, currentValue) => accumulator + currentValue.TotalAmt,
|
|
|
|
|
0
|
|
|
|
|
);
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return acc;
|
|
|
|
|
},
|
|
|
|
|
{}
|
|
|
|
|
);
|
|
|
|
|
const productsData = table2Data?.productDetails || [];
|
|
|
|
|
const offers = table2Data?.OrderOfferDetails || [];
|
|
|
|
|
|
|
|
|
|
let TotalOfferAmount = 0;
|
|
|
|
|
|
|
|
|
|
// Calculate SalesWiseOffers total amount
|
|
|
|
|
offers.forEach((offer) => {
|
|
|
|
|
if (offer.TableName === 'SalesWiseOffers') {
|
|
|
|
|
TotalOfferAmount += offer.OfferAmount;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const hasMappedOffer = offers.some((offer) =>
|
|
|
|
|
['ItemWiseOffers', 'BundleOffers', 'QuantityWiseOffers'].includes(
|
|
|
|
|
offer.TableName
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (hasMappedOffer) {
|
|
|
|
|
const productTotal = productsData?.reduce(
|
|
|
|
|
(acc, item) =>
|
|
|
|
|
acc + (item?.Type != 'C' ? item.OfferAmt : item.OfferValue || 0),
|
|
|
|
|
0
|
|
|
|
|
);
|
|
|
|
|
TotalOfferAmount += productTotal;
|
|
|
|
|
} else {
|
|
|
|
|
const Combothere = productsData?.filter((item) => item?.Type == 'C');
|
|
|
|
|
const CombothereTotal = Combothere?.reduce(
|
|
|
|
|
(acc, item) => acc + (item.OfferValue || 0),
|
|
|
|
|
0
|
|
|
|
|
);
|
|
|
|
|
TotalOfferAmount += CombothereTotal;
|
|
|
|
|
}
|
|
|
|
|
const products = [
|
|
|
|
|
{
|
|
|
|
|
ProdName: 'ITEM 1',
|
|
|
|
|
Rate: 88.0,
|
|
|
|
|
SalesQty: 2,
|
|
|
|
|
MRP: 100,
|
|
|
|
|
TotalAmt: 176,
|
|
|
|
|
discount: 0,
|
|
|
|
|
HSN: '01',
|
|
|
|
|
Size: 250,
|
|
|
|
|
UomName: 'g',
|
2026-02-04 18:10:12 +05:30
|
|
|
ProdTaxPercentage: 5,
|
2026-01-27 18:27:29 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ProdName: 'ITEM 2',
|
|
|
|
|
Rate: 300.0,
|
|
|
|
|
SalesQty: 1,
|
|
|
|
|
MRP: 350,
|
|
|
|
|
TotalAmt: 300,
|
|
|
|
|
discount: 0,
|
|
|
|
|
HSN: '02',
|
|
|
|
|
Size: 250,
|
|
|
|
|
UomName: 'g',
|
2026-02-04 18:10:12 +05:30
|
|
|
ProdTaxPercentage: 5,
|
2026-01-27 18:27:29 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ProdName: 'ITEM 3',
|
|
|
|
|
Rate: 200.0,
|
|
|
|
|
SalesQty: 1,
|
|
|
|
|
MRP: 250,
|
|
|
|
|
TotalAmt: 200,
|
|
|
|
|
discount: 0,
|
|
|
|
|
HSN: '03',
|
|
|
|
|
Size: 250,
|
|
|
|
|
UomName: 'g',
|
2026-02-04 18:10:12 +05:30
|
|
|
ProdTaxPercentage: 0,
|
2026-01-27 18:27:29 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ProdName: 'ITEM 4',
|
|
|
|
|
Rate: 30.0,
|
|
|
|
|
SalesQty: 1,
|
|
|
|
|
MRP: 50,
|
|
|
|
|
TotalAmt: 30,
|
|
|
|
|
discount: 0,
|
|
|
|
|
HSN: '04',
|
|
|
|
|
Size: 250,
|
|
|
|
|
UomName: 'g',
|
2026-02-04 18:10:12 +05:30
|
|
|
ProdTaxPercentage: 18,
|
2026-01-27 18:27:29 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ProdName: 'ITEM 5',
|
|
|
|
|
Rate: 30.0,
|
|
|
|
|
SalesQty: 1,
|
|
|
|
|
MRP: 50,
|
|
|
|
|
TotalAmt: 30,
|
|
|
|
|
discount: 0,
|
|
|
|
|
HSN: '05',
|
|
|
|
|
Size: 250,
|
|
|
|
|
UomName: 'g',
|
2026-02-04 18:10:12 +05:30
|
|
|
ProdTaxPercentage: 40,
|
2026-01-27 18:27:29 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ProdName: 'ITEM 6',
|
|
|
|
|
Rate: 130.0,
|
|
|
|
|
SalesQty: 1,
|
|
|
|
|
MRP: 150,
|
|
|
|
|
TotalAmt: 130,
|
|
|
|
|
discount: 0,
|
|
|
|
|
HSN: '06',
|
|
|
|
|
Size: 250,
|
|
|
|
|
UomName: 'g',
|
2026-02-04 18:10:12 +05:30
|
|
|
ProdTaxPercentage: 0,
|
2026-01-27 18:27:29 +05:30
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
ProdName: 'ITEM 7',
|
|
|
|
|
Rate: 230.0,
|
|
|
|
|
SalesQty: 1,
|
|
|
|
|
MRP: 250,
|
|
|
|
|
TotalAmt: 230,
|
|
|
|
|
discount: 0,
|
|
|
|
|
HSN: '08',
|
|
|
|
|
Size: 250,
|
|
|
|
|
UomName: 'g',
|
2026-02-04 18:10:12 +05:30
|
|
|
ProdTaxPercentage: 5,
|
2026-01-27 18:27:29 +05:30
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const chunkSize = PageSize == 'A5' ? 10 : 16;
|
|
|
|
|
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));
|
|
|
|
|
}
|
|
|
|
|
const lastChunkRows =
|
|
|
|
|
paginatedChunks.length > 0
|
|
|
|
|
? paginatedChunks[paginatedChunks.length - 1].length
|
|
|
|
|
: 0;
|
|
|
|
|
const shouldFooterBeOnNewPage = lastChunkRows > (PageSize == 'A5' ? 5 : 10);
|
2026-03-04 16:32:06 +05:30
|
|
|
const headerStyle = {
|
|
|
|
|
backgroundColor: GlobaldummyData
|
|
|
|
|
? SelectedHeaderColor
|
|
|
|
|
: headerColor?.background,
|
2026-01-27 18:27:29 +05:30
|
|
|
|
2026-03-04 16:32:06 +05:30
|
|
|
color: GlobaldummyData
|
|
|
|
|
? SelectedHeaderFontColor
|
|
|
|
|
: headerColor?.font,
|
|
|
|
|
}
|
|
|
|
|
const tableHeaderStyle = {
|
|
|
|
|
backgroundColor: GlobaldummyData
|
|
|
|
|
? SelectedTableHeaderColor
|
|
|
|
|
: tableHeaderColor?.background,
|
|
|
|
|
|
|
|
|
|
color: GlobaldummyData
|
|
|
|
|
? SelectedTableHeaderFontColor
|
|
|
|
|
: tableHeaderColor?.font,
|
|
|
|
|
}
|
|
|
|
|
const tableBodyStyle = {
|
|
|
|
|
backgroundColor: GlobaldummyData
|
|
|
|
|
? SelectedTableBodyColor
|
|
|
|
|
: tableBodyColor?.background,
|
|
|
|
|
color: GlobaldummyData
|
|
|
|
|
? SelectedTableBodyFontColor
|
|
|
|
|
: tableBodyColor?.font,
|
|
|
|
|
}
|
|
|
|
|
const rowtypeStyle = GlobaldummyData ? SelectedRowType : tableBodyColor?.rowType;
|
|
|
|
|
const footerColorStyle = {
|
|
|
|
|
backgroundColor: GlobaldummyData
|
|
|
|
|
? SelectedTableFooterColor
|
|
|
|
|
: footerColor?.background,
|
|
|
|
|
|
|
|
|
|
color: GlobaldummyData
|
|
|
|
|
? SelectedTableFooterFontColor
|
|
|
|
|
: footerColor?.font,
|
|
|
|
|
}
|
|
|
|
|
const netAmountStyle = {
|
|
|
|
|
backgroundColor: GlobaldummyData
|
|
|
|
|
? SelectedNetAmountColor
|
|
|
|
|
: netAmtColor?.background,
|
|
|
|
|
|
|
|
|
|
color: GlobaldummyData
|
|
|
|
|
? SelectedNetAmountFontColor
|
|
|
|
|
: netAmtColor?.font,
|
|
|
|
|
}
|
2026-01-27 18:27:29 +05:30
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{FormatTheme ? (
|
|
|
|
|
<div
|
|
|
|
|
className="PrintStyle9MasterDiv"
|
|
|
|
|
id={`PrintStyle9-${index}`}
|
|
|
|
|
style={{
|
|
|
|
|
fontFamily: "'Courier New', Courier, monospace",
|
|
|
|
|
position: 'relative',
|
|
|
|
|
width: '100%',
|
|
|
|
|
minHeight: isMobile ? '' : PageSize == 'A5' ? '210mm' : '297mm',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{paginatedChunks.map((dataChunk, chunkIndex) => (
|
|
|
|
|
<div
|
|
|
|
|
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-03-03 09:54:56 +05:30
|
|
|
!shouldFooterBeOnNewPage &&
|
|
|
|
|
FormatTheme
|
2026-01-27 18:27:29 +05:30
|
|
|
? 'space-between'
|
|
|
|
|
: '',
|
|
|
|
|
height: isMobile
|
|
|
|
|
? '295mm'
|
|
|
|
|
: FormatTheme
|
|
|
|
|
? PageSize == 'A5'
|
|
|
|
|
? '170mm'
|
|
|
|
|
: '257mm'
|
|
|
|
|
: '',
|
|
|
|
|
}}
|
|
|
|
|
key={chunkIndex}
|
|
|
|
|
>
|
|
|
|
|
{/* <div className="header" style={{ position: isMobile ? "" : GlobaldummyData ? "absolute" : "fixed", top: 0, width: "100%" }}> */}
|
|
|
|
|
<div
|
|
|
|
|
className="header"
|
|
|
|
|
style={{
|
|
|
|
|
position: isMobile
|
|
|
|
|
? ''
|
|
|
|
|
: GlobaldummyData
|
|
|
|
|
? 'absolute'
|
|
|
|
|
: isPdf
|
|
|
|
|
? 'static'
|
|
|
|
|
: 'fixed',
|
|
|
|
|
top: 0,
|
|
|
|
|
width: '100%',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
2026-03-04 16:32:06 +05:30
|
|
|
<div className="PrintStyle9-print" style={{...headerStyle}}>
|
2026-01-27 18:27:29 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'row',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobalLogo && GlobaldummyData ? (
|
|
|
|
|
<img
|
|
|
|
|
className="PrintStyle2-BrandImage"
|
|
|
|
|
src={Logo}
|
|
|
|
|
alt="image"
|
|
|
|
|
/>
|
|
|
|
|
) : null}
|
|
|
|
|
{base64Image &&
|
2026-03-03 09:54:56 +05:30
|
|
|
(PrintLogo?.SettingValue === 'Y' || LogoField) ? (
|
2026-01-27 18:27:29 +05:30
|
|
|
<img
|
|
|
|
|
className="PrintStyle2-BrandImage"
|
|
|
|
|
src={base64Image}
|
|
|
|
|
alt="image"
|
|
|
|
|
width={100}
|
|
|
|
|
/>
|
|
|
|
|
) : null}
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: 'clamp(1.5rem, 2.5vw, 2rem)',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
className="PrintStyle9-Branch"
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{ fontSize: '12.83px', fontWeight: '400' }}>
|
|
|
|
|
Low Prices... Love the Saving...
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? 'BranchAddress, Town- 635XXX City - State'
|
|
|
|
|
: (table2Data?.AddressDetails?.[0]?.Address1 || '') +
|
2026-03-03 09:54:56 +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-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style={{ fontSize: '11px', fontWeight: '400' }}>
|
|
|
|
|
{' '}
|
|
|
|
|
Mobile : +91{' '}
|
|
|
|
|
{GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}
|
|
|
|
|
</div>
|
2026-02-25 19:27:02 +05:30
|
|
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
2026-01-27 18:27:29 +05:30
|
|
|
<div
|
|
|
|
|
className=""
|
|
|
|
|
style={{
|
|
|
|
|
textTransform: 'uppercase',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Estimate{' '}
|
2026-03-03 09:54:56 +05:30
|
|
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
|
|
|
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div
|
|
|
|
|
className=""
|
|
|
|
|
style={{
|
|
|
|
|
textTransform: 'uppercase',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? 'Cash'
|
|
|
|
|
: BillName
|
|
|
|
|
? BillName
|
|
|
|
|
: PaymentStatusSuccess?.length === 1
|
|
|
|
|
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
|
|
|
|
: ''}{' '}
|
2026-03-03 09:54:56 +05:30
|
|
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
|
|
|
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{ fontSize: '14px', fontWeight: '600' }}>
|
|
|
|
|
{' '}
|
|
|
|
|
BILL NO :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '553'
|
|
|
|
|
: table2Data?.OrderId &&
|
2026-03-03 09:54:56 +05:30
|
|
|
extractLastNumberOrderId(
|
|
|
|
|
table2Data?.OrderId,
|
|
|
|
|
table2Data?.FYStatus
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
{SalesModePref?.SettingValue == 'Y' && <div style={{ fontSize: '13px', fontWeight: 600 }}>
|
|
|
|
|
{' '}
|
|
|
|
|
Name : {table2Data?.SalesMode == "R" ? "RT" : "WS"}{' '}
|
|
|
|
|
</div>}
|
2026-01-27 18:27:29 +05:30
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400' }}>
|
|
|
|
|
{' '}
|
|
|
|
|
{GlobaldummyData ? formattedDate : Date1}{' '}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
2026-03-03 09:54:56 +05:30
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
|
|
|
|
<div
|
|
|
|
|
className=""
|
|
|
|
|
style={{
|
|
|
|
|
textTransform: 'uppercase',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Estimate{' '}
|
|
|
|
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
|
|
|
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
<div className="straight-line9"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{ marginTop: GlobaldummyData ? '9rem' : '0rem' }}
|
|
|
|
|
className="print-body"
|
|
|
|
|
>
|
|
|
|
|
{(TakeawayData?.length > 0 || GlobaldummyData) && (
|
|
|
|
|
<>
|
|
|
|
|
{takeAwayPreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
width: '100%',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Take Away
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
<table className="PrintStyle9-print-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSlNo && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px' }}>S.No</th>
|
2026-03-03 09:54:56 +05:30
|
|
|
)
|
2026-03-04 16:32:06 +05:30
|
|
|
: SLNO && <th style={{...tableHeaderStyle, width: '10px' }}>S.No</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalItem && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px' }}>Item</th>
|
2026-03-03 09:54:56 +05:30
|
|
|
)
|
2026-03-04 16:32:06 +05:30
|
|
|
: Item && <th style={{...tableHeaderStyle, width: '10px' }}>Item</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Qty
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Quantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalMRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: MRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Discount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 18:10:12 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalTax && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
|
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Rate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalAmount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Amount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{dataChunk?.map((item, index) => {
|
|
|
|
|
return (
|
2026-03-04 16:32:06 +05:30
|
|
|
<tr key={index}
|
|
|
|
|
style={
|
|
|
|
|
index % 2 !== 1 && rowtypeStyle === "even"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: index % 2 === 1 && rowtypeStyle === "odd"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: {}
|
|
|
|
|
}>
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSlNo && <td>{index + 1}</td>
|
|
|
|
|
: SLNO && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td>
|
|
|
|
|
{chunkIndex * chunkSize + index + 1}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalItem && <td>{item?.ProdName}</td>
|
|
|
|
|
: Item && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ display: "flex", flexDirection: "column" }}>
|
|
|
|
|
|
|
|
|
|
<div>{item?.ProdName}</div>
|
|
|
|
|
|
|
|
|
|
{(() => {
|
|
|
|
|
const packages =
|
|
|
|
|
PackageDetails?.filter(pkg => pkg.ProdId === item.ProdId) || [];
|
|
|
|
|
|
|
|
|
|
const identifiers = item?.ProductIdentifierDtls || [];
|
|
|
|
|
|
|
|
|
|
return packages.length > 0 ? (
|
2026-02-26 11:44:46 +05:30
|
|
|
<div>
|
2026-03-03 09:54:56 +05:30
|
|
|
{/* Package Details */}
|
|
|
|
|
{packages.map((pkg, i) => (
|
|
|
|
|
<span key={i} style={{ display: "block" }}>
|
|
|
|
|
{pkg.ParcelCount} PCS {pkg.ParcelQty} PACK ({pkg.ParcelType})
|
2026-02-26 11:44:46 +05:30
|
|
|
</span>
|
|
|
|
|
))}
|
2026-03-03 09:54:56 +05:30
|
|
|
|
|
|
|
|
{item?.BrandName && <div>{item.BrandName}</div>}
|
|
|
|
|
|
|
|
|
|
{/* Identifiers */}
|
|
|
|
|
<div style={{ display: "flex", gap: "3px", flexWrap: "wrap", flexDirection: "column" }}>
|
|
|
|
|
{identifiers.map((id, i) => (
|
|
|
|
|
<div key={i} style={{ display: "flex", gap: "4px", flexWrap: "wrap", flexDirection: "column" }}>
|
|
|
|
|
{id.SerialNumber && <div>{id.SerialNumber}</div>}
|
|
|
|
|
{(id.IMEI1 || id.IMEI2) && (
|
|
|
|
|
<div>{[id.IMEI1, id.IMEI2].filter(Boolean).join(",")}</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
2026-03-03 11:28:09 +05:30
|
|
|
{identifiers.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2)?.Description && (
|
|
|
|
|
<div>{identifiers.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2).Description}</div>
|
|
|
|
|
)}
|
2026-03-03 09:54:56 +05:30
|
|
|
</div>
|
2026-02-26 11:44:46 +05:30
|
|
|
</div>
|
|
|
|
|
) : (
|
|
|
|
|
<div>
|
2026-03-03 09:54:56 +05:30
|
|
|
{/* Size + UOM */}
|
|
|
|
|
{UomPrint?.SettingValue === 'Y' && (
|
|
|
|
|
<div>
|
|
|
|
|
({item?.Size || "1"}{" "}
|
|
|
|
|
{item?.SinglePc === "Y"
|
|
|
|
|
? "PCS"
|
|
|
|
|
: item?.Type !== "C"
|
|
|
|
|
? item?.UomName
|
|
|
|
|
: "COMBO"})
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{item?.BrandName && <div>{item.BrandName}</div>}
|
|
|
|
|
|
|
|
|
|
{/* Identifiers */}
|
|
|
|
|
{identifiers.map((id, i) => (
|
|
|
|
|
<div key={i} style={{ display: "flex", gap: "4px", flexWrap: "wrap", flexDirection: "column" }}>
|
|
|
|
|
{id.SerialNumber && <div>{id.SerialNumber}</div>}
|
|
|
|
|
|
|
|
|
|
{(id.IMEI1 || id.IMEI2) && (
|
|
|
|
|
<div>
|
|
|
|
|
{[id.IMEI1, id.IMEI2].filter(Boolean).join(",")}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
2026-03-03 11:28:09 +05:30
|
|
|
{identifiers.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2)?.Description && (
|
|
|
|
|
<div>{identifiers.find(d => d.SerialNumber || d.IMEI1 || d.IMEI2).Description}</div>
|
|
|
|
|
)}
|
2026-02-26 11:44:46 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
);
|
|
|
|
|
})()}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Quantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalMRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: MRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SinglePc === 'Y'
|
|
|
|
|
? item?.Rate
|
|
|
|
|
: item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item.discount}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Discount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Type != 'C'
|
|
|
|
|
? item?.OfferAmt || 0
|
|
|
|
|
: item?.OfferValue || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-02-04 18:10:12 +05:30
|
|
|
? GlobalTax && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
|
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Rate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalAmount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.TotalAmt}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Amount && (
|
2026-03-03 09:54:56 +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>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{DineInData?.length > 0 && dinePreference && (
|
|
|
|
|
<>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
width: '100%',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Dine In
|
|
|
|
|
</div>
|
|
|
|
|
<table className="PrintStyle9-print-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSlNo && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px' }}>S.No</th>
|
2026-03-03 09:54:56 +05:30
|
|
|
)
|
2026-03-04 16:32:06 +05:30
|
|
|
: SLNO && <th style={{...tableHeaderStyle, width: '10px' }}>S.No</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalItem && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px' }}>Item</th>
|
2026-03-03 09:54:56 +05:30
|
|
|
)
|
2026-03-04 16:32:06 +05:30
|
|
|
: Item && <th style={{...tableHeaderStyle, width: '10px' }}>Item</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Qty
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-26 11:44:46 +05:30
|
|
|
: Quantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalMRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: MRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Discount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 18:10:12 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalTax && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
|
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Rate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalAmount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Amount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<th
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}
|
2026-03-03 09:54:56 +05:30
|
|
|
>
|
|
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{dataChunk?.map((item, index) => {
|
|
|
|
|
return (
|
2026-03-04 16:32:06 +05:30
|
|
|
<tr key={index}
|
|
|
|
|
style={
|
|
|
|
|
index % 2 !== 1 && rowtypeStyle === "even"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: index % 2 === 1 && rowtypeStyle === "odd"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: {}
|
|
|
|
|
}>
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSlNo && <td>{index + 1}</td>
|
|
|
|
|
: SLNO && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td>
|
|
|
|
|
{chunkIndex * chunkSize + index + 1}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalItem && <td>{item?.ProdName}</td>
|
|
|
|
|
: Item && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div>{item?.ProdName}</div>
|
|
|
|
|
{UomPrint?.SettingValue === 'Y' && (
|
|
|
|
|
<div>
|
|
|
|
|
({item?.Size ? item?.Size : '1'}{' '}
|
|
|
|
|
{item?.SinglePc == 'Y'
|
|
|
|
|
? 'PCS'
|
|
|
|
|
: item?.Type != 'C'
|
|
|
|
|
? item?.UomName
|
|
|
|
|
: 'COMBO'})
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{item?.BrandName && <div>{item.BrandName}</div>}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Quantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalMRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: MRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SinglePc === 'Y'
|
|
|
|
|
? item?.Rate
|
|
|
|
|
: item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item.discount}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Discount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Type != 'C'
|
|
|
|
|
? item?.OfferAmt || 0
|
|
|
|
|
: item?.OfferValue || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-02-04 18:10:12 +05:30
|
|
|
? GlobalTax && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
|
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Rate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalAmount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.TotalAmt}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Amount && (
|
2026-03-03 09:54:56 +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>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
{chunkIndex === paginatedChunks.length - 1 &&
|
|
|
|
|
!shouldFooterBeOnNewPage &&
|
|
|
|
|
FormatTheme && (
|
|
|
|
|
<>
|
|
|
|
|
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
|
|
|
|
{DineInData?.length > 0 &&
|
|
|
|
|
TakeawayData?.length > 0 &&
|
|
|
|
|
takeAwayPreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Take Away :
|
|
|
|
|
<div>{Number(TakeawayTotal).toFixed(2)}</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{DineInData?.length > 0 &&
|
|
|
|
|
TakeawayData?.length > 0 &&
|
|
|
|
|
dinePreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Dine In :<div>{Number(DineInTotal).toFixed(2)}</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{(table2Data?.OverallDisc > 0 ||
|
|
|
|
|
TotalOfferAmount > 0) && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Off :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(
|
2026-01-27 18:27:29 +05:30
|
|
|
TotalOfferAmount + table2Data?.OverallDisc
|
|
|
|
|
).toFixed(2)}
|
2026-03-03 09:54:56 +05:30
|
|
|
</div>
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Amount :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Items :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData ? '8' : totalQuantityFilter?.length}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Qty :<div>{GlobaldummyData ? '9' : totalQuantity}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
2026-03-04 16:32:06 +05:30
|
|
|
...netAmountStyle
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div style={{ fontWeight: '700' }}>Net Amount:</div>
|
|
|
|
|
<div style={{ fontWeight: '700', marginRight: '0.5rem' }}>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div className="PrintStyle9-print-strdtlss">
|
|
|
|
|
{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)) &&
|
|
|
|
|
table2Data?.NetAmount !== 0 && (
|
|
|
|
|
<>
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: 0,
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
--------- GST Breakup Details -----------
|
|
|
|
|
</div>
|
|
|
|
|
{OrderDetailGST?.length > 0 &&
|
|
|
|
|
OrderDetailGST?.[0]?.TaxAmt > 0 && (
|
|
|
|
|
<table style={{ width: '90%' }}>
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
CGST
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
SGST
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailGST?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.CGST).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.SGST).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TotalAmt).toFixed(
|
|
|
|
|
2
|
|
|
|
|
)}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</table>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{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: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
IGST
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailIGST?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TaxAmt).toFixed(
|
|
|
|
|
2
|
|
|
|
|
)}
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
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: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
VAT
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailVAT?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TaxAmt).toFixed(
|
|
|
|
|
2
|
|
|
|
|
)}
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.TotalAmt
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</table>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-evenly',
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '17px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{PaymentStatusSuccess?.length === 1
|
|
|
|
|
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
|
|
|
|
: 'Split'}{' '}
|
|
|
|
|
Payment :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
/-{' '}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalCredit && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
fontSize: '15px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
lineHeight: '12px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<h6>Advance Amount:</h6>
|
|
|
|
|
<h6>Opening Balance:</h6>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: CreditDetails &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.CustomerDetails?.length > 0 && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
fontSize: '14px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
lineHeight: '12px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{/* OLD CREDIT BAL */}
|
|
|
|
|
{PaymentStatusSuccess?.[0]?.PaymentTypeName ===
|
|
|
|
|
'Credit' && (
|
2026-01-27 18:27:29 +05:30
|
|
|
<>
|
|
|
|
|
{table2Data.CustomerDetails[0].OldCreditBal >
|
2026-03-03 09:54:56 +05:30
|
|
|
0 ? (
|
2026-01-27 18:27:29 +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-03-03 09:54:56 +05:30
|
|
|
{/* CURRENT CREDIT BAL */}
|
|
|
|
|
{table2Data.CustomerDetails[0].CurrentCreditBal >
|
2026-02-25 19:27:02 +05:30
|
|
|
0 ? (
|
2026-03-03 09:54:56 +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-01-27 18:27:29 +05:30
|
|
|
<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) => (
|
|
|
|
|
<div
|
|
|
|
|
key={paymentType}
|
|
|
|
|
style={{
|
|
|
|
|
margin: 0,
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{paymentType}:{' '}
|
|
|
|
|
{aggregatedPayments[paymentType].toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
)}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{GlobaldummyData && GlobalCashierName && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Cashier : Cashier Name
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{CashierName &&
|
|
|
|
|
CashierName !== undefined &&
|
|
|
|
|
CashierName !== null &&
|
|
|
|
|
!GlobaldummyData &&
|
|
|
|
|
CashierNameField && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Cashier : {CashierName}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{GlobaldummyData && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Customer : Customer Name
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{table2Data?.CustSuppName &&
|
|
|
|
|
table2Data?.CustSuppName !== undefined &&
|
|
|
|
|
table2Data?.CustSuppName !== null &&
|
|
|
|
|
!GlobaldummyData && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Customer : {table2Data?.CustSuppName}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{table2Data?.BookingTypeName == 'Dine In' &&
|
|
|
|
|
table2Data?.SalesTableLinkDetails?.[0]?.WaiterName && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Captain :{' '}
|
|
|
|
|
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* <div className="PrintStyle9-print-strdtlss">
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400', display: "flex" }}> CARD : <div>*********12</div> </div>
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400', display: "flex" }}> CARD HOLDER : <div>CARD HOLDER NAME</div> </div>
|
|
|
|
|
</div> */}
|
|
|
|
|
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQrcodet && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<img src={Qrcode} alt="QRcode" />
|
|
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
Scan to Pay{' '}
|
2026-02-25 19:27:02 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
₹{' '}
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(
|
|
|
|
|
2
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-02-04 19:16:18 +05:30
|
|
|
: Qrcodet &&
|
2026-03-03 09:54:56 +05:30
|
|
|
paymentTypeUPI && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<QRCode
|
|
|
|
|
value={`upi://pay?pa=${GlobalUpiID}&pn=Merchant&am=${table2Data?.NetAmount}&cu=INR`}
|
|
|
|
|
size={80}
|
|
|
|
|
/>
|
|
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
Scan to Pay{' '}
|
2026-02-25 19:27:02 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
₹
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(
|
|
|
|
|
2
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</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: '13px',
|
|
|
|
|
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-03-03 09:54:56 +05:30
|
|
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
|
|
|
|
(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>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '13px',
|
|
|
|
|
width: '100%',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
2026-01-27 18:27:29 +05:30
|
|
|
Your Order No :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '01'
|
|
|
|
|
: table2Data?.SalesId &&
|
2026-03-03 09:54:56 +05:30
|
|
|
extractLastNumber(table2Data?.SalesId)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="straight-line9"></div>
|
|
|
|
|
{sportsAppPreference && MembershipApplied && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
width: '100%',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
paddingTop: '10px',
|
|
|
|
|
}}
|
|
|
|
|
>{`*** 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',
|
2026-03-04 16:32:06 +05:30
|
|
|
...footerColorStyle
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalIsnotes && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div>
|
|
|
|
|
<p style={{ padding: '0rem 1rem' }}>
|
|
|
|
|
Notes : 10 days Return policy
|
|
|
|
|
</p>
|
2026-01-27 18:27:29 +05:30
|
|
|
|
2026-03-03 09:54:56 +05:30
|
|
|
<hr className="PrintA4Style11-print-dottline" />
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Notestext && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div>
|
|
|
|
|
<p style={{ padding: '0rem 1rem' }}>
|
|
|
|
|
{Notestext}
|
|
|
|
|
</p>
|
2026-01-27 18:27:29 +05:30
|
|
|
|
2026-03-03 09:54:56 +05:30
|
|
|
<hr className="PrintA4Style11-print-dottline" />
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
width: '90%',
|
|
|
|
|
padding: '0 1rem',
|
|
|
|
|
justifyContent: GlobaltermsAndConditions
|
|
|
|
|
? 'space-between'
|
|
|
|
|
: 'flex-end',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobaltermsAndConditions && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: '8px 0',
|
|
|
|
|
padding: '8px',
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
width: '100%',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-02-25 19:27:02 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-02-25 19:27:02 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
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>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: TermsnAdCondition == true &&
|
2026-03-03 09:54:56 +05:30
|
|
|
TermsAndConditions?.length > 0 && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: '8px 0',
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
width: '100%',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-02-25 19:27:02 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-02-25 19:27:02 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Terms & Conditions
|
|
|
|
|
</p>
|
|
|
|
|
<ol
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
paddingLeft: '18px',
|
|
|
|
|
margin: 0,
|
|
|
|
|
lineHeight: '1',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{TermsAndConditions?.map((item) => (
|
|
|
|
|
<li style={{ textAlign: 'start' }}>
|
|
|
|
|
{item?.TermsandConditions}
|
|
|
|
|
</li>
|
|
|
|
|
))}
|
|
|
|
|
{/* <li>Please check the product before leaving the counter.</li> */}
|
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSignature && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'flex-end',
|
|
|
|
|
paddingBottom: '1rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-01-27 18:27:29 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Signature
|
|
|
|
|
</p>
|
|
|
|
|
<img
|
|
|
|
|
style={{ width: '70px', height: '40px' }}
|
|
|
|
|
src={
|
|
|
|
|
GlobalSignatureImages
|
|
|
|
|
? GlobalSignatureImages
|
|
|
|
|
: signature
|
|
|
|
|
}
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Signature == true && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
marginTop: '1rem',
|
|
|
|
|
paddingBottom: '1rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-01-27 18:27:29 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Signature
|
|
|
|
|
</p>
|
|
|
|
|
<img
|
|
|
|
|
style={{ width: '100px', height: '60px' }}
|
|
|
|
|
src={SignatureImg}
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
{PrintGreeting?.SettingValue === 'Y' && (
|
|
|
|
|
<>
|
|
|
|
|
<hr class="star-line" />
|
|
|
|
|
|
|
|
|
|
<div className="PrintStyleFooter9">
|
|
|
|
|
{/* <div style={{ fontSize: '10px', fontWeight: '400' }}>Terms & Condition</div>
|
|
|
|
|
<div style={{ fontSize: '10px', fontWeight: '400' }} >Xxxx Yyyy Xxxx Yyyy Xxxx Yyyy Xxxx Yyyy</div>
|
|
|
|
|
<br /> */}
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{ fontweight: '400', fontWeight: 'bold' }}
|
|
|
|
|
className="PrintStyle9-print-ftr"
|
|
|
|
|
>
|
|
|
|
|
Thank You Visit Again
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr class="star-line" />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
|
|
|
|
|
{shouldFooterBeOnNewPage && FormatTheme && (
|
|
|
|
|
<div
|
|
|
|
|
className="print-page"
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
minHeight: PageSize == 'A5' ? '200mm' : '260mm',
|
|
|
|
|
justifyContent: 'flex-end',
|
|
|
|
|
pageBreakBefore: 'always',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
className="page-footerA4Style11"
|
|
|
|
|
style={{
|
|
|
|
|
marginTop: 'auto',
|
|
|
|
|
pageBreakBefore: 'avoid',
|
|
|
|
|
pageBreakInside: 'avoid',
|
|
|
|
|
minHeight: 'auto',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<>
|
|
|
|
|
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
|
|
|
|
{DineInData?.length > 0 &&
|
|
|
|
|
TakeawayData?.length > 0 &&
|
|
|
|
|
takeAwayPreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Take Away :
|
|
|
|
|
<div>{Number(TakeawayTotal).toFixed(2)}</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{DineInData?.length > 0 &&
|
|
|
|
|
TakeawayData?.length > 0 &&
|
|
|
|
|
dinePreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Dine In :<div>{Number(DineInTotal).toFixed(2)}</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{(table2Data?.OverallDisc > 0 || TotalOfferAmount > 0) && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Off :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(
|
2026-03-03 09:54:56 +05:30
|
|
|
TotalOfferAmount + table2Data?.OverallDisc
|
|
|
|
|
).toFixed(2)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Amount :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Items :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData ? '8' : totalQuantityFilter?.length}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Qty :<div>{GlobaldummyData ? '9' : totalQuantity}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
|
|
|
|
|
<div
|
2026-03-04 16:32:06 +05:30
|
|
|
style={{ display: 'flex', justifyContent: 'space-between',...netAmountStyle }}
|
2026-01-27 18:27:29 +05:30
|
|
|
>
|
|
|
|
|
<div style={{ fontWeight: '700' }}>Net Amount:</div>
|
|
|
|
|
<div style={{ fontWeight: '700', marginRight: '0.5rem' }}>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{ display: 'flex', justifyContent: 'space-between' }}
|
|
|
|
|
>
|
|
|
|
|
<div className="PrintStyle9-print-strdtlss">
|
|
|
|
|
{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)) &&
|
|
|
|
|
table2Data?.NetAmount !== 0 && (
|
|
|
|
|
<>
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: 0,
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
--------- GST Breakup Details -----------
|
|
|
|
|
</div>
|
|
|
|
|
{OrderDetailGST?.length > 0 &&
|
|
|
|
|
OrderDetailGST?.[0]?.TaxAmt > 0 && (
|
|
|
|
|
<table style={{ width: '90%' }}>
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
CGST
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
SGST
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailGST?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.CGST).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.SGST).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TotalAmt).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</table>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{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: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
IGST
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailIGST?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TaxAmt).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
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: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
VAT
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailVAT?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TaxAmt).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TotalAmt).toFixed(
|
|
|
|
|
2
|
|
|
|
|
)}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</table>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-evenly',
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '17px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{PaymentStatusSuccess?.length === 1
|
|
|
|
|
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
|
|
|
|
: 'Split'}{' '}
|
|
|
|
|
Payment :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
/-{' '}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalCredit && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
fontSize: '15px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
lineHeight: '12px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<h6>Advance Amount:</h6>
|
|
|
|
|
<h6>Opening Balance:</h6>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: CreditDetails &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.CustomerDetails?.length > 0 && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
fontSize: '14px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
lineHeight: '12px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{/* OLD CREDIT BAL */}
|
|
|
|
|
{PaymentStatusSuccess?.[0]?.PaymentTypeName ===
|
|
|
|
|
'Credit' && (
|
2026-01-27 18:27:29 +05:30
|
|
|
<>
|
|
|
|
|
{table2Data.CustomerDetails[0].OldCreditBal >
|
2026-03-03 09:54:56 +05:30
|
|
|
0 ? (
|
2026-01-27 18:27:29 +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-03-03 09:54:56 +05:30
|
|
|
{/* CURRENT CREDIT BAL */}
|
|
|
|
|
{table2Data.CustomerDetails[0].CurrentCreditBal >
|
2026-02-25 19:27:02 +05:30
|
|
|
0 ? (
|
2026-03-03 09:54:56 +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-01-27 18:27:29 +05:30
|
|
|
<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) => (
|
|
|
|
|
<div
|
|
|
|
|
key={paymentType}
|
|
|
|
|
style={{ margin: 0, padding: 0, fontSize: '12px' }}
|
|
|
|
|
>
|
|
|
|
|
{paymentType}:{' '}
|
|
|
|
|
{aggregatedPayments[paymentType].toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{GlobaldummyData && GlobalCashierName && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Cashier : Cashier Name
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{CashierName &&
|
|
|
|
|
CashierName !== undefined &&
|
|
|
|
|
CashierName !== null &&
|
|
|
|
|
!GlobaldummyData &&
|
|
|
|
|
CashierNameField && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Cashier : {CashierName}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{GlobaldummyData && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Customer : Customer Name
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{table2Data?.CustSuppName &&
|
|
|
|
|
table2Data?.CustSuppName !== undefined &&
|
|
|
|
|
table2Data?.CustSuppName !== null &&
|
|
|
|
|
!GlobaldummyData && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Customer : {table2Data?.CustSuppName}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{table2Data?.BookingTypeName == 'Dine In' &&
|
|
|
|
|
table2Data?.SalesTableLinkDetails?.[0]?.WaiterName && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Captain :{' '}
|
|
|
|
|
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* <div className="PrintStyle9-print-strdtlss">
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400', display: "flex" }}> CARD : <div>*********12</div> </div>
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400', display: "flex" }}> CARD HOLDER : <div>CARD HOLDER NAME</div> </div>
|
|
|
|
|
</div> */}
|
|
|
|
|
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQrcodet && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<img src={Qrcode} alt="QRcode" />
|
|
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
Scan to Pay{' '}
|
2026-02-25 19:27:02 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
₹{' '}
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Qrcodet &&
|
2026-03-03 09:54:56 +05:30
|
|
|
paymentTypeUPI && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<QRCode
|
|
|
|
|
value={`upi://pay?pa=${GlobalUpiID}&pn=Merchant&am=${table2Data?.NetAmount}&cu=INR`}
|
|
|
|
|
size={80}
|
|
|
|
|
/>
|
|
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
Scan to Pay{' '}
|
2026-02-25 19:27:02 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
₹
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-02-04 18:10:12 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
{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: '13px',
|
|
|
|
|
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-03-03 09:54:56 +05:30
|
|
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
|
|
|
|
(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 18:10:12 +05:30
|
|
|
</div>
|
2026-02-04 18:10:12 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
|
2026-02-04 18:10:12 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '13px',
|
|
|
|
|
width: '100%',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
2026-01-27 18:27:29 +05:30
|
|
|
Your Order No :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '01'
|
|
|
|
|
: table2Data?.SalesId &&
|
2026-03-03 09:54:56 +05:30
|
|
|
extractLastNumber(table2Data?.SalesId)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="straight-line9"></div>
|
|
|
|
|
{sportsAppPreference && MembershipApplied && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
width: '100%',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
paddingTop: '10px',
|
|
|
|
|
}}
|
|
|
|
|
>{`*** 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',
|
2026-03-04 16:32:06 +05:30
|
|
|
...footerColorStyle
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalIsnotes && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div>
|
|
|
|
|
<p style={{ padding: '0rem 1rem' }}>
|
|
|
|
|
Notes : 10 days Return policy
|
|
|
|
|
</p>
|
2026-01-27 18:27:29 +05:30
|
|
|
|
2026-03-03 09:54:56 +05:30
|
|
|
<hr className="PrintA4Style11-print-dottline" />
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Notestext && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div>
|
|
|
|
|
<p style={{ padding: '0rem 1rem' }}>
|
|
|
|
|
{Notestext}
|
|
|
|
|
</p>
|
2026-01-27 18:27:29 +05:30
|
|
|
|
2026-03-03 09:54:56 +05:30
|
|
|
<hr className="PrintA4Style11-print-dottline" />
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
width: '90%',
|
|
|
|
|
padding: '0 1rem',
|
|
|
|
|
justifyContent: GlobaltermsAndConditions
|
|
|
|
|
? 'space-between'
|
|
|
|
|
: 'flex-end',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobaltermsAndConditions && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: '8px 0',
|
|
|
|
|
padding: '8px',
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
width: '100%',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-02-25 19:27:02 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-02-25 19:27:02 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
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>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: TermsnAdCondition == true &&
|
2026-03-03 09:54:56 +05:30
|
|
|
TermsAndConditions?.length > 0 && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: '8px 0',
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
width: '100%',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-02-25 19:27:02 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-02-25 19:27:02 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Terms & Conditions
|
|
|
|
|
</p>
|
|
|
|
|
<ol
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
paddingLeft: '18px',
|
|
|
|
|
margin: 0,
|
|
|
|
|
lineHeight: '1',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{TermsAndConditions?.map((item) => (
|
|
|
|
|
<li style={{ textAlign: 'start' }}>
|
|
|
|
|
{item?.TermsandConditions}
|
|
|
|
|
</li>
|
|
|
|
|
))}
|
|
|
|
|
{/* <li>Please check the product before leaving the counter.</li> */}
|
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSignature && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'flex-end',
|
|
|
|
|
paddingBottom: '1rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-01-27 18:27:29 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Signature
|
|
|
|
|
</p>
|
|
|
|
|
<img
|
|
|
|
|
style={{ width: '70px', height: '40px' }}
|
|
|
|
|
src={
|
|
|
|
|
GlobalSignatureImages
|
|
|
|
|
? GlobalSignatureImages
|
|
|
|
|
: signature
|
|
|
|
|
}
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Signature == true && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
marginTop: '1rem',
|
|
|
|
|
paddingBottom: '1rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-01-27 18:27:29 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Signature
|
|
|
|
|
</p>
|
|
|
|
|
<img
|
|
|
|
|
style={{ width: '100px', height: '60px' }}
|
|
|
|
|
src={SignatureImg}
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
{PrintGreeting?.SettingValue === 'Y' && (
|
|
|
|
|
<>
|
|
|
|
|
<hr class="star-line" />
|
|
|
|
|
|
|
|
|
|
<div className="PrintStyleFooter9">
|
|
|
|
|
{/* <div style={{ fontSize: '10px', fontWeight: '400' }}>Terms & Condition</div>
|
|
|
|
|
<div style={{ fontSize: '10px', fontWeight: '400' }} >Xxxx Yyyy Xxxx Yyyy Xxxx Yyyy Xxxx Yyyy</div>
|
|
|
|
|
<br /> */}
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{ fontweight: '400', fontWeight: 'bold' }}
|
|
|
|
|
className="PrintStyle9-print-ftr"
|
|
|
|
|
>
|
|
|
|
|
Thank You Visit Again
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr class="star-line" />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
) : (
|
|
|
|
|
<div
|
|
|
|
|
className="PrintStyle9MasterDiv"
|
|
|
|
|
id={`PrintStyle9-${index}`}
|
|
|
|
|
style={{ fontFamily: "'Courier New', Courier, monospace" }}
|
|
|
|
|
>
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
2026-03-04 16:32:06 +05:30
|
|
|
<div className="PrintStyle9-print" style={{...headerStyle}}>
|
2026-01-27 18:27:29 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'row',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobalLogo && GlobaldummyData ? (
|
|
|
|
|
<img
|
|
|
|
|
className="PrintStyle2-BrandImage"
|
|
|
|
|
src={Logo}
|
|
|
|
|
alt="image"
|
|
|
|
|
/>
|
|
|
|
|
) : null}
|
|
|
|
|
{base64Image &&
|
2026-03-03 09:54:56 +05:30
|
|
|
(PrintLogo?.SettingValue === 'Y' || LogoField) ? (
|
2026-01-27 18:27:29 +05:30
|
|
|
<img
|
|
|
|
|
className="PrintStyle2-BrandImage"
|
|
|
|
|
src={base64Image}
|
|
|
|
|
alt="image"
|
|
|
|
|
width={100}
|
|
|
|
|
/>
|
|
|
|
|
) : null}
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: 'clamp(1.5rem, 2.5vw, 2rem)',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
className="PrintStyle9-Branch"
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style={{ fontSize: '12.83px', fontWeight: '400' }}>
|
|
|
|
|
Low Prices... Love the Saving...
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? 'BranchAddress, Town- 635XXX City - State'
|
|
|
|
|
: (table2Data?.AddressDetails?.[0]?.Address1 || '') +
|
2026-03-03 09:54:56 +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-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div style={{ fontSize: '11px', fontWeight: '400' }}>
|
|
|
|
|
{' '}
|
|
|
|
|
Mobile : +91{' '}
|
|
|
|
|
{GlobaldummyData ? '986XXXXXXX' : table2Data?.BrMobile}
|
|
|
|
|
</div>
|
2026-02-25 19:27:02 +05:30
|
|
|
{table2Data?.OrderType === 'E' && estimateTitle && (
|
2026-01-27 18:27:29 +05:30
|
|
|
<div
|
|
|
|
|
className=""
|
|
|
|
|
style={{
|
|
|
|
|
textTransform: 'uppercase',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Estimate{' '}
|
2026-03-03 09:54:56 +05:30
|
|
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
|
|
|
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div
|
|
|
|
|
className=""
|
|
|
|
|
style={{
|
|
|
|
|
textTransform: 'uppercase',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalBilltext
|
|
|
|
|
? GlobalBilltext
|
|
|
|
|
: 'Cash' + ' Bill'
|
|
|
|
|
: BillName
|
|
|
|
|
? BillName
|
|
|
|
|
: PaymentStatusSuccess?.length === 1
|
|
|
|
|
? PaymentStatusSuccess?.[0]?.PaymentTypeName + ' Bill'
|
|
|
|
|
: ''}{' '}
|
2026-03-03 09:54:56 +05:30
|
|
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
|
|
|
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/*
|
|
|
|
|
<div >
|
|
|
|
|
{table2Data?.BrGSTIN &&<div>GST NO :{table2Data?.BrGSTIN}, CIN :u00045hhsgbubufsdug</div>}
|
|
|
|
|
<div > PH : +91 {table2Data?.BrMobile}</div>
|
|
|
|
|
</div>} */}
|
|
|
|
|
<div>
|
|
|
|
|
<div style={{ fontSize: '14px', fontWeight: '600' }}>
|
|
|
|
|
{' '}
|
|
|
|
|
BILL NO :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '553'
|
|
|
|
|
: table2Data?.OrderId &&
|
2026-03-03 09:54:56 +05:30
|
|
|
extractLastNumberOrderId(
|
|
|
|
|
table2Data?.OrderId,
|
|
|
|
|
table2Data?.FYStatus
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
{SalesModePref?.SettingValue == 'Y' && <div style={{ fontSize: '13px', fontWeight: 600 }}>
|
|
|
|
|
{' '}
|
|
|
|
|
Name : {table2Data?.SalesMode == "R" ? "RT" : "WS"}{' '}
|
|
|
|
|
</div>}
|
2026-01-27 18:27:29 +05:30
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400' }}>
|
|
|
|
|
{' '}
|
|
|
|
|
{GlobaldummyData ? formattedDate : Date1}{' '}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
2026-03-03 09:54:56 +05:30
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' && estimateTitle && (
|
|
|
|
|
<div
|
|
|
|
|
className=""
|
|
|
|
|
style={{
|
|
|
|
|
textTransform: 'uppercase',
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Estimate{' '}
|
|
|
|
|
{/* {SalesModePref?.SettingValue == 'Y' &&
|
|
|
|
|
`(${table2Data?.SalesMode ? table2Data?.SalesMode : 'R'})`} */}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
<div className="straight-line9"></div>
|
|
|
|
|
|
|
|
|
|
<div className="PrintStyle9-print-tableMaster">
|
|
|
|
|
{(TakeawayData?.length > 0 || GlobaldummyData) && (
|
|
|
|
|
<>
|
|
|
|
|
{takeAwayPreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
width: '100%',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Take Away
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
<table className="PrintStyle9-print-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSlNo && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'left' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
S.No
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-03-04 16:32:06 +05:30
|
|
|
: SLNO && <th style={{...tableHeaderStyle, width: '10px' }}>S.No</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-03-04 16:32:06 +05:30
|
|
|
? GlobalItem && <th style={{...tableHeaderStyle, width: '10px' }}>Item</th>
|
|
|
|
|
: Item && <th style={{...tableHeaderStyle, width: '10px' }}>Item</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Qty
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Quantity && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-02-04 19:16:18 +05:30
|
|
|
? GlobalMRP && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 19:16:18 +05:30
|
|
|
: MRP && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 19:16:18 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 19:16:18 +05:30
|
|
|
: Discount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{ ...tableHeaderStyle,width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 18:10:12 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalTax && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 19:16:18 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 19:16:18 +05:30
|
|
|
: Rate && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 19:16:18 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalAmount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 19:16:18 +05:30
|
|
|
: Amount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 19:16:18 +05:30
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{(GlobaldummyData ? products : TakeawayData)?.map(
|
|
|
|
|
(item, index) => {
|
|
|
|
|
return (
|
2026-03-04 16:32:06 +05:30
|
|
|
<tr key={index}
|
|
|
|
|
style={
|
|
|
|
|
index % 2 !== 1 && rowtypeStyle === "even"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: index % 2 === 1 && rowtypeStyle === "odd"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: {}
|
|
|
|
|
}>
|
2026-02-04 18:10:12 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSlNo && <td>{index + 1}</td>
|
|
|
|
|
: SLNO && <td>{index + 1}</td>}
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalItem && <td>{item?.ProdName}</td>
|
|
|
|
|
: Item && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div>{item?.ProdName}</div>
|
|
|
|
|
{UomPrint?.SettingValue === 'Y' && (
|
2026-02-26 11:44:46 +05:30
|
|
|
<div>
|
2026-03-03 09:54:56 +05:30
|
|
|
({item?.Size ? item?.Size : '1'}{' '}
|
|
|
|
|
{item?.SinglePc == 'Y'
|
|
|
|
|
? 'PCS'
|
|
|
|
|
: item?.Type != 'C'
|
|
|
|
|
? item?.UomName
|
|
|
|
|
: 'COMBO'})
|
2026-02-26 11:44:46 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
)}
|
|
|
|
|
{item?.BrandName && <div>{item.BrandName}</div>}
|
|
|
|
|
<div style={{ display: "flex", flexDirection: "column", gap: "3px" }}>
|
|
|
|
|
{(item?.ProductIdentifierDtls ?? [])
|
|
|
|
|
.filter(items => items.SerialNumber)
|
|
|
|
|
.map((a, i) => (
|
|
|
|
|
<div key={`serial-${i}`}>
|
|
|
|
|
{a.SerialNumber}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
|
|
|
|
|
{(item?.ProductIdentifierDtls ?? [])
|
|
|
|
|
.filter(id => id.IMEI1 || id.IMEI2)
|
|
|
|
|
.map((id, i) => (
|
|
|
|
|
<div key={`imei-${i}`}>
|
|
|
|
|
{[id.IMEI1, id.IMEI2].filter(Boolean).join(",")}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
|
2026-03-03 11:28:09 +05:30
|
|
|
{(item?.ProductIdentifierDtls ?? []).find(d => d.SerialNumber || d.IMEI1 || d.IMEI2)?.Description && (
|
|
|
|
|
<div>{(item?.ProductIdentifierDtls ?? []).find(d => d.SerialNumber || d.IMEI1 || d.IMEI2).Description}</div>
|
|
|
|
|
)}
|
2026-03-03 09:54:56 +05:30
|
|
|
</div>
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Quantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalMRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: MRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SinglePc === 'Y'
|
|
|
|
|
? item?.Rate
|
|
|
|
|
: item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item.discount}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Discount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Type != 'C'
|
|
|
|
|
? item?.OfferAmt || 0
|
|
|
|
|
: item?.OfferValue || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-02-04 18:10:12 +05:30
|
|
|
? GlobalTax && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
|
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Rate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalAmount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.TotalAmt}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Amount && (
|
2026-03-03 09:54:56 +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>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
)}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{DineInData?.length > 0 && dinePreference && (
|
|
|
|
|
<>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
width: '100%',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Dine In
|
|
|
|
|
</div>
|
|
|
|
|
<table className="PrintStyle9-print-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
{GlobaldummyData
|
2026-03-04 16:32:06 +05:30
|
|
|
? GlobalSlNo && <th style={{...tableHeaderStyle, width: '10px' }}>S.No</th>
|
|
|
|
|
: SLNO && <th style={{...tableHeaderStyle, width: '10px' }}>S.No</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-03-04 16:32:06 +05:30
|
|
|
? GlobalItem && <th style={{...tableHeaderStyle, width: '10px' }}>Item</th>
|
|
|
|
|
: Item && <th style={{...tableHeaderStyle, width: '10px' }}>Item</th>}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Qty
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Quantity && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
{WeightasKg ? 'Qty/Kg' : 'Qty'}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
HSN
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalMRP && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: MRP && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle,width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
MRP
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Discount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Dis{' '}
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-02-04 18:10:12 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalTax && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Tax %
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Rate && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Rate
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalAmount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Amount && (
|
2026-03-04 16:32:06 +05:30
|
|
|
<th style={{...tableHeaderStyle, width: '10px', textAlign: 'right' }}>
|
2026-03-03 09:54:56 +05:30
|
|
|
Amt
|
|
|
|
|
</th>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{(GlobaldummyData ? products : DineInData)?.map(
|
|
|
|
|
(item, index) => {
|
|
|
|
|
return (
|
2026-03-04 16:32:06 +05:30
|
|
|
<tr key={index}
|
|
|
|
|
style={
|
|
|
|
|
index % 2 !== 1 && rowtypeStyle === "even"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: index % 2 === 1 && rowtypeStyle === "odd"
|
|
|
|
|
? {
|
|
|
|
|
...tableBodyStyle
|
|
|
|
|
}
|
|
|
|
|
: {}
|
|
|
|
|
}>
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSlNo && <td>{index + 1}</td>
|
|
|
|
|
: SLNO && <td>{index + 1}</td>}
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalItem && <td>{item?.ProdName}</td>
|
|
|
|
|
: Item && (
|
2026-03-03 09:54:56 +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-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQuantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Quantity && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SalesQty}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalHsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: HsnCode && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.HSN}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-02-25 19:27:02 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalMRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: MRP && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.SinglePc === 'Y'
|
|
|
|
|
? item?.Rate
|
|
|
|
|
: item?.MRP}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalDiscount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item.discount}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Discount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Type != 'C'
|
|
|
|
|
? item?.OfferAmt || 0
|
|
|
|
|
: item?.OfferValue || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-02-04 18:10:12 +05:30
|
|
|
? GlobalTax && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-02-04 18:10:12 +05:30
|
|
|
: Tax &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.OrderType !== 'E' && (
|
|
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.ProdTaxPercentage || 0}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalRate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Rate && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.Rate}
|
|
|
|
|
</td>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
{GlobaldummyData
|
2026-02-04 19:16:18 +05:30
|
|
|
? GlobalAmount && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<td style={{ textAlign: 'right' }}>
|
|
|
|
|
{item?.TotalAmt}
|
|
|
|
|
</td>
|
|
|
|
|
)
|
2026-02-04 19:16:18 +05:30
|
|
|
: Amount && (
|
2026-03-03 09:54:56 +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>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
)}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
<div style={{ display: 'flex', flexDirection: 'column' }}>
|
|
|
|
|
{DineInData?.length > 0 &&
|
|
|
|
|
TakeawayData?.length > 0 &&
|
|
|
|
|
takeAwayPreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Take Away :<div>{Number(TakeawayTotal).toFixed(2)}</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{DineInData?.length > 0 &&
|
|
|
|
|
TakeawayData?.length > 0 &&
|
|
|
|
|
dinePreference && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Dine In :<div>{Number(DineInTotal).toFixed(2)}</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{(table2Data?.OverallDisc > 0 || TotalOfferAmount > 0) && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Off :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(
|
2026-03-03 09:54:56 +05:30
|
|
|
TotalOfferAmount + table2Data?.OverallDisc
|
|
|
|
|
).toFixed(2)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Amount :
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Items :
|
|
|
|
|
<div>{GlobaldummyData ? '8' : totalQuantityFilter?.length}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-between',
|
|
|
|
|
fontWeight: '400',
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
marginRight: '0.5rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Qty :<div>{GlobaldummyData ? '9' : totalQuantity}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* </div> */}
|
|
|
|
|
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
|
2026-03-04 16:32:06 +05:30
|
|
|
<div style={{ display: 'flex', justifyContent: 'space-between',...netAmountStyle }}>
|
2026-01-27 18:27:29 +05:30
|
|
|
<div style={{ fontWeight: '700' }}>Net Amount:</div>
|
|
|
|
|
<div style={{ fontWeight: '700', marginRight: '0.5rem' }}>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*
|
|
|
|
|
<div style={{ display: "flex", justifyContent: "space-evenly", marginTop: '5px' }}>
|
|
|
|
|
<p style={{ marginTop: '5px', padding: 0, fontSize: "17px", fontWeight: "600" }}>{table2Data?.PaymentTypeName} Payment : {Number(table2Data?.NetAmount).toFixed(2)}/- </p>
|
|
|
|
|
</div> */}
|
|
|
|
|
|
|
|
|
|
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
|
|
|
<div className="PrintStyle9-print-strdtlss">
|
|
|
|
|
{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)) &&
|
|
|
|
|
table2Data?.NetAmount !== 0 && (
|
|
|
|
|
<>
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: 0,
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
--------- GST Breakup Details -----------
|
|
|
|
|
</div>
|
|
|
|
|
{OrderDetailGST?.length > 0 &&
|
|
|
|
|
OrderDetailGST?.[0]?.TaxAmt > 0 && (
|
|
|
|
|
<table style={{ width: '90%' }}>
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
CGST
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
SGST
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailGST?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.WithOutTaxAmount).toFixed(
|
|
|
|
|
2
|
|
|
|
|
)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.CGST).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.SGST).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TotalAmt).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</table>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{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: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
IGST
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailIGST?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TaxAmt).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
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: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
|
|
|
|
></td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Taxable Amount
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
VAT
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Total Amount
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{OrderDetailVAT?.map((item) => (
|
|
|
|
|
<tr>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'right',
|
|
|
|
|
}}
|
2026-02-04 18:10:12 +05:30
|
|
|
>
|
|
|
|
|
{item?.TaxPercentage || 0}%
|
|
|
|
|
</td>
|
2026-01-27 18:27:29 +05:30
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(
|
|
|
|
|
item.WithOutTaxAmount
|
|
|
|
|
).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TaxAmt).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
|
|
<td
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '11px',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{Number(item.TotalAmt).toFixed(2)}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</table>
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
<hr className="PrintStyle9-print-dottline" />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
justifyContent: 'space-evenly',
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '17px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{PaymentStatusSuccess?.length === 1
|
|
|
|
|
? PaymentStatusSuccess?.[0]?.PaymentTypeName
|
|
|
|
|
: 'Split'}{' '}
|
|
|
|
|
Payment :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
|
|
|
|
/-{' '}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalCredit && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
fontSize: '15px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
lineHeight: '12px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<h6>Advance Amount:</h6>
|
|
|
|
|
<h6>Opening Balance:</h6>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: CreditDetails &&
|
2026-03-03 09:54:56 +05:30
|
|
|
table2Data?.CustomerDetails?.length > 0 && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
textAlign: 'left',
|
|
|
|
|
fontSize: '14px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
lineHeight: '12px',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{/* OLD CREDIT BAL */}
|
|
|
|
|
{PaymentStatusSuccess?.[0]?.PaymentTypeName ===
|
|
|
|
|
'Credit' && (
|
2026-01-27 18:27:29 +05:30
|
|
|
<>
|
|
|
|
|
{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-03-03 09:54:56 +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-01-27 18:27:29 +05:30
|
|
|
<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) => (
|
|
|
|
|
<div
|
|
|
|
|
key={paymentType}
|
|
|
|
|
style={{ margin: 0, padding: 0, fontSize: '12px' }}
|
|
|
|
|
>
|
|
|
|
|
{paymentType}:{' '}
|
|
|
|
|
{aggregatedPayments[paymentType].toFixed(2)}
|
|
|
|
|
</div>
|
|
|
|
|
))}
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
{GlobaldummyData && GlobalCashierName && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{ padding: 0, fontSize: '10px', fontWeight: '600' }}
|
|
|
|
|
>
|
|
|
|
|
Cashier : Cashier Name
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{CashierName &&
|
|
|
|
|
CashierName !== undefined &&
|
|
|
|
|
CashierName !== null &&
|
|
|
|
|
!GlobaldummyData &&
|
|
|
|
|
CashierNameField && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Cashier : {CashierName}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{GlobaldummyData && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{ padding: 0, fontSize: '10px', fontWeight: '600' }}
|
|
|
|
|
>
|
|
|
|
|
Customer : Customer Name
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
{table2Data?.CustSuppName &&
|
|
|
|
|
table2Data?.CustSuppName !== undefined &&
|
|
|
|
|
table2Data?.CustSuppName !== null &&
|
|
|
|
|
!GlobaldummyData && (
|
|
|
|
|
<div>
|
|
|
|
|
<p
|
|
|
|
|
style={{
|
|
|
|
|
padding: 0,
|
|
|
|
|
fontSize: '10px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
Customer : {table2Data?.CustSuppName}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{table2Data?.BookingTypeName == 'Dine In' &&
|
|
|
|
|
table2Data?.SalesTableLinkDetails?.[0]?.WaiterName && (
|
|
|
|
|
<div
|
|
|
|
|
style={{ padding: 0, fontSize: '10px', fontWeight: '600' }}
|
|
|
|
|
>
|
|
|
|
|
Captain :{' '}
|
|
|
|
|
{table2Data?.SalesTableLinkDetails?.[0]?.WaiterName}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* <div className="PrintStyle9-print-strdtlss">
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400', display: "flex" }}> CARD : <div>*********12</div> </div>
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400', display: "flex" }}> CARD HOLDER : <div>CARD HOLDER NAME</div> </div>
|
|
|
|
|
</div> */}
|
|
|
|
|
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalQrcodet && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<img src={Qrcode} alt="QRcode" />
|
|
|
|
|
<div style={{ fontSize: '12px' }}>Scan to Pay </div>
|
|
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
₹{' '}
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Qrcodet &&
|
2026-03-03 09:54:56 +05:30
|
|
|
paymentTypeUPI && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
justifyContent: 'center',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<QRCode
|
|
|
|
|
value={`upi://pay?pa=${GlobalUpiID}&pn=Merchant&am=${table2Data?.NetAmount}&cu=INR`}
|
|
|
|
|
size={80}
|
|
|
|
|
/>
|
|
|
|
|
<div style={{ fontSize: '12px' }}>Scan to Pay </div>
|
|
|
|
|
<div style={{ fontSize: '12px' }}>
|
|
|
|
|
₹
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '1,066'
|
|
|
|
|
: Number(table2Data?.NetAmount).toFixed(2)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
2026-03-03 09:54:56 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</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: '13px',
|
|
|
|
|
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-03-03 09:54:56 +05:30
|
|
|
{Math.abs((lastTransaction?.BeforeAdjustment ?? 0) -
|
|
|
|
|
(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>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '13px',
|
|
|
|
|
width: '100%',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
marginTop: '5px',
|
|
|
|
|
fontWeight: '600',
|
|
|
|
|
}}
|
|
|
|
|
>
|
2026-01-27 18:27:29 +05:30
|
|
|
Your Order No :
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? '01'
|
|
|
|
|
: table2Data?.SalesId && extractLastNumber(table2Data?.SalesId)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="straight-line9"></div>
|
|
|
|
|
{sportsAppPreference && MembershipApplied && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
width: '100%',
|
|
|
|
|
textAlign: 'center',
|
|
|
|
|
paddingTop: '10px',
|
|
|
|
|
}}
|
|
|
|
|
>{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{/* <br />
|
|
|
|
|
<div className="PrintStyle9-print-stradrs" style={{ display: 'flex', justifyContent: 'space-between' }}>
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400' }}>TOTAL SAVINGS :</div>
|
|
|
|
|
<div style={{ fontSize: '12px', fontWeight: '400', marginRight: '0.5rem' }}>10.00</div>
|
|
|
|
|
</div> */}
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
className="page-footerA4Style11"
|
|
|
|
|
style={{
|
|
|
|
|
marginTop: 'auto',
|
|
|
|
|
pageBreakBefore: 'avoid',
|
|
|
|
|
pageBreakInside: 'avoid',
|
|
|
|
|
minHeight: 'auto',
|
2026-03-04 16:32:06 +05:30
|
|
|
...footerColorStyle
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalIsnotes && (
|
2026-03-03 09:54:56 +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-03-03 09:54:56 +05:30
|
|
|
<hr className="PrintA4Style11-print-dottline" />
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Notestext && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div>
|
|
|
|
|
<p style={{ padding: '0rem 1rem' }}>{Notestext}</p>
|
2026-01-27 18:27:29 +05:30
|
|
|
|
2026-03-03 09:54:56 +05:30
|
|
|
<hr className="PrintA4Style11-print-dottline" />
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
{!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
|
|
|
|
|
''
|
|
|
|
|
) : (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
width: '90%',
|
|
|
|
|
padding: '0 1rem',
|
|
|
|
|
justifyContent: GlobaltermsAndConditions
|
|
|
|
|
? 'space-between'
|
|
|
|
|
: 'flex-end',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobaltermsAndConditions && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: '8px 0',
|
|
|
|
|
padding: '8px',
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
width: '100%',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-02-25 19:27:02 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-02-25 19:27:02 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
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>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: TermsnAdCondition == true &&
|
2026-03-03 09:54:56 +05:30
|
|
|
TermsAndConditions?.length > 0 && (
|
|
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
margin: '8px 0',
|
|
|
|
|
fontFamily: 'sans-serif',
|
|
|
|
|
width: '100%',
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'flex-start',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-02-25 19:27:02 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-02-25 19:27:02 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Terms & Conditions
|
|
|
|
|
</p>
|
|
|
|
|
<ol
|
|
|
|
|
style={{
|
|
|
|
|
fontSize: '12px',
|
|
|
|
|
paddingLeft: '18px',
|
|
|
|
|
margin: 0,
|
|
|
|
|
lineHeight: '1',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
{TermsAndConditions?.map((item) => (
|
|
|
|
|
<li style={{ textAlign: 'start' }}>
|
|
|
|
|
{item?.TermsandConditions}
|
|
|
|
|
</li>
|
|
|
|
|
))}
|
|
|
|
|
{/* <li>Please check the product before leaving the counter.</li> */}
|
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
|
|
|
|
|
{GlobaldummyData
|
|
|
|
|
? GlobalSignature && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'flex-end',
|
|
|
|
|
paddingBottom: '1rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-01-27 18:27:29 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Signature
|
|
|
|
|
</p>
|
|
|
|
|
<img
|
|
|
|
|
style={{ width: '70px', height: '40px' }}
|
|
|
|
|
src={
|
|
|
|
|
GlobalSignatureImages
|
|
|
|
|
? GlobalSignatureImages
|
|
|
|
|
: signature
|
|
|
|
|
}
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
2026-01-27 18:27:29 +05:30
|
|
|
: Signature == true && (
|
2026-03-03 09:54:56 +05:30
|
|
|
<div
|
|
|
|
|
style={{
|
|
|
|
|
display: 'flex',
|
|
|
|
|
flexDirection: 'column',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
marginTop: '1rem',
|
|
|
|
|
paddingBottom: '1rem',
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<p
|
2026-01-27 18:27:29 +05:30
|
|
|
style={{
|
2026-03-03 09:54:56 +05:30
|
|
|
fontSize: '13px',
|
|
|
|
|
fontWeight: 'bold',
|
|
|
|
|
marginBottom: '6px',
|
2026-01-27 18:27:29 +05:30
|
|
|
}}
|
|
|
|
|
>
|
2026-03-03 09:54:56 +05:30
|
|
|
Signature
|
|
|
|
|
</p>
|
|
|
|
|
<img
|
|
|
|
|
style={{ width: '100px', height: '60px' }}
|
|
|
|
|
src={SignatureImg}
|
|
|
|
|
alt=""
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
2026-01-27 18:27:29 +05:30
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
{PrintGreeting?.SettingValue === 'Y' && (
|
|
|
|
|
<>
|
|
|
|
|
<hr class="star-line" />
|
|
|
|
|
|
|
|
|
|
<div className="PrintStyleFooter9">
|
|
|
|
|
{/* <div style={{ fontSize: '10px', fontWeight: '400' }}>Terms & Condition</div>
|
|
|
|
|
<div style={{ fontSize: '10px', fontWeight: '400' }} >Xxxx Yyyy Xxxx Yyyy Xxxx Yyyy Xxxx Yyyy</div>
|
|
|
|
|
<br /> */}
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
|
style={{ fontweight: '400', fontWeight: 'bold' }}
|
|
|
|
|
className="PrintStyle9-print-ftr"
|
|
|
|
|
>
|
|
|
|
|
Thank You Visit Again
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<hr class="star-line" />
|
|
|
|
|
</>
|
|
|
|
|
)}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/* <div onClick={Print}> print</div> */}
|
|
|
|
|
</div>
|
|
|
|
|
)}
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default PrintStyle9;
|