~singpolyma/sgx-jmp

2de0c4287229e3427fe1742d42cac584bf71d3c0 — Stephen Paul Weber 3 years ago 9dd19f4
Always show money with two decimal places
1 files changed, 2 insertions(+), 2 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +2 -2
@@ 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|