File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
frontend/src/features/settings/pages
vehicles/src/modules/credit-account Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,12 @@ export const ViewCreditAccount = ({
9494 permissionMatrixFunctionKey :
9595 "VIEW_CREDIT_ACCOUNT_INFO_BANNER_ACCOUNT_HOLDER" ,
9696 } }
97- additionalConditionToCheck = { ( ) => isAccountHolder }
97+ additionalConditionToCheck = { ( ) =>
98+ isAccountHolder &&
99+ ( ! creditAccount ?. isVerified ||
100+ creditAccount ?. creditAccountStatusType !==
101+ CREDIT_ACCOUNT_STATUS_TYPE . ACTIVE )
102+ }
98103 />
99104 </ Box >
100105 < RenderIf
Original file line number Diff line number Diff line change @@ -1406,6 +1406,7 @@ export class CreditAccountService {
14061406 // If it's a REFUND transaction but the account is not closed, return the account ID
14071407 return creditAccount ;
14081408 } else if (
1409+ creditAccount ?. company ?. isSuspended ||
14091410 // Check if the credit account is not verified, or is not active
14101411 ! creditAccount ?. isVerified ||
14111412 creditAccount ?. creditAccountStatusType !==
You can’t perform that action at this time.
0 commit comments