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 <txid>#<rupee_amt>
This commit is contained in:
sairajzero 2022-06-04 02:56:36 +05:30
parent fddaecd022
commit 42c8670d3f

View File

@ -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');