import React from 'react'; import { useDispatch, useSelector } from 'react-redux'; import QRcode from '../../../../Images/QRcode.png' import { 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, } from '../../../../Features/ThemeChange/ThemeChange'; import Logo from '../../../../Images/Logo.jpg' import { GlobalUpiIDprint, PreferenceData } from '../../../../Features/BookingScreen/BookingData/BookingData'; import "../../../../Styles/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle7.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 PrintStyle7 = ({ index, ExtraChargeTotal, Date1, totalQuantityFilter, CashierName, totalQuantity, OrderDetailGST, OrderDetailIGST, OrderDetailVAT, table2Data, PaymentStatus, PrintGreeting, base64Image, PrintLogo, 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); const estimatePrintHeader = SettingData?.[0]?.SettingDtlDetails?.find(setting => setting?.SettingIdName?.toLowerCase() === 'estimateprintheader')?.SettingValue === 'Y' 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") console.log(GlobalDiscount, Discount, "Discount"); console.log(printDatas, "printDatasjk") 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.00, SalesQty: 2, MRP: 100, TotalAmt: 176, discount: 0, HSN: '01', Size: 250, UomName: 'g', ProdTaxPercentage: 5 }, { ProdName: 'ITEM 2', Rate: 300.00, SalesQty: 1, MRP: 350, TotalAmt: 300, discount: 0, HSN: '02', Size: 250, UomName: 'g', ProdTaxPercentage: 5 }, { ProdName: 'ITEM 3', Rate: 200.00, SalesQty: 1, MRP: 250, TotalAmt: 200, discount: 0, HSN: '03', Size: 250, UomName: 'g', ProdTaxPercentage: 0 }, { ProdName: 'ITEM 4', Rate: 30.00, SalesQty: 1, MRP: 50, TotalAmt: 30, discount: 0, HSN: '04', Size: 250, UomName: 'g', ProdTaxPercentage: 18 }, { ProdName: 'ITEM 5', Rate: 30.00, SalesQty: 1, MRP: 50, TotalAmt: 30, discount: 0, HSN: '05', Size: 250, UomName: 'g', ProdTaxPercentage: 40 }, { ProdName: 'ITEM 6', Rate: 130.00, SalesQty: 1, MRP: 150, TotalAmt: 130, discount: 0, HSN: '06', Size: 250, UomName: 'g', ProdTaxPercentage: 0 }, { ProdName: 'ITEM 7', Rate: 230.00, SalesQty: 1, MRP: 250, TotalAmt: 230, discount: 0, HSN: '08', Size: 250, UomName: 'g', ProdTaxPercentage: 5 }, ]; const chunkSize = PageSize == "A5" ? 8 : 11; 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); return ( <> {FormatTheme ?
| S | : SLNO == true &&S | } {GlobaldummyData ? GlobalItem &&Item | : Item == true &&Item | } {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode == true &&HSN | } {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity == true &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } {GlobaldummyData ? GlobalMRP &&MRP | : MRP == true &&MRP | } {GlobaldummyData ? GlobalRate &&Rate | : Rate == true &&Rate | } {GlobaldummyData ? GlobalDiscount &&Dis | : Discount == true &&Dis | } {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } {GlobaldummyData ? GlobalAmount &&Amt | : Amount == true &&Amt | }
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO == true &&{chunkIndex * chunkSize + index + 1} | } {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item == true &&
{item?.ProdName}
{(PackageDetails?.filter((pkg) => pkg.ProdId === item.ProdId).length > 0 ?
{PackageDetails?.filter((pkg) => pkg.ProdId === item.ProdId)?.map((item, index) => (
{item.ParcelCount} PCS {item.ParcelQty} PACK ({item.ParcelType})
))}
: ({item?.Size ? item?.Size : "1"} {item?.SinglePc == 'Y' ? 'PCS' : item?.Type != "C" ? item?.UomName : "COMBO"}) )}
| }
{GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode == true &&{item?.HSN} | } {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity == true &&{item?.SalesQty} | } {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP == true &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate == true &&{item?.Rate} | } {GlobaldummyData ? GlobalDiscount &&{item.discount} | : Discount == true &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount == true &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | }
| S.No | : SLNO == true &&S.NO | } {GlobaldummyData ? GlobalItem &&Item | : Item == true &&Item | } {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode == true &&HSN | } {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity == true &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } {GlobaldummyData ? GlobalMRP &&MRP | : MRP == true &&MRP | } {GlobaldummyData ? GlobalRate &&Rate | : Rate == true &&Rate | } {GlobaldummyData ? GlobalDiscount &&Dis | : Discount == true &&Dis | } {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } {GlobaldummyData ? GlobalAmount &&Amt | : Amount == true &&Amt | }
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO == true &&{chunkIndex * chunkSize + index + 1} | } {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item == true &&
{item?.ProdName}
({item?.Size ? item?.Size : "1"} {item?.SinglePc == 'Y' ? 'PCS' : item?.Type != "C" ? item?.UomName : "COMBO"}){item?.BrandName !== null ? item?.BrandName : ""}
{item?.ProductIdentifierDtls?.length > 0 ? (item?.ProductIdentifierDtls?.filter((items) => !(items.SerialNumber == "" || items.SerialNumber == null))
?.map(a => { return (
{a.SerialNumber} ) })) : ""} {item?.ProductIdentifierDtls?.length > 0 ? item?.ProductIdentifierDtls.filter((item1) => item1.IMEI1 !== "" || item1.IMEI2 !== "")
?.map(item2 => {
const imei1 = item2.IMEI1 || "";
const imei2 = item2.IMEI2 || "";
return ({[imei1, imei2].filter(Boolean).join(",")} );
}
) : ""} | }
{GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode == true &&{item?.HSN} | } {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity == true &&{item?.SalesQty} | } {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP == true &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate == true &&{item?.Rate} | } {GlobaldummyData ? GlobalDiscount &&{item.discount} | : Discount == true &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount == true &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | }
| Taxable Amount | CGST | SGST | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.CGST).toFixed(2)} | {Number(item.SGST).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
| Taxable Amount | IGST | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.TaxAmt).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
| Taxable Amount | VAT | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.TaxAmt).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
Split Payment:
*/} {Object.keys(aggregatedPayments).map((paymentType) => (Advance Amount:{table2Data.CustomerDetails[0].OldCreditBal}
) : table2Data.CustomerDetails[0].OldCreditBal < 0 ? (Opening Balance: {Math.abs(table2Data.CustomerDetails[0].OldCreditBal)}
) : null} > )} {/* CURRENT CREDIT BAL */} {table2Data.CustomerDetails[0].CurrentCreditBal > 0 ? (Current Advance Amount: {table2Data.CustomerDetails[0].CurrentCreditBal}
) : table2Data.CustomerDetails[0].CurrentCreditBal < 0 ? (Current Balance Amount: {Math.abs(table2Data.CustomerDetails[0].CurrentCreditBal)}
) : null}Notes : 10 days Return policy
{Notestext}
Terms & Conditions
Terms & Conditions
Signature
Signature
| Taxable Amount | CGST | SGST | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.CGST).toFixed(2)} | {Number(item.SGST).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
| Taxable Amount | IGST | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.TaxAmt).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
| Taxable Amount | VAT | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.TaxAmt).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
Split Payment:
*/} {Object.keys(aggregatedPayments).map((paymentType) => (Advance Amount:{table2Data.CustomerDetails[0].OldCreditBal}
) : table2Data.CustomerDetails[0].OldCreditBal < 0 ? (Opening Balance: {Math.abs(table2Data.CustomerDetails[0].OldCreditBal)}
) : null} > )} {/* CURRENT CREDIT BAL */} {table2Data.CustomerDetails[0].CurrentCreditBal > 0 ? (Current Advance Amount: {table2Data.CustomerDetails[0].CurrentCreditBal}
) : table2Data.CustomerDetails[0].CurrentCreditBal < 0 ? (Current Balance Amount: {Math.abs(table2Data.CustomerDetails[0].CurrentCreditBal)}
) : null}Notes : 10 days Return policy
{Notestext}
Terms & Conditions
Terms & Conditions
Signature
Signature
| S.No | : SLNO == true &&S.No | } {GlobaldummyData ? GlobalItem &&Item | : Item == true &&Item | } {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode == true &&HSN | } {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity == true &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } {GlobaldummyData ? GlobalMRP &&MRP | : MRP == true &&MRP | } {GlobaldummyData ? GlobalRate &&Rate | : Rate == true &&Rate | } {GlobaldummyData ? GlobalDiscount &&Dis | : Discount == true &&Dis | } {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } {GlobaldummyData ? GlobalAmount &&Amt | : Amount == true &&Amt | }
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO == true &&{index + 1} | } {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item == true &&
{item?.ProdName}
{(PackageDetails?.filter((pkg) => pkg.ProdId === item.ProdId).length > 0 ?
{PackageDetails?.filter((pkg) => pkg.ProdId === item.ProdId)?.map((item, index) => (
{item.ParcelCount} PCS {item.ParcelQty} PACK ({item.ParcelType})
))}
: ({item?.Size ? item?.Size : "1"} {item?.SinglePc == 'Y' ? 'PCS' : item?.Type != "C" ? item?.UomName : "COMBO"}) )}
| }
{GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode == true &&{item?.HSN} | } {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity == true &&{item?.SalesQty} | } {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP == true &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate == true &&{item?.Rate} | } {GlobaldummyData ? GlobalDiscount &&{item.discount} | : Discount == true &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount == true &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | }
| S | : SLNO == true &&S | } {GlobaldummyData ? GlobalItem &&Item | : Item == true &&Item | } {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode == true &&HSN | } {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity == true &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } {GlobaldummyData ? GlobalMRP &&MRP | : MRP == true &&MRP | } {GlobaldummyData ? GlobalRate &&Rate | : Rate == true &&Rate | } {GlobaldummyData ? GlobalDiscount &&Dis | : Discount == true &&Dis | } {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } {GlobaldummyData ? GlobalAmount &&Amt | : Amount == true &&Amt | }
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO == true &&{index + 1} | } {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item == true &&
{item?.ProdName}
({item?.Size ? item?.Size : "1"} {item?.SinglePc == 'Y' ? 'PCS' : item?.Type != "C" ? item?.UomName : "COMBO"}){item?.BrandName !== null ? item?.BrandName : ""}
{item?.ProductIdentifierDtls?.length > 0 ? (item?.ProductIdentifierDtls?.filter((items) => !(items.SerialNumber == "" || items.SerialNumber == null))
?.map(a => { return (
{a.SerialNumber} ) })) : ""} {item?.ProductIdentifierDtls?.length > 0 ? item?.ProductIdentifierDtls.filter((item1) => item1.IMEI1 !== "" || item1.IMEI2 !== "")
?.map(item2 => {
const imei1 = item2.IMEI1 || "";
const imei2 = item2.IMEI2 || "";
return ({[imei1, imei2].filter(Boolean).join(",")} );
}
) : ""} | }
{GlobaldummyData ? GlobalHsnCode && {item?.HSN} | : HsnCode == true &&{item?.HSN} | } {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity == true &&{item?.SalesQty} | } {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP == true &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate == true &&{item?.Rate} | } {GlobaldummyData ? GlobalDiscount &&{item.discount} | : Discount == true &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount == true &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | }
| Taxable Amount | CGST | SGST | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.CGST).toFixed(2)} | {Number(item.SGST).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
| Taxable Amount | IGST | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.TaxAmt).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
| Taxable Amount | VAT | Total Amount | |
| {item?.TaxPercentage || 0}% | {Number(item.WithOutTaxAmount).toFixed(2)} | {Number(item.TaxAmt).toFixed(2)} | {Number(item.TotalAmt).toFixed(2)} |
Split Payment:
*/} {Object.keys(aggregatedPayments).map((paymentType) => (Advance Amount:{table2Data.CustomerDetails[0].OldCreditBal}
) : table2Data.CustomerDetails[0].OldCreditBal < 0 ? (Opening Balance: {Math.abs(table2Data.CustomerDetails[0].OldCreditBal)}
) : null} > )} {/* CURRENT CREDIT BAL */} {table2Data.CustomerDetails[0].CurrentCreditBal > 0 ? (Current Advance Amount: {table2Data.CustomerDetails[0].CurrentCreditBal}
) : table2Data.CustomerDetails[0].CurrentCreditBal < 0 ? (Current Balance Amount: {Math.abs(table2Data.CustomerDetails[0].CurrentCreditBal)}
) : null}Notes : 10 days Return policy
{Notestext}
Terms & Conditions
Terms & Conditions
Signature
Signature