diff --git a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle8.jsx b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle8.jsx
index 5bd9c09..0d62bd5 100644
--- a/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle8.jsx
+++ b/src/Pages/BookingScreen/PrintTemplates/ThermalPrinter/PrintStyle8.jsx
@@ -115,7 +115,8 @@ const Printstyle8 = ({
)?.SettingValue === 'Y';
const estimateTitle =
SettingData?.[0]?.SettingDtlDetails?.find(
- (setting) => setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
+ (setting) =>
+ setting?.SettingIdName?.toLowerCase() === 'estimatetitle'
)?.SettingValue === 'Y';
const bookingTypePreference = appPreferences?.find(
(preference) => preference?.PreferredCatName === 'Booking Type'
@@ -386,8 +387,8 @@ const Printstyle8 = ({
flexDirection: 'column',
justifyContent:
chunkIndex === paginatedChunks.length - 1 &&
- !shouldFooterBeOnNewPage &&
- FormatTheme
+ !shouldFooterBeOnNewPage &&
+ FormatTheme
? 'space-between'
: '',
height: isMobile
@@ -436,7 +437,7 @@ const Printstyle8 = ({
/>
) : null}
{base64Image &&
- (PrintLogo?.SettingValue === 'Y' || LogoField) ? (
+ (PrintLogo?.SettingValue === 'Y' || LogoField) ? (
Advance Amount: {table2Data.CustomerDetails[0].OldCreditBal} @@ -1844,26 +1862,26 @@ const Printstyle8 = ({ > )} - {/* 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 -
--
- Signature -
--
- Signature -
-Advance Amount: {table2Data.CustomerDetails[0].OldCreditBal} @@ -2840,26 +2856,26 @@ const Printstyle8 = ({ > )} - {/* 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 -
--
- Signature -
--
- Signature -
-- Advance Amount: - {table2Data.CustomerDetails[0].OldCreditBal} -
- ) : table2Data.CustomerDetails[0].OldCreditBal < 0 ? ( -- {' '} - Opening Balance:{' '} - {Math.abs(table2Data.CustomerDetails[0].OldCreditBal)} -
- ) : null} - > - )} + table2Data?.CustomerDetails?.length > 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 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 -
--
- Signature -
--
- Signature -
-