From 42c8670d3fb3b6374dd9c76abdd6e1875adedc41 Mon Sep 17 00:00:00 2001 From: sairajzero Date: Sat, 4 Jun 2022 02:56:36 +0530 Subject: [PATCH] Note when min-FLO is converted - When the cashier converts some rupee to FLO ( when user min-FLO balance is low), Appends (to note) the actual token (rupee) amount sent - ie, note for those requests will be # --- scripts/fn_ui.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/fn_ui.js b/scripts/fn_ui.js index 51e4236..c546955 100644 --- a/scripts/fn_ui.js +++ b/scripts/fn_ui.js @@ -427,7 +427,8 @@ function confirmTopUp(button) { } User.sendToken(senderID, tokenAmt, 'for cash-to-token', { sendAmt: floAmt }).then(txid => { console.warn(`${amount} (${tokenAmt}|${floAmt}) cash-to-token for ${senderID}`, txid); - Cashier.finishRequest(floGlobals.cashierProcessingRequest, txid).then(result => { + let note = txid + (tokenAmt === amount ? '' : `#${tokenAmt}`); + Cashier.finishRequest(floGlobals.cashierProcessingRequest, note).then(result => { console.log(result); console.info('Completed cash-to-token request:', vectorClock); notify("Completed request", 'success');