diff --git a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx index 2f03b14..145eb88 100644 --- a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx +++ b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx @@ -29,6 +29,7 @@ import { GlobalprintLogo, GlobalprintCredit, GlobalprintTax, + GlobalSelectedPrintHeaderColor, } from '../../../../Features/ThemeChange/ThemeChange'; import { GlobalUpiIDprint, @@ -123,6 +124,7 @@ const Printstyle6 = ({ const paymentTypeUPI = PaymentStatus?.find( (ps) => ps.PaymentTypeName === 'UPI' ); + const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor); console.log(GlobalDiscount, Discount, 'Discount'); @@ -400,7 +402,9 @@ const Printstyle6 = ({ /> ) : null} - {GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName} +
| 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
+ {GlobaldummyData && GlobalLogo ? ( +{Notestext}
+| 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} + | + )} +
- Terms & Conditions -
-- Terms & Conditions -
-| 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} + | + )} +
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} + > + )} - {PrintGreeting?.SettingValue === "Y" && - <> -+ {' '} + 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 +
+| S.No | : SLNO &&S.No | } - {GlobaldummyData ? GlobalItem &&Dis | : Item &&Des | } - {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode &&HSN | } - {GlobaldummyData ? GlobalMRP &&MRP | : MRP &&MRP | } - {GlobaldummyData ? GlobalRate &&Rate | : Rate &&Rt | } - {GlobaldummyData ? GlobalDiscount &&(%) | : Discount &&(%) | } - {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } - {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } - {GlobaldummyData ? GlobalAmount &&Amt | : Amount &&Amt | } -
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {chunkIndex * chunkSize + index + 1} | : SLNO &&{chunkIndex * chunkSize + index + 1} | } - {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item &&
- {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 &&{item?.HSN} | } - {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } - {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate &&{item?.Rate} | } - {GlobaldummyData ? GlobalDiscount &&{item?.discount} | : Discount &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } - {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } - {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity &&{item?.SalesQty} | } - {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | } -
| S.No | : SLNO &&S.No | } - {GlobaldummyData ? GlobalItem &&Dis | : Item &&Des | } - {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode &&HSN | } - {GlobaldummyData ? GlobalMRP &&MRP | : MRP &&MRP | } - {GlobaldummyData ? GlobalRate &&Rate | : Rate &&Rt | } - {GlobaldummyData ? GlobalDiscount &&(%) | : Discount &&(%) | } - {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } - {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } - {GlobaldummyData ? GlobalAmount &&Amt | : Amount &&Amt | } -
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO &&{chunkIndex * chunkSize + index + 1} | } - {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item &&
- {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 &&{item?.HSN} | } - {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } - {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate &&{item?.Rate} | } - {GlobaldummyData ? GlobalDiscount &&{item?.discount} | : Discount &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} - | } - {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } - {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity &&{item?.SalesQty} | } - {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | } -
- --------- GST Breakup Details -----------
- {(OrderDetailGST?.length > 0 && OrderDetailGST?.[0]?.TaxAmt > 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)} | -
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} -Split Payment:
*/} - {Object.keys(aggregatedPayments).map((paymentType) => ( -Notes : 10 days Return policy
- -{Notestext}
- -- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-- --------- GST Breakup Details -----------
- {(OrderDetailGST?.length > 0 && OrderDetailGST?.[0]?.TaxAmt > 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)} | -
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} -Split Payment:
*/} - {Object.keys(aggregatedPayments).map((paymentType) => ( -Notes : 10 days Return policy
- -{Notestext}
- -- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-| S.No | : SLNO &&S.No | } - {GlobaldummyData ? GlobalItem &&Dis | : Item &&Des | } - {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode &&HSN | } - {GlobaldummyData ? GlobalMRP &&MRP | : MRP &&MRP | } - {GlobaldummyData ? GlobalRate &&Rate | : Rate &&Rt | } - {GlobaldummyData ? GlobalDiscount &&(%) | : Discount &&(%) | } - {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } - {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } - {GlobaldummyData ? GlobalAmount &&Amt | : Amount &&Amt | } -
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO &&{index + 1} | } - {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item &&
- {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 &&{item?.HSN} | } - {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } - {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate &&{item?.Rate} | } - {GlobaldummyData ? GlobalDiscount &&{item?.discount} | : Discount &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} | } - {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } - {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity &&{item?.SalesQty} | } - {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | } -
| S.No | : SLNO &&S.No | } - {GlobaldummyData ? GlobalItem &&Dis | : Item &&Des | } - {GlobaldummyData ? GlobalHsnCode &&HSN | : HsnCode &&HSN | } - {GlobaldummyData ? GlobalMRP &&MRP | : MRP &&MRP | } - {GlobaldummyData ? GlobalRate &&Rate | : Rate &&Rt | } - {GlobaldummyData ? GlobalDiscount &&(%) | : Discount &&(%) | } - {GlobaldummyData ? GlobalTax &&Tax % | : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } - {GlobaldummyData ? GlobalQuantity &&Qty | : Quantity &&{ WeightasKg ?'Qty/Kg' :'Qty'} | } - {GlobaldummyData ? GlobalAmount &&Amt | : Amount &&Amt | } -
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {index + 1} | : SLNO &&{index + 1} | } - {GlobaldummyData ? GlobalItem &&{item?.ProdName} | : Item &&
- {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 &&{item?.HSN} | } - {GlobaldummyData ? GlobalMRP &&{item?.MRP} | : MRP &&{item?.SinglePc === 'Y' ? item?.Rate : item?.MRP} | } - {GlobaldummyData ? GlobalRate &&{item?.Rate} | : Rate &&{item?.Rate} | } - {GlobaldummyData ? GlobalDiscount &&{item?.discount} | : Discount &&{item?.Type != "C" ? item?.OfferAmt || 0 : item?.OfferValue || 0} - | } - {GlobaldummyData ? GlobalTax &&{item?.ProdTaxPercentage} | : (Tax && table2Data?.OrderType !== 'E') &&{item?.ProdTaxPercentage || 0} | } - {GlobaldummyData ? GlobalQuantity &&{item?.SalesQty} | : Quantity &&{item?.SalesQty} | } - {GlobaldummyData ? GlobalAmount &&{item?.TotalAmt} | : Amount &&{item?.Type != "C" ? item?.TotalAmt - item?.OfferAmt || 0 : item?.TotalAmt - item?.OfferValue || 0} | } -
- --------- GST Breakup Details -----------
- {(OrderDetailGST?.length > 0 && OrderDetailGST?.[0]?.TaxAmt > 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)} | -
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} -Split Payment:
*/} - {Object.keys(aggregatedPayments).map((paymentType) => ( -| + S.No + | + ) + : SLNO && ( ++ S.No + | + )} + {GlobaldummyData + ? GlobalItem &&Dis | + : Item &&Des | } + {GlobaldummyData + ? GlobalHsnCode && ( ++ HSN + | + ) + : HsnCode && ( ++ HSN + | + )} + {GlobaldummyData + ? GlobalMRP && ( ++ MRP + | + ) + : MRP && ( ++ MRP + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ Rate + | + ) + : Rate && ( ++ Rt + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ (%) + | + ) + : Discount && ( ++ (%) + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ Tax % + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ Tax % + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity && ( ++ {WeightasKg ? 'Qty/Kg' : 'Qty'} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ Amt + | + ) + : Amount && ( ++ Amt + | + )} +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {chunkIndex * chunkSize + index + 1} + | + ) + : SLNO && ( ++ {chunkIndex * chunkSize + index + 1} + | + )} + {GlobaldummyData + ? GlobalItem &&{item?.ProdName} | + : Item && ( +
+ {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 &&{item?.HSN} | } + {GlobaldummyData + ? GlobalMRP && ( ++ {item?.MRP} + | + ) + : MRP && ( ++ {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ {item?.Rate} + | + ) + : Rate && ( ++ {item?.Rate} + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ {item?.discount} + | + ) + : Discount && ( ++ {item?.Type != 'C' + ? item?.OfferAmt || 0 + : item?.OfferValue || 0} + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ {item?.ProdTaxPercentage} + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ {item?.ProdTaxPercentage || 0} + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ {item?.SalesQty} + | + ) + : Quantity && ( ++ {item?.SalesQty} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ {item?.TotalAmt} + | + ) + : Amount && ( ++ {item?.Type != 'C' + ? item?.TotalAmt - item?.OfferAmt || 0 + : item?.TotalAmt - item?.OfferValue || + 0} + | + )} +
| + S.No + | + ) + : SLNO && ( ++ S.No + | + )} + {GlobaldummyData + ? GlobalItem &&Dis | + : Item &&Des | } + {GlobaldummyData + ? GlobalHsnCode && ( ++ HSN + | + ) + : HsnCode && ( ++ HSN + | + )} + {GlobaldummyData + ? GlobalMRP && ( ++ MRP + | + ) + : MRP && ( ++ MRP + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ Rate + | + ) + : Rate && ( ++ Rt + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ (%) + | + ) + : Discount && ( ++ (%) + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ Tax % + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ Tax % + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity && ( ++ {WeightasKg ? 'Qty/Kg' : 'Qty'} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ Amt + | + ) + : Amount && ( ++ Amt + | + )} +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {index + 1} + | + ) + : SLNO && ( ++ {chunkIndex * chunkSize + index + 1} + | + )} + {GlobaldummyData + ? GlobalItem &&{item?.ProdName} | + : Item && ( +
+ {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 (
+
- ))}
- >
- }
- {GlobaldummyData && GlobalCashierName &&
- {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(',')}
+
+ );
+ })
+ : ''}
Cashier : Cashier Name
+ |
+ )}
+ {GlobaldummyData
+ ? GlobalHsnCode && {item?.HSN} | + : HsnCode &&{item?.HSN} | } + {GlobaldummyData + ? GlobalMRP && ( ++ {item?.MRP} + | + ) + : MRP && ( ++ {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ {item?.Rate} + | + ) + : Rate && ( ++ {item?.Rate} + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ {item?.discount} + | + ) + : Discount && ( ++ {item?.Type != 'C' + ? item?.OfferAmt || 0 + : item?.OfferValue || 0} + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ {item?.ProdTaxPercentage} + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ {item?.ProdTaxPercentage || 0} + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ {item?.SalesQty} + | + ) + : Quantity && ( ++ {item?.SalesQty} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ {item?.TotalAmt} + | + ) + : Amount && ( ++ {item?.Type != 'C' + ? item?.TotalAmt - item?.OfferAmt || 0 + : item?.TotalAmt - item?.OfferValue || + 0} + | + )} +
+ --------- GST Breakup Details ----------- +
+ {OrderDetailGST?.length > 0 && + OrderDetailGST?.[0]?.TaxAmt > 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)} + | +
+ 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} +Split Payment:
*/} + {Object.keys(aggregatedPayments).map( + (paymentType) => ( ++ Notes : 10 days Return policy +
+ ++ {Notestext} +
+ ++ Terms & Conditions +
++ Terms & Conditions +
++ Signature +
++ Signature +
++ --------- GST Breakup Details ----------- +
+ {OrderDetailGST?.length > 0 && + OrderDetailGST?.[0]?.TaxAmt > 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 + )} + | +
+ 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} +Split Payment:
*/} + {Object.keys(aggregatedPayments).map( + (paymentType) => ( ++ Notes : 10 days Return policy +
+ ++ {Notestext} +
+ +Notes : 10 days Return policy
+ > + {GlobaldummyData + ? GlobaltermsAndConditions && ( ++ Terms & Conditions +
++ Terms & Conditions +
+{Notestext}
+ {GlobaldummyData + ? GlobalSignature && ( ++ Signature +
++ Signature +
+- Terms & Conditions -
-- Terms & Conditions -
-Signature
-Signature
-| + S.No + | + ) + : SLNO && ( ++ S.No + | + )} + {GlobaldummyData + ? GlobalItem && ( +Dis | + ) + : Item &&Des | } + {GlobaldummyData + ? GlobalHsnCode && ( ++ HSN + | + ) + : HsnCode && ( ++ HSN + | + )} + {GlobaldummyData + ? GlobalMRP && ( ++ MRP + | + ) + : MRP && ( ++ MRP + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ Rate + | + ) + : Rate && ( ++ Rt + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ (%) + | + ) + : Discount && ( ++ (%) + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ Tax % + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ Tax % + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity && ( ++ {WeightasKg ? 'Qty/Kg' : 'Qty'} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ Amt + | + ) + : Amount && ( ++ Amt + | + )} +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {index + 1} + | + ) + : SLNO && ( ++ {index + 1} + | + )} + {GlobaldummyData + ? GlobalItem &&{item?.ProdName} | + : Item && ( +
+ {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 &&{item?.HSN} | } + {GlobaldummyData + ? GlobalMRP && ( ++ {item?.MRP} + | + ) + : MRP && ( ++ {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ {item?.Rate} + | + ) + : Rate && ( ++ {item?.Rate} + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ {item?.discount} + | + ) + : Discount && ( ++ {item?.Type != 'C' + ? item?.OfferAmt || 0 + : item?.OfferValue || 0} + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ {item?.ProdTaxPercentage} + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ {item?.ProdTaxPercentage || 0} + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ {item?.SalesQty} + | + ) + : Quantity && ( ++ {item?.SalesQty} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ {item?.TotalAmt} + | + ) + : Amount && ( ++ {item?.Type != 'C' + ? item?.TotalAmt - item?.OfferAmt || 0 + : item?.TotalAmt - item?.OfferValue || 0} + | + )} +
| + S.No + | + ) + : SLNO && ( ++ S.No + | + )} + {GlobaldummyData + ? GlobalItem &&Dis | + : Item &&Des | } + {GlobaldummyData + ? GlobalHsnCode && ( ++ HSN + | + ) + : HsnCode && ( ++ HSN + | + )} + {GlobaldummyData + ? GlobalMRP && ( ++ MRP + | + ) + : MRP && ( ++ MRP + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ Rate + | + ) + : Rate && ( ++ Rt + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ (%) + | + ) + : Discount && ( ++ (%) + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ Tax % + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ Tax % + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ Qty + | + ) + : Quantity && ( ++ {WeightasKg ? 'Qty/Kg' : 'Qty'} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ Amt + | + ) + : Amount && ( ++ Amt + | + )} +
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| + {index + 1} + | + ) + : SLNO && ( ++ {index + 1} + | + )} + {GlobaldummyData + ? GlobalItem &&{item?.ProdName} | + : Item && ( +
+ {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 &&{item?.HSN} | } + {GlobaldummyData + ? GlobalMRP && ( ++ {item?.MRP} + | + ) + : MRP && ( ++ {item?.SinglePc === 'Y' + ? item?.Rate + : item?.MRP} + | + )} + {GlobaldummyData + ? GlobalRate && ( ++ {item?.Rate} + | + ) + : Rate && ( ++ {item?.Rate} + | + )} + {GlobaldummyData + ? GlobalDiscount && ( ++ {item?.discount} + | + ) + : Discount && ( ++ {item?.Type != 'C' + ? item?.OfferAmt || 0 + : item?.OfferValue || 0} + | + )} + {GlobaldummyData + ? GlobalTax && ( ++ {item?.ProdTaxPercentage} + | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ {item?.ProdTaxPercentage || 0} + | + )} + {GlobaldummyData + ? GlobalQuantity && ( ++ {item?.SalesQty} + | + ) + : Quantity && ( ++ {item?.SalesQty} + | + )} + {GlobaldummyData + ? GlobalAmount && ( ++ {item?.TotalAmt} + | + ) + : Amount && ( ++ {item?.Type != 'C' + ? item?.TotalAmt - item?.OfferAmt || 0 + : item?.TotalAmt - item?.OfferValue || 0} + | + )} +
+ --------- GST Breakup Details ----------- +
+ {OrderDetailGST?.length > 0 && + OrderDetailGST?.[0]?.TaxAmt > 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)} + | +
+ 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} +Split Payment:
*/} + {Object.keys(aggregatedPayments).map((paymentType) => ( ++ Notes : 10 days Return policy +
+ +{Notestext}
+ ++ Terms & Conditions +
++ Terms & Conditions +
++ Signature +
++ Signature +
+Advance Amount: {table2Data.CustomerDetails[0].OldCreditBal} @@ -1621,26 +1649,26 @@ const PrintStyle9 = ({ > )} - {/* CURRENT CREDIT BAL */} - {table2Data.CustomerDetails[0].CurrentCreditBal > + {/* 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} -+ {' '} + 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 -
++ Notes : 10 days Return policy +
-- {Notestext} -
++ {Notestext} +
-- Terms & Conditions -
-- Terms & Conditions -
-+ Terms & Conditions +
++ Terms & Conditions +
+- Signature -
-+ Signature +
+- Signature -
-+ Signature +
+Advance Amount: {table2Data.CustomerDetails[0].OldCreditBal} @@ -2530,26 +2564,26 @@ const PrintStyle9 = ({ > )} - {/* CURRENT CREDIT BAL */} - {table2Data.CustomerDetails[0].CurrentCreditBal > + {/* 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} -+ {' '} + 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 -
++ Notes : 10 days Return policy +
-- {Notestext} -
++ {Notestext} +
-- Terms & Conditions -
-- Terms & Conditions -
-+ Terms & Conditions +
++ Terms & Conditions +
+- Signature -
-+ Signature +
+- Signature -
-+ Signature +
+@@ -4040,24 +4089,24 @@ const PrintStyle9 = ({ > )} - {/* 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} -+ {' '} + 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 -
++ Notes : 10 days Return policy +
-{Notestext}
+{Notestext}
-- Terms & Conditions -
-- Terms & Conditions -
-+ Terms & Conditions +
++ Terms & Conditions +
+- Signature -
-+ Signature +
+- Signature -
-+ Signature +
+Scan Receipt (Auto-Fill)
+Scan Receipt (Auto-Fill)