@@ 328,7 328,7 @@ command :execute?, node: "buy-credit", sessionid: nil do |iq|
form.fields = [
{
type: "fixed",
- value: "Current balance: $#{balance.to_s('F')}"
+ value: "Current balance: $#{'%.2f' % balance}"
},
({
var: "payment_method",
@@ 387,7 387,7 @@ command :execute?, node: "buy-credit", sessionid: nil do |iq|
reply2.status = :completed
note = reply2.note
note[:type] = :info
- note.content = "$#{amount.to_s('F')} added to your account balance."
+ note.content = "$#{'%.2f' % amount} added to your account balance."
command_reply_and_done(reply2)
}.catch { |e|