Total Invoice Amount in Words:
-+
{numberToWords(amount)}
{companyAddress}
- {(companyPhone || GlobaldummyData) &&{companyAddress}
+ {(companyPhone || GlobaldummyData) && ( +| S.No | : - SLNO == true &&S.No | } + ? GlobalSlNo && ( +S.No | + ) + : SLNO == true && ( ++ S.No + | + )} {GlobaldummyData - ? GlobalItem &&Item | : - Item == true &&Item | } - + ? GlobalItem && ( +Item | + ) + : Item == true && ( ++ Item + | + )} {GlobaldummyData - ? GlobalHsnCode &&HSN | : - HsnCode == true &&HSN | } + ? GlobalHsnCode && ( +HSN | + ) + : HsnCode == true && ( ++ HSN{' '} + | + )} {GlobaldummyData - ? GlobalQuantity &&Qty | - : Quantity == true &&{WeightasKg ? 'Qty/Kg' : 'Qty'} | } + ? GlobalQuantity && ( +Qty | + ) + : Quantity == true && ( ++ {' '} + {WeightasKg ? 'Qty/Kg' : 'Qty'} + | + )} {/*UOM | UOM | */} {GlobaldummyData - ? GlobalMRP &&MRP | - : MRP == true &&MRP | } + ? GlobalMRP && ( +MRP | + ) + : MRP == true && ( ++ MRP + | + )} {GlobaldummyData - ? GlobalRate &&Rate | - : Rate == true &&Rate | } + ? GlobalRate && ( +Rate | + ) + : Rate == true && ( ++ Rate + | + )} {GlobaldummyData - ? GlobalDiscount &&Dis | - : Discount == true &&Dis | } + ? GlobalDiscount && ( +Dis | + ) + : Discount == true && ( ++ Dis + | + )} {GlobaldummyData - ? GlobalTax &&Tax % | - : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } + ? GlobalTax && ( +Tax % | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ Tax % + | + )} {GlobaldummyData - ? GlobalAmount &&Amount | - : Amount == true &&Amount | } - + ? GlobalAmount && ( +Amount | + ) + : Amount == true && ( ++ Amount + | + )}
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - {chunkIndex * chunkSize + idx + 1} - | - ) - : SLNO == true && ( -- {chunkIndex * chunkSize + idx + 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"}
- )
- )}
- {" "}
- {item?.BrandName !== null
- ? item?.BrandName
- : ""}
-
- {item?.ProductIdentifierDtls?.length > 0
- ? item?.ProductIdentifierDtls?.filter(
- (items) =>
- !(
- items.SerialNumber == "" ||
- items.SerialNumber == null
+ {((GlobaldummyData ? products : dataChunk) || []).map(
+ (item, idx) => (
+ | ||||||||||||||||||||||||||||||||||
| + {chunkIndex * chunkSize + idx + 1} + | + ) + : SLNO == true && ( ++ {chunkIndex * chunkSize + idx + 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'}
)
- )?.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} - | - )} -+ {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 + {/* Footer */} +
+ Terms & Conditions +
++ Terms & Conditions +
++ Certified that the particulars given above are + true and correct. +
+Company Name
+ ) : !estimatePrintHeader && + table2Data?.OrderType === 'E' ? ( + '' + ) : ( ++ {' '} + "For" {companyName}
-- Terms & Conditions -
-+ Authorised Signatory +
+ + {GlobaldummyData + ? GlobalSignature && ( +(Common Seal)
+Certified that the particulars given above are true and correct.
-Company Name
- : (!estimatePrintHeader && table2Data?.OrderType === "E") ? '' :"For" {companyName}
} -Authorised Signatory
+ {/*+ Notes : 10 days Return policy +
+ ++ {Notestext} +
+ + {/*(Common Seal)
-Notes : 10 days Return policy
- -{Notestext}
- - {/*- Terms & Conditions -
-- Terms & Conditions -
-+ Terms & Conditions +
++ Terms & Conditions +
+Certified that the particulars given above are true and correct.
++ Certified that the particulars given above are true + and correct. +
Company Name
- :"For" {companyName}
} + {GlobaldummyData ? ( +Company Name
+ ) : ( ++ {' '} + "For" {companyName} +
+ )}Authorised Signatory
- {GlobaldummyData ? GlobalSignature && ((Common Seal)
Notes : 10 days Return policy
+ {GlobaldummyData + ? GlobalIsnotes && ( ++ Notes : 10 days Return policy +
-{Notestext}
++ {Notestext} +
- {/*{companyAddress}
+ {(companyPhone || GlobaldummyData) && ( +{companyAddress}
- {(companyPhone || GlobaldummyData) &&| S.No | : - SLNO == true &&S.No | } + ? GlobalSlNo && ( +S.No | + ) + : SLNO == true && ( +S.No | + )} {GlobaldummyData - ? GlobalItem &&Item | : - Item == true &&Item | } - + ? GlobalItem && ( +Item | + ) + : Item == true && ( +Item | + )} {GlobaldummyData - ? GlobalHsnCode &&HSN | : - HsnCode == true &&HSN | } + ? GlobalHsnCode && ( +HSN | + ) + : HsnCode == true && ( +HSN | + )} {GlobaldummyData - ? GlobalQuantity &&Qty | - : Quantity == true &&{WeightasKg ? 'Qty/Kg' : 'Qty'} | } + ? GlobalQuantity && ( +Qty | + ) + : Quantity == true && ( ++ {' '} + {WeightasKg ? 'Qty/Kg' : 'Qty'} + | + )} {/*UOM | UOM | */} {GlobaldummyData - ? GlobalMRP &&MRP | - : MRP == true &&MRP | } + ? GlobalMRP && ( +MRP | + ) + : MRP == true && ( +MRP | + )} {GlobaldummyData - ? GlobalRate &&Rate | - : Rate == true &&Rate | } + ? GlobalRate && ( +Rate | + ) + : Rate == true && ( +Rate | + )} {GlobaldummyData - ? GlobalDiscount &&Dis | - : Discount == true &&Dis | } + ? GlobalDiscount && ( +Dis | + ) + : Discount == true && ( +Dis | + )} {GlobaldummyData - ? GlobalTax &&Tax % | - : (Tax && table2Data?.OrderType !== 'E') &&Tax % | } + ? GlobalTax && ( +Tax % | + ) + : Tax && + table2Data?.OrderType !== 'E' && ( ++ Tax % + | + )} {GlobaldummyData - ? GlobalAmount &&Amount | - : Amount == true &&Amount | } + ? GlobalAmount && ( +Amount | + ) + : Amount == true && ( +Amount | + )} {/*Taxable | IGST | @@ -1820,368 +2959,647 @@ const InvoiceTemplate = ({ index,|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - {idx + 1} - | - ) - : SLNO == true && ( -- {idx + 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} - | - )} -|||||||||||||||||||||||
| + {idx + 1} + | + ) + : SLNO == true && ( ++ {idx + 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} + | + )} +|||||||||||||||||||||||
Extra Charges:{ExtraChargeTotal}
} */} - {(TotalOfferAmount > 0 || table2Data?.OverallDisc > 0) && ( -- Off :{(Number(TotalOfferAmount || 0) + Number(table2Data?.OverallDisc || 0)).toFixed(2)} +
+ Off : + {( + Number(TotalOfferAmount || 0) + + Number(table2Data?.OverallDisc || 0) + ).toFixed(2)}
)}- Terms & Conditions -
-- Terms & Conditions -
-+ Terms & Conditions +
++ Terms & Conditions +
+Certified that the particulars given above are true and correct.
++ Certified that the particulars given above are true and + correct. +
Company Name
- :"For" {companyName}
} + {GlobaldummyData ? ( +Company Name
+ ) : ( +"For" {companyName}
+ )}Authorised Signatory
- {GlobaldummyData ? GlobalSignature && ((Common Seal)
Notes : 10 days Return policy
+ {GlobaldummyData + ? GlobalIsnotes && ( ++ Notes : 10 days Return policy +
-{Notestext}
++ {Notestext} +
- {/*