feat: added daily limit feature
This commit is contained in:
@@ -6,11 +6,12 @@ const recordIntraBankTransaction = async (
|
||||
toAccount,
|
||||
accountType,
|
||||
amount,
|
||||
status
|
||||
status,
|
||||
clientType
|
||||
) => {
|
||||
const trxType = 'TRF';
|
||||
const query =
|
||||
'INSERT INTO transactions (customer_no, trx_type, from_account, to_account, to_account_type, amount, status) VALUES ($1, $2, $3, $4, $5, $6, $7)';
|
||||
'INSERT INTO transactions (customer_no, trx_type, from_account, to_account, to_account_type, amount, status, client) VALUES ($1, $2, $3, $4, $5, $6, $7, $8)';
|
||||
await db.query(query, [
|
||||
customerNo,
|
||||
trxType,
|
||||
@@ -19,6 +20,7 @@ const recordIntraBankTransaction = async (
|
||||
accountType,
|
||||
amount,
|
||||
status,
|
||||
clientType,
|
||||
]);
|
||||
};
|
||||
const recordInterBankTransaction = async (
|
||||
@@ -31,10 +33,11 @@ const recordInterBankTransaction = async (
|
||||
commission,
|
||||
beneficiaryName,
|
||||
remitterName,
|
||||
status
|
||||
status,
|
||||
clientType
|
||||
) => {
|
||||
const query =
|
||||
'INSERT INTO transactions (customer_no, trx_type, from_account, to_account, ifsc_code, amount, commission, beneficiary_name, remitter_name, status) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)';
|
||||
'INSERT INTO transactions (customer_no, trx_type, from_account, to_account, ifsc_code, amount, commission, beneficiary_name, remitter_name, status, client) VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)';
|
||||
await db.query(query, [
|
||||
customerNo,
|
||||
trxType,
|
||||
@@ -46,6 +49,7 @@ const recordInterBankTransaction = async (
|
||||
beneficiaryName,
|
||||
remitterName,
|
||||
status,
|
||||
clientType,
|
||||
]);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user