Created
August 1, 2014 02:58
-
-
Save zoonooz/1c825a62f834f85a4e53 to your computer and use it in GitHub Desktop.
script to show the sum of revenue in the month. Pass it in console at sell report page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sum = 0; | |
$('.mdCMN18Total').each(function(element){ | |
var str = $(this).html(); | |
var money = str.split(" ")[1]; | |
sum += parseInt(money); | |
}); | |
console.log(sum) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment