added remarks in normal branch transfer
This commit is contained in:
@@ -8,14 +8,15 @@ const router = express.Router();
|
|||||||
router.use(passwordValidator, transferValidator);
|
router.use(passwordValidator, transferValidator);
|
||||||
|
|
||||||
const transferRoute = async (req, res) => {
|
const transferRoute = async (req, res) => {
|
||||||
const { fromAccount, toAccount, toAccountType, amount } = req.body;
|
const { fromAccount, toAccount, toAccountType, amount, remarks } = req.body;
|
||||||
try {
|
try {
|
||||||
const result = await transferController.transfer(
|
const result = await transferController.transfer(
|
||||||
fromAccount,
|
fromAccount,
|
||||||
toAccount,
|
toAccount,
|
||||||
toAccountType,
|
toAccountType,
|
||||||
amount,
|
amount,
|
||||||
req.user
|
req.user,
|
||||||
|
remarks
|
||||||
);
|
);
|
||||||
|
|
||||||
if (result.status === 'O.K.') {
|
if (result.status === 'O.K.') {
|
||||||
|
|||||||
Reference in New Issue
Block a user