Des}
{GlobaldummyData
? GlobalQuantity && (
-
+ )
: Quantity && (
-
+ )}
{GlobaldummyData
? GlobalMRP && (
-
+ )
: MRP && (
-
+ )}
{GlobaldummyData
? GlobalRate && (
-
+ )
: Rate && (
-
+ )}
{GlobaldummyData
? GlobalHsnCode && (
-
+ )
: HsnCode && (
-
+ )}
{GlobaldummyData
? GlobalDiscount && (
-
+ )
: Discount && (
-
+ )}
{GlobaldummyData
? GlobalTax && (
-
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ )}
{GlobaldummyData
? GlobalAmount && (
-
+ )
: Amount && (
-
+ )}
@@ -1107,116 +1108,116 @@ const Printstyle12 = ({
{GlobaldummyData
? GlobalSlNo && {index + 1} |
: SLNO && (
-
- {chunkIndex * chunkSize + index + 1}
- |
- )}
+
+ {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?.ProdName}
+
+ ({item?.Size ? item?.Size : '1'}{' '}
+ {item?.SinglePc == 'Y'
+ ? 'PCS'
+ : item?.Type != 'C'
+ ? item?.UomName
+ : 'COMBO'}
+ )
+
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
-
- {item?.SalesQty}
- |
- )
+
+ {item?.SalesQty}
+ |
+ )
: Quantity && (
-
- {item?.SalesQty}
- |
- )}
+
+ {item?.SalesQty}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
- {item?.MRP}
- |
- )
+
+ {item?.MRP}
+ |
+ )
: MRP && (
-
- {item?.SinglePc === 'Y'
- ? item?.Rate
- : item?.MRP}
- |
- )}
+
+ {item?.SinglePc === 'Y'
+ ? item?.Rate
+ : item?.MRP}
+ |
+ )}
{GlobaldummyData
? GlobalRate && (
-
- {item?.Rate}
- |
- )
+
+ {item?.Rate}
+ |
+ )
: Rate && (
-
- {item?.Rate}
- |
- )}
+
+ {item?.Rate}
+ |
+ )}
{GlobaldummyData
? GlobalHsnCode && (
-
- {item?.HSN}
- |
- )
+
+ {item?.HSN}
+ |
+ )
: HsnCode && (
-
- {item?.HSN}
- |
- )}
+
+ {item?.HSN}
+ |
+ )}
{GlobaldummyData
? GlobalDiscount && (
-
- {item?.discount}
- |
- )
+
+ {item?.discount}
+ |
+ )
: Discount && (
-
- {item?.Type != 'C'
- ? item?.OfferAmt || 0
- : item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.OfferAmt || 0
+ : item?.OfferValue || 0}
+ |
+ )}
{GlobaldummyData
? GlobalTax && (
-
- {item?.ProdTaxPercentage}
- |
- )
+
+ {item?.ProdTaxPercentage}
+ |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- {item?.ProdTaxPercentage || 0}
- |
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ {item?.ProdTaxPercentage || 0}
+ |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- {item?.TotalAmt}
- |
- )
+
+ {item?.TotalAmt}
+ |
+ )
: Amount && (
-
- {item?.Type != 'C'
- ? item?.TotalAmt - item?.OfferAmt || 0
- : item?.TotalAmt - item?.OfferValue ||
- 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.TotalAmt - item?.OfferAmt || 0
+ : item?.TotalAmt - item?.OfferValue ||
+ 0}
+ |
+ )}
);
})}
@@ -1285,30 +1286,30 @@ const Printstyle12 = ({
{(table2Data?.OverallDisc > 0 ||
TotalOfferAmount > 0) && (
-
-
Off
-
:
- {GlobaldummyData
- ? '9'
- : Number(
+
Off
+
:
+
+ {GlobaldummyData
+ ? '9'
+ : Number(
TotalOfferAmount + table2Data?.OverallDisc
).toFixed(2)}
+
-
- )}
+ )}
{/*
Extra Charges
@@ -1439,6 +1440,997 @@ const Printstyle12 = ({
OrderDetailIGST?.[0]?.TaxAmt > 0) ||
(OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0)) && (
+ <>
+
+
+ --------- GST Breakup Details -----------
+
+ {OrderDetailGST?.length > 0 &&
+ OrderDetailGST?.[0]?.TaxAmt > 0 && (
+
+
+ |
+
+ Taxable Amount
+ |
+
+ CGST
+ |
+
+ SGST
+ |
+
+ Total Amount
+ |
+
+ {OrderDetailGST?.map((item) => (
+
+ |
+ {item?.TaxPercentage || 0}%
+ |
+
+ {Number(
+ item.WithOutTaxAmount
+ ).toFixed(2)}
+ |
+
+ {Number(item.CGST).toFixed(2)}
+ |
+
+ {Number(item.SGST).toFixed(2)}
+ |
+
+ {Number(item.TotalAmt).toFixed(2)}
+ |
+
+ ))}
+
+ )}
+
+ {OrderDetailIGST?.length > 0 &&
+ OrderDetailIGST?.[0]?.TaxAmt > 0 && (
+ <>
+
+
+
+ |
+
+ Taxable Amount
+ |
+
+ IGST
+ |
+
+ Total Amount
+ |
+
+ {OrderDetailIGST?.map((item) => (
+
+ |
+ {item?.TaxPercentage || 0}%
+ |
+
+ {Number(
+ item.WithOutTaxAmount
+ ).toFixed(2)}
+ |
+
+ {Number(item.TaxAmt).toFixed(2)}
+ |
+
+ {Number(item.TotalAmt).toFixed(
+ 2
+ )}
+ |
+
+ ))}
+
+ >
+ )}
+ {OrderDetailVAT?.length > 0 &&
+ OrderDetailVAT?.[0]?.TaxAmt > 0 && (
+ <>
+
+
+
+ |
+
+ Taxable Amount
+ |
+
+ VAT
+ |
+
+ Total Amount
+ |
+
+ {OrderDetailVAT?.map((item) => (
+
+ |
+ {item?.TaxPercentage || 0}%
+ |
+
+ {Number(
+ item.WithOutTaxAmount
+ ).toFixed(2)}
+ |
+
+ {Number(item.TaxAmt).toFixed(2)}
+ |
+
+ {Number(item.TotalAmt).toFixed(
+ 2
+ )}
+ |
+
+ ))}
+
+ >
+ )}
+
+ >
+ )}
+
+ )}
+
+
+
+
+ {PaymentStatusSuccess?.length === 1
+ ? PaymentStatusSuccess?.[0]?.PaymentTypeName
+ : 'Split'}{' '}
+ Payment
+
+
:
+
+ {GlobaldummyData
+ ? '1,066.00'
+ : Number(table2Data?.NetAmount).toFixed(2)
+ ? Number(table2Data?.NetAmount).toFixed(2)
+ : 0}
+
+
+ {/*
+
+ Recived Amt
+
+
:
+
+ {GlobaldummyData ? '1,066.00' : Number(table2Data?.NetAmount).toFixed(2) ? Number(table2Data?.NetAmount).toFixed(2) : 0}
+
+
+
+
+ Balance Amt
+
+
:
+
+ 0.00
+
+
*/}
+
+
+
+ {isEditedBill && lastTransaction && (
+
+
+
+
+ Bill Gross Amount
+
+
+ {(lastTransaction?.BeforeAdjustment || 0).toFixed(
+ 2
+ )}
+
+
+
+ {'Adjustment Amount'}
+
+ {lastTransaction?.AdjustmentType === 'REFUND'
+ ? '-'
+ : '+'}
+ {(lastTransaction?.Amount || 0).toFixed(2)}
+
+
+
+
+ Net Bill Amount
+
+
+ {(lastTransaction?.AfterAdjustment || 0).toFixed(
+ 2
+ )}
+
+
+
+
+ )}
+
+ {GlobaldummyData
+ ? GlobalCredit && (
+
+
Advance Amount:
+ Opening Balance:
+
+ )
+ : CreditDetails &&
+ table2Data?.CustomerDetails?.length > 0 && (
+
+ {/* OLD CREDIT BAL */}
+ {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
+ 'Credit' && (
+ <>
+ {table2Data.CustomerDetails[0].OldCreditBal >
+ 0 ? (
+
+ 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}
+
+ )}
+
+
+
+
+
+ Your Order No:{' '}
+ {GlobaldummyData
+ ? '53'
+ : table2Data?.SalesId &&
+ extractLastNumber(table2Data?.SalesId)}
+
+
+
+ {GlobaldummyData
+ ? GlobalQrcodet && (
+
+

+
+ {' '}
+ Scan to Pay:{' '}
+
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)
+ ? Number(table2Data?.NetAmount).toFixed(2)
+ : 0}
+
+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : Qrcodet &&
+ paymentTypeUPI && (
+
+
+
+ Scan to Pay{' '}
+
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
+
+
+ )}
+
+ {sportsAppPreference && MembershipApplied && (
+ {`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}
+ )}
+
+
+ {GlobaldummyData
+ ? GlobalIsnotes && (
+
+
+ Notes : 10 days Return policy
+
+
+
+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : Notestext && (
+
+ )}
+
+
+ {GlobaldummyData
+ ? GlobaltermsAndConditions && (
+
+
+ Terms & Conditions
+
+
+ -
+ Once goods are sold, they are not
+ exchangeable or refundable.
+
+ -
+ Please check the product before leaving the
+ counter.
+
+
+
+ )
+ : !estimatePrintHeader &&
+ table2Data?.OrderType === 'E'
+ ? ''
+ : TermsnAdCondition == true &&
+ TermsAndConditions?.length > 0 && (
+
+
+ Terms & Conditions
+
+
+ {TermsAndConditions?.map((item) => (
+ -
+ {item?.TermsandConditions}
+
+ ))}
+ {/* - Please check the product before leaving the counter.
*/}
+
+
+ )}
+
+ {GlobaldummyData
+ ? GlobalSignature && (
+
+
+ Signature
+
+

+
+ )
+ : !estimatePrintHeader &&
+ table2Data?.OrderType === 'E'
+ ? ''
+ : Signature == true && (
+
+
+ Signature
+
+

+
+ )}
+
+
+
+ {PrintGreeting?.SettingValue === 'Y' && (
+
+ Thank You Visit Again
+
+ )}
+ >
+ )}
+
+ ))}
+
+ {shouldFooterBeOnNewPage && FormatTheme && (
+
+
+ <>
+
+
+
+
+
Items
+
:
+
+ {GlobaldummyData ? '8' : totalQuantityFilter?.length}
+
+
+
+
Qty
+
:
+
+ {GlobaldummyData ? '9' : totalQuantity}
+
+
+ {(table2Data?.OverallDisc > 0 ||
+ TotalOfferAmount > 0) && (
+
+
Off
+
:
+
+ {GlobaldummyData
+ ? '9'
+ : Number(
+ TotalOfferAmount + table2Data?.OverallDisc
+ ).toFixed(2)}
+
+
+ )}
+ {/*
+
+ Extra Charges
+
+
:
+
+ 0
+
+
*/}
+
+
+
+ {DineInData?.length > 0 && TakeawayData?.length > 0 && (
+ <>
+ {takeAwayPreference && (
+
+
+ TakeAway
+
+
:
+
+ {Number(TakeawayTotal).toFixed(2)}
+
+
+ )}
+ {dinePreference && (
+
+
+ Dine In
+
+
:
+
+ {Number(DineInTotal).toFixed(2)}
+
+
+ )}
+ >
+ )}
+
+
+ Amount
+
+
:
+
+ {GlobaldummyData
+ ? '1,066.00'
+ : Number(table2Data?.NetAmount).toFixed(2)
+ ? Number(table2Data?.NetAmount).toFixed(2)
+ : 0}
+
+
+ {PaymentStatusSuccess?.length > 1 && !isEditedBill && (
+ <>
+ {/*
Split Payment:
*/}
+ {Object.keys(aggregatedPayments).map(
+ (paymentType) => (
+
+ {paymentType}:{' '}
+ {aggregatedPayments[paymentType].toFixed(2)}
+
+ )
+ )}
+ >
+ )}
+ {!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
+ ''
+ ) : (
+
+ {((OrderDetailGST?.length > 0 &&
+ OrderDetailGST?.[0]?.TaxAmt > 0) ||
+ (OrderDetailIGST?.length > 0 &&
+ OrderDetailIGST?.[0]?.TaxAmt > 0) ||
+ (OrderDetailVAT?.length > 0 &&
+ OrderDetailVAT?.[0]?.TaxAmt > 0)) && (
<>
- {Number(item.TotalAmt).toFixed(
- 2
- )}
+ {Number(item.TotalAmt).toFixed(2)}
))}
@@ -1706,9 +2696,7 @@ const Printstyle12 = ({
textAlign: 'center',
}}
>
- {Number(item.TotalAmt).toFixed(
- 2
- )}
+ {Number(item.TotalAmt).toFixed(2)}
))}
@@ -1718,993 +2706,6 @@ const Printstyle12 = ({
>
)}
-
- )}
-
-
-
-
- {PaymentStatusSuccess?.length === 1
- ? PaymentStatusSuccess?.[0]?.PaymentTypeName
- : 'Split'}{' '}
- Payment
-
-
:
-
- {GlobaldummyData
- ? '1,066.00'
- : Number(table2Data?.NetAmount).toFixed(2)
- ? Number(table2Data?.NetAmount).toFixed(2)
- : 0}
-
-
- {/*
-
- Recived Amt
-
-
:
-
- {GlobaldummyData ? '1,066.00' : Number(table2Data?.NetAmount).toFixed(2) ? Number(table2Data?.NetAmount).toFixed(2) : 0}
-
-
-
-
- Balance Amt
-
-
:
-
- 0.00
-
-
*/}
-
-
-
- {isEditedBill && lastTransaction && (
-
-
-
-
- Bill Gross Amount
-
-
- {(lastTransaction?.BeforeAdjustment || 0).toFixed(
- 2
- )}
-
-
-
- {'Adjustment Amount'}
-
- {lastTransaction?.AdjustmentType === 'REFUND'
- ? '-'
- : '+'}
- {(lastTransaction?.Amount || 0).toFixed(2)}
-
-
-
-
- Net Bill Amount
-
-
- {(lastTransaction?.AfterAdjustment || 0).toFixed(
- 2
- )}
-
-
-
-
- )}
-
- {GlobaldummyData
- ? GlobalCredit && (
-
-
Advance Amount:
- Opening Balance:
-
- )
- : CreditDetails &&
- table2Data?.CustomerDetails?.length > 0 && (
-
- {/* OLD CREDIT BAL */}
- {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
- 'Credit' && (
- <>
- {table2Data.CustomerDetails[0].OldCreditBal >
- 0 ? (
-
- 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}
-
- )}
-
-
-
-
-
- Your Order No:{' '}
- {GlobaldummyData
- ? '53'
- : table2Data?.SalesId &&
- extractLastNumber(table2Data?.SalesId)}
-
-
-
- {GlobaldummyData
- ? GlobalQrcodet && (
-
-

-
- {' '}
- Scan to Pay:{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)
- ? Number(table2Data?.NetAmount).toFixed(2)
- : 0}
-
-
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : Qrcodet &&
- paymentTypeUPI && (
-
-
-
- Scan to Pay{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
-
- )}
-
- {sportsAppPreference && MembershipApplied && (
-
{`*** Membership ${table2Data?.NetAmount === 0 ? 'Free Hours' : 'Discount'} Utilized - ${MembershipApplied?.Detail?.[0]?.MembershipName} ***`}
- )}
-
-
- {GlobaldummyData
- ? GlobalIsnotes && (
-
-
- Notes : 10 days Return policy
-
-
-
-
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : Notestext && (
-
- )}
-
-
- {GlobaldummyData
- ? GlobaltermsAndConditions && (
-
-
- Terms & Conditions
-
-
- -
- Once goods are sold, they are not
- exchangeable or refundable.
-
- -
- Please check the product before leaving the
- counter.
-
-
-
- )
- : !estimatePrintHeader &&
- table2Data?.OrderType === 'E'
- ? ''
- : TermsnAdCondition == true &&
- TermsAndConditions?.length > 0 && (
-
-
- Terms & Conditions
-
-
- {TermsAndConditions?.map((item) => (
- -
- {item?.TermsandConditions}
-
- ))}
- {/* - Please check the product before leaving the counter.
*/}
-
-
- )}
-
- {GlobaldummyData
- ? GlobalSignature && (
-
-
- Signature
-
-

-
- )
- : !estimatePrintHeader &&
- table2Data?.OrderType === 'E'
- ? ''
- : Signature == true && (
-
-
- Signature
-
-

-
- )}
-
-
-
- {PrintGreeting?.SettingValue === 'Y' && (
-
- Thank You Visit Again
-
- )}
- >
- )}
-
- ))}
-
- {shouldFooterBeOnNewPage && FormatTheme && (
-
-
- <>
-
-
-
-
-
Items
-
:
-
- {GlobaldummyData ? '8' : totalQuantityFilter?.length}
-
-
-
-
Qty
-
:
-
- {GlobaldummyData ? '9' : totalQuantity}
-
-
- {(table2Data?.OverallDisc > 0 ||
- TotalOfferAmount > 0) && (
-
-
Off
-
:
-
- {GlobaldummyData
- ? '9'
- : Number(
- TotalOfferAmount + table2Data?.OverallDisc
- ).toFixed(2)}
-
-
- )}
- {/*
-
- Extra Charges
-
-
:
-
- 0
-
-
*/}
-
-
-
- {DineInData?.length > 0 && TakeawayData?.length > 0 && (
- <>
- {takeAwayPreference && (
-
-
- TakeAway
-
-
:
-
- {Number(TakeawayTotal).toFixed(2)}
-
-
- )}
- {dinePreference && (
-
-
- Dine In
-
-
:
-
- {Number(DineInTotal).toFixed(2)}
-
-
- )}
- >
- )}
-
-
- Amount
-
-
:
-
- {GlobaldummyData
- ? '1,066.00'
- : Number(table2Data?.NetAmount).toFixed(2)
- ? Number(table2Data?.NetAmount).toFixed(2)
- : 0}
-
-
- {PaymentStatusSuccess?.length > 1 && !isEditedBill && (
- <>
- {/*
Split Payment:
*/}
- {Object.keys(aggregatedPayments).map(
- (paymentType) => (
-
- {paymentType}:{' '}
- {aggregatedPayments[paymentType].toFixed(2)}
-
- )
- )}
- >
- )}
- {!estimatePrintHeader && table2Data?.OrderType === 'E' ? (
- ''
- ) : (
-
- {((OrderDetailGST?.length > 0 &&
- OrderDetailGST?.[0]?.TaxAmt > 0) ||
- (OrderDetailIGST?.length > 0 &&
- OrderDetailIGST?.[0]?.TaxAmt > 0) ||
- (OrderDetailVAT?.length > 0 &&
- OrderDetailVAT?.[0]?.TaxAmt > 0)) && (
- <>
-
-
- --------- GST Breakup Details -----------
-
- {OrderDetailGST?.length > 0 &&
- OrderDetailGST?.[0]?.TaxAmt > 0 && (
-
-
- |
-
- Taxable Amount
- |
-
- CGST
- |
-
- SGST
- |
-
- Total Amount
- |
-
- {OrderDetailGST?.map((item) => (
-
- |
- {item?.TaxPercentage || 0}%
- |
-
- {Number(
- item.WithOutTaxAmount
- ).toFixed(2)}
- |
-
- {Number(item.CGST).toFixed(2)}
- |
-
- {Number(item.SGST).toFixed(2)}
- |
-
- {Number(item.TotalAmt).toFixed(2)}
- |
-
- ))}
-
- )}
-
- {OrderDetailIGST?.length > 0 &&
- OrderDetailIGST?.[0]?.TaxAmt > 0 && (
- <>
-
-
-
- |
-
- Taxable Amount
- |
-
- IGST
- |
-
- Total Amount
- |
-
- {OrderDetailIGST?.map((item) => (
-
- |
- {item?.TaxPercentage || 0}%
- |
-
- {Number(
- item.WithOutTaxAmount
- ).toFixed(2)}
- |
-
- {Number(item.TaxAmt).toFixed(2)}
- |
-
- {Number(item.TotalAmt).toFixed(2)}
- |
-
- ))}
-
- >
- )}
- {OrderDetailVAT?.length > 0 &&
- OrderDetailVAT?.[0]?.TaxAmt > 0 && (
- <>
-
-
-
- |
-
- Taxable Amount
- |
-
- VAT
- |
-
- Total Amount
- |
-
- {OrderDetailVAT?.map((item) => (
-
- |
- {item?.TaxPercentage || 0}%
- |
-
- {Number(
- item.WithOutTaxAmount
- ).toFixed(2)}
- |
-
- {Number(item.TaxAmt).toFixed(2)}
- |
-
- {Number(item.TotalAmt).toFixed(2)}
- |
-
- ))}
-
- >
- )}
-
- >
- )}
)}
-
Advance Amount:
-
Opening Balance:
-
- )
+
+
Advance Amount:
+ Opening Balance:
+
+ )
: CreditDetails &&
- table2Data?.CustomerDetails?.length > 0 && (
-
- {/* OLD CREDIT BAL */}
- {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
- 'Credit' && (
+ table2Data?.CustomerDetails?.length > 0 && (
+
+ {/* OLD CREDIT BAL */}
+ {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
+ 'Credit' && (
<>
{table2Data.CustomerDetails[0].OldCreditBal >
- 0 ? (
+ 0 ? (
Advance Amount:
{table2Data.CustomerDetails[0].OldCreditBal}
@@ -2880,26 +2881,26 @@ const Printstyle12 = ({
>
)}
- {/* 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}
+
+ )}
@@ -2914,78 +2915,78 @@ const Printstyle12 = ({
{GlobaldummyData
? '53'
: table2Data?.SalesId &&
- extractLastNumber(table2Data?.SalesId)}
+ extractLastNumber(table2Data?.SalesId)}
{GlobaldummyData
? GlobalQrcodet && (
-
-

+

+
+ {' '}
+ Scan to Pay:{' '}
+
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)
+ ? Number(table2Data?.NetAmount).toFixed(2)
+ : 0}
+
+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : Qrcodet &&
+ paymentTypeUPI && (
+
+
- {' '}
- Scan to Pay:{' '}
+ Scan to Pay{' '}
- ₹
+ ₹
{GlobaldummyData
? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)
- ? Number(table2Data?.NetAmount).toFixed(2)
- : 0}
+ : Number(table2Data?.NetAmount).toFixed(2)}
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : Qrcodet &&
- paymentTypeUPI && (
-
-
-
- Scan to Pay{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
-
- )}
+ )}
{sportsAppPreference && MembershipApplied && (
@@ -3010,25 +3011,25 @@ const Printstyle12 = ({
>
{GlobaldummyData
? GlobalIsnotes && (
+
+
+ Notes : 10 days Return policy
+
+
+
+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : Notestext && (
- Notes : 10 days Return policy
+ {Notestext}
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : Notestext && (
-
- )}
+ )}
{GlobaldummyData
? GlobaltermsAndConditions && (
+
+
+ Terms & Conditions
+
+
+ -
+ Once goods are sold, they are not exchangeable
+ or refundable.
+
+ -
+ Please check the product before leaving the
+ counter.
+
+
+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : TermsnAdCondition == true &&
+ TermsAndConditions?.length > 0 && (
-
- Once goods are sold, they are not exchangeable
- or refundable.
-
-
- Please check the product before leaving the
- counter.
-
+ {TermsAndConditions?.map((item) => (
+
+ {item?.TermsandConditions}
+
+ ))}
+ {/*
Please check the product before leaving the counter. */}
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : TermsnAdCondition == true &&
- TermsAndConditions?.length > 0 && (
-
-
- Terms & Conditions
-
-
- {TermsAndConditions?.map((item) => (
- -
- {item?.TermsandConditions}
-
- ))}
- {/* - Please check the product before leaving the counter.
*/}
-
-
- )}
+ )}
{GlobaldummyData
? GlobalSignature && (
+
+
+ Signature
+
+

+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : Signature == true && (
@@ -3140,44 +3173,12 @@ const Printstyle12 = ({
Signature
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : Signature == true && (
-
-
- Signature
-
-

-
- )}
+ )}
@@ -3225,18 +3226,18 @@ const Printstyle12 = ({
{GlobaldummyData
? 'BranchAddress, Town- 635XXX City - State'
: (table2Data?.AddressDetails?.[0]?.Address1 || '') +
- (table2Data?.AddressDetails?.[0]?.City
- ? (table2Data?.AddressDetails?.[0]?.Address1 &&
- table2Data?.AddressDetails?.[0]?.City
- ? '-'
- : '') + table2Data?.AddressDetails?.[0]?.City
- : '') +
- (table2Data?.AddressDetails?.[0]?.Zip
- ? (table2Data?.AddressDetails?.[0]?.City &&
- table2Data?.AddressDetails?.[0]?.Zip
- ? '-'
- : '') + table2Data?.AddressDetails?.[0]?.Zip
- : '')}
+ (table2Data?.AddressDetails?.[0]?.City
+ ? (table2Data?.AddressDetails?.[0]?.Address1 &&
+ table2Data?.AddressDetails?.[0]?.City
+ ? '-'
+ : '') + table2Data?.AddressDetails?.[0]?.City
+ : '') +
+ (table2Data?.AddressDetails?.[0]?.Zip
+ ? (table2Data?.AddressDetails?.[0]?.City &&
+ table2Data?.AddressDetails?.[0]?.Zip
+ ? '-'
+ : '') + table2Data?.AddressDetails?.[0]?.Zip
+ : '')}
{' '}
@@ -3340,10 +3341,10 @@ const Printstyle12 = ({
{GlobaldummyData
? '553'
: table2Data?.OrderId &&
- extractLastNumberOrderId(
- table2Data?.OrderId,
- table2Data?.FYStatus
- )}
+ extractLastNumberOrderId(
+ table2Data?.OrderId,
+ table2Data?.FYStatus
+ )}
Des}
{GlobaldummyData
? GlobalQuantity && (
-
Qty |
- )
+
Qty |
+ )
: Quantity && (
-
- {' '}
- {WeightasKg ? 'Qty/Kg' : 'Qty'}
- |
- )}
+
+ {' '}
+ {WeightasKg ? 'Qty/Kg' : 'Qty'}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
MRP |
- )
+
MRP |
+ )
: MRP &&
MRP | }
{GlobaldummyData
? GlobalRate && (
-
Rate |
- )
+
Rate |
+ )
: Rate &&
Rate | }
{GlobaldummyData
? GlobalHsnCode && (
-
HSN |
- )
+
HSN |
+ )
: HsnCode && (
-
HSN |
- )}
+
HSN |
+ )}
{GlobaldummyData
? GlobalDiscount && (
-
(%) |
- )
+
(%) |
+ )
: Discount && (
-
(%) |
- )}
+
(%) |
+ )}
{GlobaldummyData
? GlobalTax && (
-
Tax (%) |
- )
+
Tax (%) |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
Tax (%) |
- )}
+ table2Data?.OrderType !== 'E' && (
+
Tax (%) |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
Amt |
- )
+
Amt |
+ )
: Amount &&
Amt | }
@@ -3442,195 +3443,195 @@ const Printstyle12 = ({
{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?.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(',')}
-
- );
- })
- : ''}
-
- ) : (
-
- ({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(',')}
-
- );
- })
- : ''}
-
- )}
- |
- )}
+
+ {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?.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(',')}
+
+ );
+ })
+ : ''}
+
+ ) : (
+
+ ({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
? GlobalQuantity && (
-
- {item?.SalesQty}
- |
- )
+
+ {item?.SalesQty}
+ |
+ )
: Quantity && (
-
- {item?.SalesQty}
- |
- )}
+
+ {item?.SalesQty}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
- {item?.MRP}
- |
- )
+
+ {item?.MRP}
+ |
+ )
: MRP && (
-
- {item?.SinglePc === 'Y'
- ? item?.Rate
- : item?.MRP}
- |
- )}
+
+ {item?.SinglePc === 'Y'
+ ? item?.Rate
+ : item?.MRP}
+ |
+ )}
{GlobaldummyData
? GlobalRate && (
-
- {item?.Rate}
- |
- )
+
+ {item?.Rate}
+ |
+ )
: Rate && (
-
- {item?.Rate}
- |
- )}
+
+ {item?.Rate}
+ |
+ )}
{GlobaldummyData
? GlobalHsnCode && (
-
- {item?.HSN}
- |
- )
+
+ {item?.HSN}
+ |
+ )
: HsnCode && (
-
- {item?.HSN}
- |
- )}
+
+ {item?.HSN}
+ |
+ )}
{GlobaldummyData
? GlobalDiscount && (
-
- {item?.discount}
- |
- )
+
+ {item?.discount}
+ |
+ )
: Discount && (
-
- {item?.Type != 'C'
- ? item?.OfferAmt || 0
- : item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.OfferAmt || 0
+ : item?.OfferValue || 0}
+ |
+ )}
{GlobaldummyData
? GlobalTax && (
-
- {item?.ProdTaxPercentage}
- |
- )
+
+ {item?.ProdTaxPercentage}
+ |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- {item?.ProdTaxPercentage || 0}
- |
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ {item?.ProdTaxPercentage || 0}
+ |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- {item?.TotalAmt}
- |
- )
+
+ {item?.TotalAmt}
+ |
+ )
: Amount && (
-
- {item?.Type != 'C'
- ? item?.TotalAmt - item?.OfferAmt || 0
- : item?.TotalAmt - item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.TotalAmt - item?.OfferAmt || 0
+ : item?.TotalAmt - item?.OfferValue || 0}
+ |
+ )}
);
}
@@ -3666,50 +3667,50 @@ const Printstyle12 = ({
: Item &&
Des | }
{GlobaldummyData
? GlobalQuantity && (
-
Qty |
- )
+
Qty |
+ )
: Quantity && (
-
- {' '}
- {WeightasKg ? 'Qty/Kg' : 'Qty'}
- |
- )}
+
+ {' '}
+ {WeightasKg ? 'Qty/Kg' : 'Qty'}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
MRP |
- )
+
MRP |
+ )
: MRP &&
MRP | }
{GlobaldummyData
? GlobalRate && (
-
Rate |
- )
+
Rate |
+ )
: Rate &&
Rate | }
{GlobaldummyData
? GlobalHsnCode && (
-
HSN |
- )
+
HSN |
+ )
: HsnCode && (
-
HSN |
- )}
+
HSN |
+ )}
{GlobaldummyData
? GlobalDiscount && (
-
(%) |
- )
+
(%) |
+ )
: Discount && (
-
(%) |
- )}
+
(%) |
+ )}
{GlobaldummyData
? GlobalTax && (
-
Tax (%) |
- )
+
Tax (%) |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
Tax (%) |
- )}
+ table2Data?.OrderType !== 'E' && (
+
Tax (%) |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
Amt |
- )
+
Amt |
+ )
: Amount &&
Amt | }
@@ -3724,108 +3725,108 @@ const Printstyle12 = ({
{GlobaldummyData
? GlobalItem &&
{item?.ProdName} |
: Item && (
-
- {item?.ProdName}
-
- ({item?.Size ? item?.Size : '1'}{' '}
- {item?.SinglePc == 'Y'
- ? 'PCS'
- : item?.Type != 'C'
- ? item?.UomName
- : 'COMBO'}
- )
-
- |
- )}
+
+ {item?.ProdName}
+
+ ({item?.Size ? item?.Size : '1'}{' '}
+ {item?.SinglePc == 'Y'
+ ? 'PCS'
+ : item?.Type != 'C'
+ ? item?.UomName
+ : 'COMBO'}
+ )
+
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
-
- {item?.SalesQty}
- |
- )
+
+ {item?.SalesQty}
+ |
+ )
: Quantity && (
-
- {item?.SalesQty}
- |
- )}
+
+ {item?.SalesQty}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
- {item?.MRP}
- |
- )
+
+ {item?.MRP}
+ |
+ )
: MRP && (
-
- {item?.SinglePc === 'Y'
- ? item?.Rate
- : item?.MRP}
- |
- )}
+
+ {item?.SinglePc === 'Y'
+ ? item?.Rate
+ : item?.MRP}
+ |
+ )}
{GlobaldummyData
? GlobalRate && (
-
- {item?.Rate}
- |
- )
+
+ {item?.Rate}
+ |
+ )
: Rate && (
-
- {item?.Rate}
- |
- )}
+
+ {item?.Rate}
+ |
+ )}
{GlobaldummyData
? GlobalHsnCode && (
-
- {item?.HSN}
- |
- )
+
+ {item?.HSN}
+ |
+ )
: HsnCode && (
-
- {item?.HSN}
- |
- )}
+
+ {item?.HSN}
+ |
+ )}
{GlobaldummyData
? GlobalDiscount && (
-
- {item?.discount}
- |
- )
+
+ {item?.discount}
+ |
+ )
: Discount && (
-
- {item?.Type != 'C'
- ? item?.OfferAmt || 0
- : item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.OfferAmt || 0
+ : item?.OfferValue || 0}
+ |
+ )}
{GlobaldummyData
? GlobalTax && (
-
- {item?.ProdTaxPercentage}
- |
- )
+
+ {item?.ProdTaxPercentage}
+ |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- {item?.ProdTaxPercentage || 0}
- |
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ {item?.ProdTaxPercentage || 0}
+ |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- {item?.TotalAmt}
- |
- )
+
+ {item?.TotalAmt}
+ |
+ )
: Amount && (
-
- {item?.Type != 'C'
- ? item?.TotalAmt - item?.OfferAmt || 0
- : item?.TotalAmt - item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.TotalAmt - item?.OfferAmt || 0
+ : item?.TotalAmt - item?.OfferValue || 0}
+ |
+ )}
);
}
@@ -3892,8 +3893,8 @@ const Printstyle12 = ({
{GlobaldummyData
? '9'
: Number(
- TotalOfferAmount + table2Data?.OverallDisc
- ).toFixed(2)}
+ TotalOfferAmount + table2Data?.OverallDisc
+ ).toFixed(2)}
)}
@@ -4010,118 +4011,20 @@ const Printstyle12 = ({
OrderDetailIGST?.[0]?.TaxAmt > 0) ||
(OrderDetailVAT?.length > 0 &&
OrderDetailVAT?.[0]?.TaxAmt > 0)) && (
- <>
-
-
- --------- GST Breakup Details -----------
-
- {OrderDetailGST?.length > 0 &&
- OrderDetailGST?.[0]?.TaxAmt > 0 && (
-
-
- |
-
- Taxable Amount
- |
-
- CGST
- |
-
- SGST
- |
-
- Total Amount
- |
-
- {OrderDetailGST?.map((item) => (
-
- |
- {item?.TaxPercentage || 0}%
- |
-
- {Number(item.WithOutTaxAmount).toFixed(2)}
- |
-
- {Number(item.CGST).toFixed(2)}
- |
-
- {Number(item.SGST).toFixed(2)}
- |
-
- {Number(item.TotalAmt).toFixed(2)}
- |
-
- ))}
-
- )}
-
- {OrderDetailIGST?.length > 0 &&
- OrderDetailIGST?.[0]?.TaxAmt > 0 && (
- <>
-
+ <>
+
+
+ --------- GST Breakup Details -----------
+
+ {OrderDetailGST?.length > 0 &&
+ OrderDetailGST?.[0]?.TaxAmt > 0 && (
|
- IGST
+ CGST
+ |
+
+ SGST
|
|
- {OrderDetailIGST?.map((item) => (
+ {OrderDetailGST?.map((item) => (
|
- {Number(item.TaxAmt).toFixed(2)}
+ {Number(item.CGST).toFixed(2)}
+ |
+
+ {Number(item.SGST).toFixed(2)}
|
-
))}
|
- >
- )}
- {OrderDetailVAT?.length > 0 &&
- OrderDetailVAT?.[0]?.TaxAmt > 0 && (
- <>
-
-
-
- |
-
- Taxable Amount
- |
-
- VAT
- |
-
- Total Amount
- |
-
- {OrderDetailVAT?.map((item) => (
+ )}
+
+ {OrderDetailIGST?.length > 0 &&
+ OrderDetailIGST?.[0]?.TaxAmt > 0 && (
+ <>
+
+
|
+
- {item?.TaxPercentage || 0}%
+ Taxable Amount
|
- {Number(item.WithOutTaxAmount).toFixed(2)}
+ IGST
|
- {Number(item.TaxAmt).toFixed(2)}
- |
-
- {Number(item.TotalAmt).toFixed(2)}
+ Total Amount
|
- ))}
-
- >
- )}
-
- >
- )}
+ {OrderDetailIGST?.map((item) => (
+
+ |
+ {item?.TaxPercentage || 0}%
+ |
+
+ {Number(item.WithOutTaxAmount).toFixed(2)}
+ |
+
+ {Number(item.TaxAmt).toFixed(2)}
+ |
+
+
+ {Number(item.TotalAmt).toFixed(2)}
+ |
+
+ ))}
+
+ >
+ )}
+ {OrderDetailVAT?.length > 0 &&
+ OrderDetailVAT?.[0]?.TaxAmt > 0 && (
+ <>
+
+
+
+ |
+
+ Taxable Amount
+ |
+
+ VAT
+ |
+
+ Total Amount
+ |
+
+ {OrderDetailVAT?.map((item) => (
+
+ |
+ {item?.TaxPercentage || 0}%
+ |
+
+ {Number(item.WithOutTaxAmount).toFixed(2)}
+ |
+
+ {Number(item.TaxAmt).toFixed(2)}
+ |
+
+ {Number(item.TotalAmt).toFixed(2)}
+ |
+
+ ))}
+
+ >
+ )}
+
+ >
+ )}
)}
- Advance Amount:
- Opening Balance:
-
- )
+
+
Advance Amount:
+ Opening Balance:
+
+ )
: CreditDetails &&
- table2Data?.CustomerDetails?.length > 0 && (
-
- {/* OLD CREDIT BAL */}
- {PaymentStatusSuccess?.[0]?.PaymentTypeName === 'Credit' && (
- <>
- {table2Data.CustomerDetails[0].OldCreditBal > 0 ? (
-
- Advance Amount:
- {table2Data.CustomerDetails[0].OldCreditBal}
-
- ) : table2Data.CustomerDetails[0].OldCreditBal < 0 ? (
-
- {' '}
- Opening Balance:{' '}
- {Math.abs(table2Data.CustomerDetails[0].OldCreditBal)}
-
- ) : null}
- >
- )}
+ table2Data?.CustomerDetails?.length > 0 && (
+
+ {/* OLD CREDIT BAL */}
+ {PaymentStatusSuccess?.[0]?.PaymentTypeName === 'Credit' && (
+ <>
+ {table2Data.CustomerDetails[0].OldCreditBal > 0 ? (
+
+ 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}
-
- )}
+ {/* 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}
+
+ )}
@@ -4487,70 +4488,70 @@ const Printstyle12 = ({
{GlobaldummyData
? '53'
: table2Data?.SalesId &&
- extractLastNumber(table2Data?.SalesId)}
+ extractLastNumber(table2Data?.SalesId)}
{GlobaldummyData
? GlobalQrcodet && (
-
-

-
- {' '}
- Scan to Pay:{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)
- ? Number(table2Data?.NetAmount).toFixed(2)
- : 0}
-
+
+

+
+ {' '}
+ Scan to Pay:{' '}
- )
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)
+ ? Number(table2Data?.NetAmount).toFixed(2)
+ : 0}
+
+
+ )
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Qrcodet &&
- paymentTypeUPI && (
-
-
-
- Scan to Pay{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
+ paymentTypeUPI && (
+
+
+
+ Scan to Pay{' '}
- )}
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
+
+
+ )}
{sportsAppPreference && MembershipApplied && (
{GlobaldummyData
? GlobalIsnotes && (
-
-
- Notes : 10 days Return policy
-
+
+
+ Notes : 10 days Return policy
+
-
-
- )
+
+
+ )
: !estimatePrintHeader && table2Data?.OrderType === 'E'
? ''
: Notestext && (
-
+ )}
{GlobaldummyData
? GlobaltermsAndConditions && (
+
+
+ Terms & Conditions
+
+
+ -
+ Once goods are sold, they are not exchangeable or
+ refundable.
+
+ -
+ Please check the product before leaving the counter.
+
+
+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : TermsnAdCondition == true &&
+ TermsAndConditions?.length > 0 && (
-
- Once goods are sold, they are not exchangeable or
- refundable.
-
-
- Please check the product before leaving the counter.
-
+ {TermsAndConditions?.map((item) => (
+
+ {item?.TermsandConditions}
+
+ ))}
+ {/*
Please check the product before leaving the counter. */}
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : TermsnAdCondition == true &&
- TermsAndConditions?.length > 0 && (
-
-
- Terms & Conditions
-
-
- {TermsAndConditions?.map((item) => (
- -
- {item?.TermsandConditions}
-
- ))}
- {/* - Please check the product before leaving the counter.
*/}
-
-
- )}
+ )}
{GlobaldummyData
? GlobalSignature && (
+
+
+ Signature
+
+

+
+ )
+ : !estimatePrintHeader && table2Data?.OrderType === 'E'
+ ? ''
+ : Signature == true && (
@@ -4706,44 +4739,12 @@ const Printstyle12 = ({
Signature
- )
- : !estimatePrintHeader && table2Data?.OrderType === 'E'
- ? ''
- : Signature == true && (
-
-
- Signature
-
-

-
- )}
+ )}
diff --git a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx
index f4ea976..e05dd88 100644
--- a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx
+++ b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle6.jsx
@@ -103,6 +103,7 @@ const Printstyle6 = ({
const GlobalLogo = useSelector(GlobalprintLogo);
const GlobalCredit = useSelector(GlobalprintCredit);
const SettingData = useSelector(PreferenceData);
+ const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
console.log(CashierNameField, "GlobaldummyData")
const estimatePrintHeader =
SettingData?.[0]?.SettingDtlDetails?.find(
@@ -3267,7 +3268,7 @@ const Printstyle6 = ({
/>
) : null}
-
+
{GlobaldummyData ? 'XYZ Shop' : table2Data?.BrName}
diff --git a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle7.jsx b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle7.jsx
index 6d67baa..9cb2131 100644
--- a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle7.jsx
+++ b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle7.jsx
@@ -99,6 +99,7 @@ const PrintStyle7 = ({
const GlobalLogo = useSelector(GlobalprintLogo);
const GlobalCredit = useSelector(GlobalprintCredit);
const SettingData = useSelector(PreferenceData);
+ const SelectedHeaderColor = useSelector(GlobalSelectedPrintHeaderColor);
const estimatePrintHeader =
SettingData?.[0]?.SettingDtlDetails?.find(
(setting) =>
@@ -366,8 +367,8 @@ const PrintStyle7 = ({
flexDirection: 'column',
justifyContent:
chunkIndex === paginatedChunks.length - 1 &&
- !shouldFooterBeOnNewPage &&
- FormatTheme
+ !shouldFooterBeOnNewPage &&
+ FormatTheme
? 'space-between'
: '',
height: isMobile
@@ -416,7 +417,7 @@ const PrintStyle7 = ({
/>
) : null}
{base64Image &&
- (PrintLogo?.SettingValue === 'Y' || LogoField) ? (
+ (PrintLogo?.SettingValue === 'Y' || LogoField) ? (
{table2Data?.OrderType === 'E' && (
@@ -562,80 +563,80 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo && (
- | S |
- )
+ S |
+ )
: SLNO == true && (
- S |
- )}
+ S |
+ )}
{GlobaldummyData
? GlobalItem && Item |
: Item == true && Item | }
{GlobaldummyData
? GlobalHsnCode && (
- HSN |
- )
+ HSN |
+ )
: HsnCode == true && (
- HSN |
- )}
+ HSN |
+ )}
{GlobaldummyData
? GlobalQuantity && (
- Qty |
- )
+ Qty |
+ )
: Quantity == true && (
-
- {WeightasKg ? 'Qty/Kg' : 'Qty'}
- |
- )}
+
+ {WeightasKg ? 'Qty/Kg' : 'Qty'}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
- MRP |
- )
+ MRP |
+ )
: MRP == true && (
- MRP |
- )}
+ MRP |
+ )}
{GlobaldummyData
? GlobalRate && (
- Rate |
- )
+ Rate |
+ )
: Rate == true && (
- Rate |
- )}
+ Rate |
+ )}
{GlobaldummyData
? GlobalDiscount && (
- Dis |
- )
+ Dis |
+ )
: Discount == true && (
- Dis |
- )}
+ Dis |
+ )}
{GlobaldummyData
? GlobalTax && (
- Tax % |
- )
+ Tax % |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
- Tax % |
- )}
+ table2Data?.OrderType !== 'E' && (
+ Tax % |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- Amt
- |
- )
+
+ Amt
+ |
+ )
: Amount == true && (
-
- Amt
- |
- )}
+
+ Amt
+ |
+ )}
@@ -643,137 +644,137 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo && (
- |
- {index + 1}
- |
- )
+
+ {index + 1}
+ |
+ )
: SLNO == true && (
-
- {chunkIndex * chunkSize + index + 1}
- |
- )}
+
+ {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'}
- )
-
- )}
- |
- )}
+
+ {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}
- |
- )
+
+ {item?.HSN}
+ |
+ )
: HsnCode == true && (
-
- {item?.HSN}
- |
- )}
+
+ {item?.HSN}
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
-
- {item?.SalesQty}
- |
- )
+
+ {item?.SalesQty}
+ |
+ )
: Quantity == true && (
-
- {item?.SalesQty}
- |
- )}
+
+ {item?.SalesQty}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
- {item?.MRP}
- |
- )
+
+ {item?.MRP}
+ |
+ )
: MRP == true && (
-
- {item?.SinglePc === 'Y'
- ? item?.Rate
- : item?.MRP}
- |
- )}
+
+ {item?.SinglePc === 'Y'
+ ? item?.Rate
+ : item?.MRP}
+ |
+ )}
{GlobaldummyData
? GlobalRate && (
-
- {item?.Rate}
- |
- )
+
+ {item?.Rate}
+ |
+ )
: Rate == true && (
-
- {item?.Rate}
- |
- )}
+
+ {item?.Rate}
+ |
+ )}
{GlobaldummyData
? GlobalDiscount && {item.discount} |
: Discount == true && (
-
- {item?.Type != 'C'
- ? item?.OfferAmt || 0
- : item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.OfferAmt || 0
+ : item?.OfferValue || 0}
+ |
+ )}
{GlobaldummyData
? GlobalTax && (
-
- {item?.ProdTaxPercentage}
- |
- )
+
+ {item?.ProdTaxPercentage}
+ |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- {item?.ProdTaxPercentage || 0}
- |
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ {item?.ProdTaxPercentage || 0}
+ |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- {item?.TotalAmt}
- |
- )
+
+ {item?.TotalAmt}
+ |
+ )
: Amount == true && (
-
- {item?.Type != 'C'
- ? item?.TotalAmt - item?.OfferAmt || 0
- : item?.TotalAmt - item?.OfferValue ||
- 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.TotalAmt - item?.OfferAmt || 0
+ : item?.TotalAmt - item?.OfferValue ||
+ 0}
+ |
+ )}
))}
@@ -802,80 +803,80 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo && (
- | S.No |
- )
+ S.No |
+ )
: SLNO == true && (
- S.NO |
- )}
+ S.NO |
+ )}
{GlobaldummyData
? GlobalItem && Item |
: Item == true && Item | }
{GlobaldummyData
? GlobalHsnCode && (
- HSN |
- )
+ HSN |
+ )
: HsnCode == true && (
- HSN |
- )}
+ HSN |
+ )}
{GlobaldummyData
? GlobalQuantity && (
- Qty |
- )
+ Qty |
+ )
: Quantity == true && (
-
- {WeightasKg ? 'Qty/Kg' : 'Qty'}
- |
- )}
+
+ {WeightasKg ? 'Qty/Kg' : 'Qty'}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
- MRP |
- )
+ MRP |
+ )
: MRP == true && (
- MRP |
- )}
+ MRP |
+ )}
{GlobaldummyData
? GlobalRate && (
- Rate |
- )
+ Rate |
+ )
: Rate == true && (
- Rate |
- )}
+ Rate |
+ )}
{GlobaldummyData
? GlobalDiscount && (
- Dis |
- )
+ Dis |
+ )
: Discount == true && (
- Dis |
- )}
+ Dis |
+ )}
{GlobaldummyData
? GlobalTax && (
- Tax % |
- )
+ Tax % |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
- Tax % |
- )}
+ table2Data?.OrderType !== 'E' && (
+ Tax % |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- Amt
- |
- )
+
+ Amt
+ |
+ )
: Amount == true && (
-
- Amt
- |
- )}
+
+ Amt
+ |
+ )}
@@ -883,153 +884,153 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo && (
- |
- {index + 1}
- |
- )
+
+ {index + 1}
+ |
+ )
: SLNO == true && (
-
- {chunkIndex * chunkSize + index + 1}
- |
- )}
+
+ {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 >
+
+ {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 >
+ ? 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(',')}
-
- );
- })
- : ''}
-
- |
- )}
+ ? 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}
- |
- )
+
+ {item?.HSN}
+ |
+ )
: HsnCode == true && (
-
- {item?.HSN}
- |
- )}
+
+ {item?.HSN}
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
-
- {item?.SalesQty}
- |
- )
+
+ {item?.SalesQty}
+ |
+ )
: Quantity == true && (
-
- {item?.SalesQty}
- |
- )}
+
+ {item?.SalesQty}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
- {item?.MRP}
- |
- )
+
+ {item?.MRP}
+ |
+ )
: MRP == true && (
-
- {item?.SinglePc === 'Y'
- ? item?.Rate
- : item?.MRP}
- |
- )}
+
+ {item?.SinglePc === 'Y'
+ ? item?.Rate
+ : item?.MRP}
+ |
+ )}
{GlobaldummyData
? GlobalRate && (
-
- {item?.Rate}
- |
- )
+
+ {item?.Rate}
+ |
+ )
: Rate == true && (
-
- {item?.Rate}
- |
- )}
+
+ {item?.Rate}
+ |
+ )}
{GlobaldummyData
? GlobalDiscount && {item.discount} |
: Discount == true && (
-
- {item?.Type != 'C'
- ? item?.OfferAmt || 0
- : item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.OfferAmt || 0
+ : item?.OfferValue || 0}
+ |
+ )}
{GlobaldummyData
? GlobalTax && (
-
- {item?.ProdTaxPercentage}
- |
- )
+
+ {item?.ProdTaxPercentage}
+ |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- {item?.ProdTaxPercentage || 0}
- |
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ {item?.ProdTaxPercentage || 0}
+ |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- {item?.TotalAmt}
- |
- )
+
+ {item?.TotalAmt}
+ |
+ )
: Amount == true && (
-
- {item?.Type != 'C'
- ? item?.TotalAmt - item?.OfferAmt || 0
- : item?.TotalAmt - item?.OfferValue ||
- 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.TotalAmt - item?.OfferAmt || 0
+ : item?.TotalAmt - item?.OfferValue ||
+ 0}
+ |
+ )}
))}
@@ -1055,15 +1056,15 @@ const PrintStyle7 = ({
{(table2Data?.OverallDisc > 0 ||
TotalOfferAmount > 0) && (
-
- Off :{' '}
- {GlobaldummyData
- ? '10'
- : Number(
+
+ Off :{' '}
+ {GlobaldummyData
+ ? '10'
+ : Number(
TotalOfferAmount + table2Data?.OverallDisc
).toFixed(2)}
-
- )}
+
+ )}
-
Advance Amount:
- Opening Balance:
-
- )
+
+
Advance Amount:
+ Opening Balance:
+
+ )
: CreditDetails &&
- table2Data?.CustomerDetails?.length > 0 && (
-
- {/* OLD CREDIT BAL */}
- {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
- 'Credit' && (
+ table2Data?.CustomerDetails?.length > 0 && (
+
+ {/* OLD CREDIT BAL */}
+ {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
+ 'Credit' && (
<>
{table2Data.CustomerDetails[0].OldCreditBal >
- 0 ? (
+ 0 ? (
Advance Amount:
{table2Data.CustomerDetails[0].OldCreditBal}
@@ -1572,26 +1573,26 @@ const PrintStyle7 = ({
>
)}
- {/* 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}
+
+ )}
{GlobaldummyData && GlobalCashierName && (
{GlobaldummyData
? GlobalQrcodet && (
-
-

-
- Scan to Pay{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
+
+

+
+ Scan to Pay{' '}
- )
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
+
+
+ )
: Qrcodet &&
- paymentTypeUPI && (
-
-
-
- Scan to Pay{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
+ paymentTypeUPI && (
+
+
+
+ Scan to Pay{' '}
- )}
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
+
+
+ )}
)}
@@ -1747,23 +1748,23 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalIsnotes && (
-
-
- Notes : 10 days Return policy
-
+
+
+ Notes : 10 days Return policy
+
-
-
- )
+
+
+ )
: Notestext && (
-
-
- {Notestext}
-
+
- )}
+
+
+ )}
)}
@@ -1783,137 +1784,137 @@ const PrintStyle7 = ({
>
{GlobaldummyData
? GlobaltermsAndConditions && (
-
+
-
- Terms & Conditions
-
-
- -
- Once goods are sold, they are not
- exchangeable or refundable.
-
- -
- Please check the product before leaving
- the counter.
-
-
-
- )
+ Terms & Conditions
+
+
+ -
+ Once goods are sold, they are not
+ exchangeable or refundable.
+
+ -
+ Please check the product before leaving
+ the counter.
+
+
+
+ )
: TermsnAdCondition == true &&
- TermsAndConditions?.length > 0 && (
-
0 && (
+
+
-
- Terms & Conditions
-
-
- {TermsAndConditions?.map((item) => (
- -
- {item?.TermsandConditions}
-
- ))}
- {/* - Please check the product before leaving the counter.
*/}
-
-
- )}
+ Terms & Conditions
+
+
+ {TermsAndConditions?.map((item) => (
+ -
+ {item?.TermsandConditions}
+
+ ))}
+ {/* - Please check the product before leaving the counter.
*/}
+
+
+ )}
{GlobaldummyData
? GlobalSignature && (
-
+
-
- Signature
-
-

-
- )
+ Signature
+
+

+
+ )
: Signature == true && (
-
+
-
- Signature
-
-

-
- )}
+ Signature
+
+

+
+ )}
)}
@@ -1970,15 +1971,15 @@ const PrintStyle7 = ({
{(table2Data?.OverallDisc > 0 ||
TotalOfferAmount > 0) && (
-
- Off :{' '}
- {GlobaldummyData
- ? '10'
- : Number(
+
+ Off :{' '}
+ {GlobaldummyData
+ ? '10'
+ : Number(
TotalOfferAmount + table2Data?.OverallDisc
).toFixed(2)}
-
- )}
+
+ )}
{table2Data?.OrderType === 'E' ? (
@@ -2431,34 +2432,34 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalCredit && (
-
-
Advance Amount:
- Opening Balance:
-
- )
+
+
Advance Amount:
+ Opening Balance:
+
+ )
: CreditDetails &&
- table2Data?.CustomerDetails?.length > 0 && (
-
- {/* OLD CREDIT BAL */}
- {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
- 'Credit' && (
+ table2Data?.CustomerDetails?.length > 0 && (
+
+ {/* OLD CREDIT BAL */}
+ {PaymentStatusSuccess?.[0]?.PaymentTypeName ===
+ 'Credit' && (
<>
{table2Data.CustomerDetails[0].OldCreditBal >
- 0 ? (
+ 0 ? (
Advance Amount:
{table2Data.CustomerDetails[0].OldCreditBal}
@@ -2476,26 +2477,26 @@ const PrintStyle7 = ({
>
)}
- {/* 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}
+
+ )}
{GlobaldummyData && GlobalCashierName && (
{GlobaldummyData
? GlobalQrcodet && (
-
-

-
- Scan to Pay{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
+
+

+
+ Scan to Pay{' '}
- )
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
+
+
+ )
: Qrcodet &&
- paymentTypeUPI && (
-
-
-
- Scan to Pay{' '}
-
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
+ paymentTypeUPI && (
+
+
+
+ Scan to Pay{' '}
- )}
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
+
+
+ )}
)}
@@ -2651,23 +2652,23 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalIsnotes && (
-
-
- Notes : 10 days Return policy
-
+
+
+ Notes : 10 days Return policy
+
-
-
- )
+
+
+ )
: Notestext && (
-
-
- {Notestext}
-
+
- )}
+
+
+ )}
)}
@@ -2687,137 +2688,137 @@ const PrintStyle7 = ({
>
{GlobaldummyData
? GlobaltermsAndConditions && (
-
+
-
- Terms & Conditions
-
-
- -
- Once goods are sold, they are not
- exchangeable or refundable.
-
- -
- Please check the product before leaving the
- counter.
-
-
-
- )
+ Terms & Conditions
+
+
+ -
+ Once goods are sold, they are not
+ exchangeable or refundable.
+
+ -
+ Please check the product before leaving the
+ counter.
+
+
+
+ )
: TermsnAdCondition == true &&
- TermsAndConditions?.length > 0 && (
-
0 && (
+
+
-
- Terms & Conditions
-
-
- {TermsAndConditions?.map((item) => (
- -
- {item?.TermsandConditions}
-
- ))}
- {/* - Please check the product before leaving the counter.
*/}
-
-
- )}
+ Terms & Conditions
+
+
+ {TermsAndConditions?.map((item) => (
+ -
+ {item?.TermsandConditions}
+
+ ))}
+ {/* - Please check the product before leaving the counter.
*/}
+
+
+ )}
{GlobaldummyData
? GlobalSignature && (
-
+
-
- Signature
-
-

-
- )
+ Signature
+
+

+
+ )
: Signature == true && (
-
+
-
- Signature
-
-

-
- )}
+ Signature
+
+

+
+ )}
)}
@@ -2868,7 +2869,7 @@ const PrintStyle7 = ({
/>
) : null}
{base64Image &&
- (PrintLogo?.SettingValue === 'Y' || LogoField) ? (
+ (PrintLogo?.SettingValue === 'Y' || LogoField) ? (
{table2Data?.OrderType === 'E' && (
@@ -3016,59 +3017,59 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo &&
S.No |
: SLNO == true && (
-
S.No |
- )}
+
S.No |
+ )}
{GlobaldummyData
? GlobalItem && (
-
- Item
- |
- )
+
+ Item
+ |
+ )
: Item == true &&
Item | }
{GlobaldummyData
? GlobalHsnCode &&
HSN |
: HsnCode == true && (
-
HSN |
- )}
+
HSN |
+ )}
{GlobaldummyData
? GlobalQuantity &&
Qty |
: Quantity == true && (
-
- {WeightasKg ? 'Qty/Kg' : 'Qty'}
- |
- )}
+
+ {WeightasKg ? 'Qty/Kg' : 'Qty'}
+ |
+ )}
{GlobaldummyData
? GlobalMRP &&
MRP |
: MRP == true && (
-
MRP |
- )}
+
MRP |
+ )}
{GlobaldummyData
? GlobalRate &&
Rate |
: Rate == true && (
-
Rate |
- )}
+
Rate |
+ )}
{GlobaldummyData
? GlobalDiscount &&
Dis |
: Discount == true && (
-
Dis |
- )}
+
Dis |
+ )}
{GlobaldummyData
? GlobalTax && (
-
Tax % |
- )
+
Tax % |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
Tax % |
- )}
+ table2Data?.OrderType !== 'E' && (
+
Tax % |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
Amt |
- )
+
Amt |
+ )
: Amount == true && (
-
- Amt
- |
- )}
+
+ Amt
+ |
+ )}
@@ -3077,135 +3078,135 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo && (
- |
- {index + 1}
- |
- )
+
+ {index + 1}
+ |
+ )
: SLNO == true && (
-
- {index + 1}
- |
- )}
+
+ {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'}
- )
-
- )}
- |
- )}
+
+ {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}
- |
- )
+
+ {item?.HSN}
+ |
+ )
: HsnCode == true && (
-
- {item?.HSN}
- |
- )}
+
+ {item?.HSN}
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
-
- {item?.SalesQty}
- |
- )
+
+ {item?.SalesQty}
+ |
+ )
: Quantity == true && (
-
- {item?.SalesQty}
- |
- )}
+
+ {item?.SalesQty}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
- {item?.MRP}
- |
- )
+
+ {item?.MRP}
+ |
+ )
: MRP == true && (
-
- {item?.SinglePc === 'Y'
- ? item?.Rate
- : item?.MRP}
- |
- )}
+
+ {item?.SinglePc === 'Y'
+ ? item?.Rate
+ : item?.MRP}
+ |
+ )}
{GlobaldummyData
? GlobalRate && (
-
- {item?.Rate}
- |
- )
+
+ {item?.Rate}
+ |
+ )
: Rate == true && (
-
- {item?.Rate}
- |
- )}
+
+ {item?.Rate}
+ |
+ )}
{GlobaldummyData
? GlobalDiscount && {item.discount} |
: Discount == true && (
-
- {item?.Type != 'C'
- ? item?.OfferAmt || 0
- : item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.OfferAmt || 0
+ : item?.OfferValue || 0}
+ |
+ )}
{GlobaldummyData
? GlobalTax && (
-
- {item?.ProdTaxPercentage}
- |
- )
+
+ {item?.ProdTaxPercentage}
+ |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- {item?.ProdTaxPercentage || 0}
- |
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ {item?.ProdTaxPercentage || 0}
+ |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- {item?.TotalAmt}
- |
- )
+
+ {item?.TotalAmt}
+ |
+ )
: Amount == true && (
-
- {item?.Type != 'C'
- ? item?.TotalAmt - item?.OfferAmt || 0
- : item?.TotalAmt - item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.TotalAmt - item?.OfferAmt || 0
+ : item?.TotalAmt - item?.OfferValue || 0}
+ |
+ )}
)
)}
@@ -3236,65 +3237,65 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo && S |
: SLNO == true && (
- S |
- )}
+ S |
+ )}
{GlobaldummyData
? GlobalItem && Item |
: Item == true && Item | }
{GlobaldummyData
? GlobalHsnCode && (
- HSN |
- )
+ HSN |
+ )
: HsnCode == true && (
- HSN |
- )}
+ HSN |
+ )}
{GlobaldummyData
? GlobalQuantity && (
- Qty |
- )
+ Qty |
+ )
: Quantity == true && (
-
- {WeightasKg ? 'Qty/Kg' : 'Qty'}
- |
- )}
+
+ {WeightasKg ? 'Qty/Kg' : 'Qty'}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && MRP |
: MRP == true && (
- MRP |
- )}
+ MRP |
+ )}
{GlobaldummyData
? GlobalRate && (
- Rate |
- )
+ Rate |
+ )
: Rate == true && (
- Rate |
- )}
+ Rate |
+ )}
{GlobaldummyData
? GlobalDiscount && (
- Dis |
- )
+ Dis |
+ )
: Discount == true && (
- Dis |
- )}
+ Dis |
+ )}
{GlobaldummyData
? GlobalTax && (
- Tax % |
- )
+ Tax % |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
- Tax % |
- )}
+ table2Data?.OrderType !== 'E' && (
+ Tax % |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- Amt
- |
- )
+
+ Amt
+ |
+ )
: Amount == true && (
-
- Amt
- |
- )}
+
+ Amt
+ |
+ )}
@@ -3303,148 +3304,148 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalSlNo && (
- |
- {index + 1}
- |
- )
+
+ {index + 1}
+ |
+ )
: SLNO == true && (
-
- {index + 1}
- |
- )}
+
+ {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(',')}
-
- );
- })
- : ''}
-
- |
- )}
+
+ {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}
- |
- )
+
+ {item?.HSN}
+ |
+ )
: HsnCode == true && (
-
- {item?.HSN}
- |
- )}
+
+ {item?.HSN}
+ |
+ )}
{GlobaldummyData
? GlobalQuantity && (
-
- {item?.SalesQty}
- |
- )
+
+ {item?.SalesQty}
+ |
+ )
: Quantity == true && (
-
- {item?.SalesQty}
- |
- )}
+
+ {item?.SalesQty}
+ |
+ )}
{GlobaldummyData
? GlobalMRP && (
-
- {item?.MRP}
- |
- )
+
+ {item?.MRP}
+ |
+ )
: MRP == true && (
-
- {item?.SinglePc === 'Y'
- ? item?.Rate
- : item?.MRP}
- |
- )}
+
+ {item?.SinglePc === 'Y'
+ ? item?.Rate
+ : item?.MRP}
+ |
+ )}
{GlobaldummyData
? GlobalRate && (
-
- {item?.Rate}
- |
- )
+
+ {item?.Rate}
+ |
+ )
: Rate == true && (
-
- {item?.Rate}
- |
- )}
+
+ {item?.Rate}
+ |
+ )}
{GlobaldummyData
? GlobalDiscount && {item.discount} |
: Discount == true && (
-
- {item?.Type != 'C'
- ? item?.OfferAmt || 0
- : item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.OfferAmt || 0
+ : item?.OfferValue || 0}
+ |
+ )}
{GlobaldummyData
? GlobalTax && (
-
- {item?.ProdTaxPercentage}
- |
- )
+
+ {item?.ProdTaxPercentage}
+ |
+ )
: Tax &&
- table2Data?.OrderType !== 'E' && (
-
- {item?.ProdTaxPercentage || 0}
- |
- )}
+ table2Data?.OrderType !== 'E' && (
+
+ {item?.ProdTaxPercentage || 0}
+ |
+ )}
{GlobaldummyData
? GlobalAmount && (
-
- {item?.TotalAmt}
- |
- )
+
+ {item?.TotalAmt}
+ |
+ )
: Amount == true && (
-
- {item?.Type != 'C'
- ? item?.TotalAmt - item?.OfferAmt || 0
- : item?.TotalAmt - item?.OfferValue || 0}
- |
- )}
+
+ {item?.Type != 'C'
+ ? item?.TotalAmt - item?.OfferAmt || 0
+ : item?.TotalAmt - item?.OfferValue || 0}
+ |
+ )}
)
)}
@@ -3469,8 +3470,8 @@ const PrintStyle7 = ({
{GlobaldummyData
? '10'
: Number(
- TotalOfferAmount + table2Data?.OverallDisc
- ).toFixed(2)}
+ TotalOfferAmount + table2Data?.OverallDisc
+ ).toFixed(2)}
)}
@@ -3915,62 +3916,62 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalCredit && (
-
-
Advance Amount:
- Opening Balance:
-
- )
+
+
Advance Amount:
+ Opening Balance:
+
+ )
: CreditDetails &&
- table2Data?.CustomerDetails?.length > 0 && (
-
- {/* OLD CREDIT BAL */}
- {PaymentStatusSuccess?.[0]?.PaymentTypeName === 'Credit' && (
- <>
- {table2Data.CustomerDetails[0].OldCreditBal > 0 ? (
-
- Advance Amount:
- {table2Data.CustomerDetails[0].OldCreditBal}
-
- ) : table2Data.CustomerDetails[0].OldCreditBal < 0 ? (
-
- {' '}
- Opening Balance:{' '}
- {Math.abs(table2Data.CustomerDetails[0].OldCreditBal)}
-
- ) : null}
- >
- )}
+ table2Data?.CustomerDetails?.length > 0 && (
+
+ {/* OLD CREDIT BAL */}
+ {PaymentStatusSuccess?.[0]?.PaymentTypeName === 'Credit' && (
+ <>
+ {table2Data.CustomerDetails[0].OldCreditBal > 0 ? (
+
+ 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}
-
- )}
+ {/* 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}
+
+ )}
{GlobaldummyData && GlobalCashierName && (
{GlobaldummyData
? GlobalQrcodet && (
-
-

-
Scan to Pay
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
+
+

+
Scan to Pay
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
- )
+
+ )
: Qrcodet &&
- paymentTypeUPI && (
-
-
-
Scan to Pay
-
- ₹
- {GlobaldummyData
- ? '1,066'
- : Number(table2Data?.NetAmount).toFixed(2)}
-
+ paymentTypeUPI && (
+
+
+
Scan to Pay
+
+ ₹
+ {GlobaldummyData
+ ? '1,066'
+ : Number(table2Data?.NetAmount).toFixed(2)}
- )}
+
+ )}
)}
@@ -4121,21 +4122,21 @@ const PrintStyle7 = ({
{GlobaldummyData
? GlobalIsnotes && (
-
-
- Notes : 10 days Return policy
-
+
+
+ Notes : 10 days Return policy
+
-
-
- )
+
+
+ )
: Notestext && (
-
+ )}
)}
@@ -4155,136 +4156,136 @@ const PrintStyle7 = ({
>
{GlobaldummyData
? GlobaltermsAndConditions && (
-
+
-
- Terms & Conditions
-
-
- -
- Once goods are sold, they are not exchangeable or
- refundable.
-
- -
- Please check the product before leaving the counter.
-
-
-
- )
+ Terms & Conditions
+
+
+ -
+ Once goods are sold, they are not exchangeable or
+ refundable.
+
+ -
+ Please check the product before leaving the counter.
+
+
+
+ )
: TermsnAdCondition == true &&
- TermsAndConditions?.length > 0 && (
-
0 && (
+
+
-
- Terms & Conditions
-
-
- {TermsAndConditions?.map((item) => (
- -
- {item?.TermsandConditions}
-
- ))}
- {/* - Please check the product before leaving the counter.
*/}
-
-
- )}
+ Terms & Conditions
+
+
+ {TermsAndConditions?.map((item) => (
+ -
+ {item?.TermsandConditions}
+
+ ))}
+ {/* - Please check the product before leaving the counter.
*/}
+
+
+ )}
{GlobaldummyData
? GlobalSignature && (
-
+
-
- Signature
-
-

-
- )
+ Signature
+
+

+
+ )
: Signature == true && (
-
+
-
- Signature
-
-

-
- )}
+ Signature
+
+

+
+ )}
)}