Fix #229 Sales setup based Customer previous bill fetch
This commit is contained in:
parent
127b64e749
commit
4faebbafeb
|
|
@ -2607,6 +2607,7 @@ const ThemeSlice = createSlice({
|
||||||
'UnpaidBill',
|
'UnpaidBill',
|
||||||
'OverallBackground',
|
'OverallBackground',
|
||||||
'CreditCustomer',
|
'CreditCustomer',
|
||||||
|
'PreviousBillFetch'
|
||||||
];
|
];
|
||||||
const bookingBillingOptionsArray = tempDic['BookingBilling'][1];
|
const bookingBillingOptionsArray = tempDic['BookingBilling'][1];
|
||||||
const sortedBillingOptions = desiredOrder
|
const sortedBillingOptions = desiredOrder
|
||||||
|
|
|
||||||
|
|
@ -3859,7 +3859,8 @@ export default function BST1Payment() {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -4178,7 +4178,8 @@ const BSBillingTable2 = () => {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -3809,7 +3809,8 @@ const BSBillingTable3Pay = () => {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -3920,7 +3920,8 @@ const BSBilling4Payment = () => {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -4163,7 +4163,8 @@ const BSBillingTable5 = () => {
|
||||||
''
|
''
|
||||||
)}
|
)}
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -4152,7 +4152,8 @@ const BST6Payment = () => {
|
||||||
''
|
''
|
||||||
)}
|
)}
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -3651,7 +3651,8 @@ const BSBilling7Payment = () => {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -3525,7 +3525,8 @@ const StandardTablePayment = () => {
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -4403,7 +4403,8 @@ const BSC1Payment = (props) => {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
{/* Customer Orders */}
|
{/* Customer Orders */}
|
||||||
{SelCustId && (
|
{(SelCustId && tableOptions?.filter((item) => item.OptionName === 'PreviousBillFetch')
|
||||||
|
.length === 1) && (
|
||||||
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
<Tooltip title="Customer Orders" isMobile={isMobile}>
|
||||||
{' '}
|
{' '}
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
|
|
@ -144,7 +144,7 @@ input::-webkit-inner-spin-button {
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 0.2rem;
|
gap: 0.2rem;
|
||||||
background-color: #dbdbdb;
|
background-color: #dbdbdb;
|
||||||
font-family: "Poppins", sans-serif;
|
font-family: 'Poppins', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.payment-div-0-userplus {
|
.payment-div-0-userplus {
|
||||||
|
|
@ -243,6 +243,7 @@ input::-webkit-inner-spin-button {
|
||||||
background-color: var(--DEFAULT_SELECTED_COLOR);
|
background-color: var(--DEFAULT_SELECTED_COLOR);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
border: none;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
border-radius: 7.2px;
|
border-radius: 7.2px;
|
||||||
|
|
@ -251,17 +252,20 @@ input::-webkit-inner-spin-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.2rem;
|
gap: 0.2rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-family: "Poppins";
|
font-family: 'Poppins';
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.Btn-payment-mode {
|
.Btn-payment-mode {
|
||||||
background-color: var(--SELECTED_COLOR);
|
background-color: var(--SELECTED_COLOR);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
border: none;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
outline: none;
|
||||||
width: 75px;
|
width: 75px;
|
||||||
border-radius: 7.2px;
|
border-radius: 7.2px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
@ -269,8 +273,9 @@ input::-webkit-inner-spin-button {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 0.2rem;
|
gap: 0.2rem;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-family: "Poppins";
|
font-family: 'Poppins';
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -205,8 +205,9 @@ input::-webkit-inner-spin-button {
|
||||||
.Btn-payment-mode {
|
.Btn-payment-mode {
|
||||||
background-color: var(--SELECTED_COLOR);
|
background-color: var(--SELECTED_COLOR);
|
||||||
font-size: 13px !important;
|
font-size: 13px !important;
|
||||||
font-weight: 500;
|
font-weight: 500;border: none;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
outline: none;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: max-content !important;
|
width: max-content !important;
|
||||||
|
|
@ -242,6 +243,7 @@ input::-webkit-inner-spin-button {
|
||||||
background-color: var(--DEFAULT_SELECTED_COLOR);
|
background-color: var(--DEFAULT_SELECTED_COLOR);
|
||||||
font-size: 13px !important;
|
font-size: 13px !important;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
outline: none;border: none;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
width: max-content !important;
|
width: max-content !important;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@
|
||||||
.Btn-payment-mode {
|
.Btn-payment-mode {
|
||||||
background-color: var(--SELECTED_COLOR);
|
background-color: var(--SELECTED_COLOR);
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
outline: none;border: none;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
@ -126,6 +127,8 @@
|
||||||
background-color: var(--DEFAULT_SELECTED_COLOR);
|
background-color: var(--DEFAULT_SELECTED_COLOR);
|
||||||
color: rgb(255, 255, 255);
|
color: rgb(255, 255, 255);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
outline: none;
|
||||||
|
border: none;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue