diff --git a/instruction.txt b/instruction.txt index 97256ac..6827acb 100644 --- a/instruction.txt +++ b/instruction.txt @@ -15,7 +15,7 @@ For database: - aws ssm start-session --target i-0c850dcf8b85b1447 --profile kccb - psql -U postgres - \l - - psql -U kmobile_db_owner -d kmobile_banking + - psql -U admin -d kmobile - password : kmobile - SELECT * FROM users; - \x diff --git a/src/app/(main)/accounts/account_statement/accountStatement.tsx b/src/app/(main)/accounts/account_statement/accountStatement.tsx index 7601cb1..19bf314 100644 --- a/src/app/(main)/accounts/account_statement/accountStatement.tsx +++ b/src/app/(main)/accounts/account_statement/accountStatement.tsx @@ -44,7 +44,7 @@ export default function AccountStatementPage() { .then(res => res.json()) .then(data => { if (Array.isArray(data)) { - const last5 = data.slice(-5).reverse(); + const last5 = data.slice(0,5); setTransactions(last5); } }) diff --git a/src/app/(main)/funds_transfer/page.tsx b/src/app/(main)/funds_transfer/page.tsx index 4cf213c..155fe41 100644 --- a/src/app/(main)/funds_transfer/page.tsx +++ b/src/app/(main)/funds_transfer/page.tsx @@ -16,7 +16,7 @@ interface accountData { export default function QuickPay() { const router = useRouter(); - const [bankType, setBankType] = useState("own"); + // const [bankType, setBankType] = useState("own"); const [authorized, setAuthorized] = useState(null); const [accountData, setAccountData] = useState([]); const [selectedAccNo, setSelectedAccNo] = useState(null); @@ -150,7 +150,7 @@ export default function QuickPay() { }; async function handleProceed() { - if (!selectedAccNo || !beneficiaryAcc || !confirmBeneficiaryAcc || !beneficiaryType || !amount ) { + if (!selectedAccNo || !beneficiaryAcc || !confirmBeneficiaryAcc || !beneficiaryType || !amount || !remarks) { notifications.show({ title: "Validation Error", message: "Please fill all required fields", @@ -174,7 +174,6 @@ export default function QuickPay() { color: "red", }); return; - } if (!showOtpField && !showTxnPassword && !showConfirmModel) { @@ -316,14 +315,7 @@ export default function QuickPay() { Quick Pay - - - - - - - {bankType === "own" ? (
@@ -414,6 +406,7 @@ export default function QuickPay() { onChange={(e) => setRemarks(e.currentTarget.value)} // withAsterisk readOnly={showOtpField} + withAsterisk /> @@ -456,11 +449,11 @@ export default function QuickPay() {
- ) : ( + {/* ) : (
- )} + )} */} ); diff --git a/src/app/(main)/funds_transfer/send_beneficiary/page.tsx b/src/app/(main)/funds_transfer/send_beneficiary/page.tsx index 775c239..7830d5b 100644 --- a/src/app/(main)/funds_transfer/send_beneficiary/page.tsx +++ b/src/app/(main)/funds_transfer/send_beneficiary/page.tsx @@ -81,7 +81,7 @@ export default function SendToBeneficiaryOwn() { bankType === 'own' ? ben_acc.stBankName === 'Kangra Central Co-operative Bank' : true) .map((ben_acc) => ({ value: ben_acc.stBenAccountNo, - label: ben_acc.stBenAccountNo, + label: `${ben_acc.stBenAccountNo}-${ben_acc.stBenName}`, })); const handleBeneficiary = (benAcc: string | null) => { @@ -317,7 +317,7 @@ export default function SendToBeneficiaryOwn() { readOnly={isVisibilityLocked} /> - + */} + + ** Book Balance includes uncleared effect. + ** Click on the "Show Balance" to display balance for the Deposit and Loan account. + {/* ** Click on the "Get Statement" to display last 5 transactions. */} + + diff --git a/src/app/image/ib_front.jpg b/src/app/image/ib_front.jpg new file mode 100644 index 0000000..76f44ff Binary files /dev/null and b/src/app/image/ib_front.jpg differ diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 3e8bf23..ce011f3 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -6,7 +6,7 @@ import { Providers } from "@/app/providers"; import { useRouter } from "next/navigation"; import NextImage from "next/image"; import logo from '@/app/image/logo.jpg'; -import frontPage from '@/app/image/ib_front_page.jpg'; +import frontPage from '@/app/image/ib_front.jpg'; import dynamic from 'next/dynamic'; import { generateCaptcha } from '@/app/captcha'; @@ -163,7 +163,9 @@ export default function Login() { {/* Main */}
Security Notes : When you Login, Your User Id and Password travels in an encrypted and highly secured mode. For more information on Products and Services, Please Visit - http://www.kccb.in/ + http://www.kccb.in/ {/* Footer */}