Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

[FIX] History: show price for orders (RT-1385) #2409

Merged
merged 1 commit into from
May 11, 2015

Conversation

darkdarkdragon
Copy link
Contributor

In history for orders show price in format
prce: x CURRENCY per CURRENCY (like
"You sold .002046 BTC for 51.15048 XRP (price: 25,000 XRP per BTC)")

@mrajvanshy
Copy link
Contributor

LGTM

@mrajvanshy
Copy link
Contributor

@darkdarkdragon please rebase

@darkdarkdragon darkdarkdragon force-pushed the develop-RT-1385 branch 2 times, most recently from 5460719 to fa9bb09 Compare April 21, 2015 02:18
span(rp-span-spacing) :
strong(rp-address-popover, rp-address-popover-sum="effect.invStraightPrice") {{effect.invStraightPrice | rpamount:{abs_precision: 6} }}
span {{ effect.pays | rpcurrency }}
| per
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Localizable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad

@darkdarkdragon darkdarkdragon force-pushed the develop-RT-1385 branch 2 times, most recently from 1ecd532 to 2d74359 Compare April 24, 2015 01:31
In history for orders show price in format
prce: x CURRENCY per CURRENCY (like
"You sold .002046 BTC for 51.15048 XRP (price: 25,000 XRP per BTC)")
@yongsoo
Copy link
Contributor

yongsoo commented Apr 28, 2015

@vhpoet Please look at changes to json rewriter.

@@ -26,6 +26,30 @@ var getPrice = function(effect, referenceDate) {
return price || 0;
};

var getStraightPrice = function(effect, referenceDate) {
var g = effect.got ? effect.got : effect.gets;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var g = effect.got ? effect.got : effect.gets
is the same as
var g = effect.got || effect.gets

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! I tend to forget that notation :)

@vhpoet
Copy link
Contributor

vhpoet commented May 11, 2015

LGTM

mrajvanshy added a commit that referenced this pull request May 11, 2015
[FIX] History: show price for orders (RT-1385)
@mrajvanshy mrajvanshy merged commit 53acb3a into ripple:develop May 11, 2015
@darkdarkdragon darkdarkdragon deleted the develop-RT-1385 branch May 30, 2015 00:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants