From 4faebbafebf8b5387475fef6f31d8dcf30b6676f Mon Sep 17 00:00:00 2001 From: karthikalakshmi Date: Wed, 4 Mar 2026 15:07:33 +0530 Subject: [PATCH] Fix #229 Sales setup based Customer previous bill fetch --- src/Features/ThemeChange/ThemeChange.js | 1 + .../BSBillingTables/BSBillingTable1/BST1Payment.jsx | 3 ++- .../BSBillingTable2/BSBillingTable2.jsx | 3 ++- .../BSBillingTable3/BSBillingTable3pay.jsx | 3 ++- .../BSBillingTable4/BSBilling4Payment.jsx | 3 ++- .../BSBillingTable5/BSBillingTable5.jsx | 3 ++- .../BSBillingTables/BSBillingTable6/BST6Payment.jsx | 3 ++- .../BSBillingTable7/BSBilling7Payment.jsx | 3 ++- .../StandardTable/StandardTablePayment.jsx | 3 ++- .../BookingScreen/Components/BSCombo/BSC1Payment.jsx | 3 ++- .../BSBillingTables/BSBillingTable1/BSBPayment.scss | 11 ++++++++--- .../BSBillingTables/BSBillingTable6/BST6Payment.scss | 4 +++- .../BSBillingTables3/BSBillingTable3.scss | 3 +++ 13 files changed, 33 insertions(+), 13 deletions(-) diff --git a/src/Features/ThemeChange/ThemeChange.js b/src/Features/ThemeChange/ThemeChange.js index 2acb6a0..44bc209 100644 --- a/src/Features/ThemeChange/ThemeChange.js +++ b/src/Features/ThemeChange/ThemeChange.js @@ -2607,6 +2607,7 @@ const ThemeSlice = createSlice({ 'UnpaidBill', 'OverallBackground', 'CreditCustomer', + 'PreviousBillFetch' ]; const bookingBillingOptionsArray = tempDic['BookingBilling'][1]; const sortedBillingOptions = desiredOrder diff --git a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx index adb7a6b..8a51da2 100644 --- a/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx +++ b/src/Pages/BookingScreen/Components/BSBillingTables/BSBillingTable1/BST1Payment.jsx @@ -3859,7 +3859,8 @@ export default function BST1Payment() { )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{ )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{
)} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{ )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{ '' )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{ '' )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{ )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{ )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}
{ )} {/* Customer Orders */} - {SelCustId && ( + {(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch') + .length === 1) && ( {' '}