chequemanagement #1

This commit is contained in:
2025-12-24 18:06:12 +05:30
parent 72a2c56392
commit 07d5ea8fbe
7 changed files with 565 additions and 67 deletions

View File

@@ -8,6 +8,7 @@ import 'package:kmobile/features/accounts/screens/account_statement_screen.dart'
import 'package:kmobile/features/accounts/screens/all_accounts_screen.dart';
import 'package:kmobile/features/auth/controllers/auth_cubit.dart';
import 'package:kmobile/features/auth/controllers/auth_state.dart';
import 'package:kmobile/features/cheque/screens/cheque_management_screen.dart';
import 'package:kmobile/features/customer_info/screens/customer_info_screen.dart';
import 'package:kmobile/features/beneficiaries/screens/manage_beneficiaries_screen.dart';
import 'package:kmobile/features/enquiry/screens/enquiry_screen.dart';
@@ -443,7 +444,8 @@ class _DashboardScreenState extends State<DashboardScreen>
final accountType = currAccount.accountType?.toLowerCase();
final isPaymentDisabled = accountType != 'sa' &&
accountType != 'sb' &&
accountType != 'ca';
accountType != 'ca' &&
accountType != 'cc';
// firsttime load
if (!_txInitialized) {
_txInitialized = true;
@@ -643,20 +645,20 @@ class _DashboardScreenState extends State<DashboardScreen>
const EnquiryScreen()));
}),
_buildQuickLink(
Symbols.person,
AppLocalizations.of(context).profile,
Symbols.checkbook,
AppLocalizations.of(context).chequeManagement,
() {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ProfileScreen(
mobileNumber: mobileNumberToPass,
customerNo: customerNo,
customerName: customerName),
builder: (context) => ChequeManagementScreen(
users: users,
selectedIndex: selectedAccountIndex
),
),
);
},
disable: false,
disable: isPaymentDisabled,
),
],
),