Commit 2bb17e1c authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent f37d3fd2
...@@ -34,9 +34,9 @@ let arrNew=[] ...@@ -34,9 +34,9 @@ let arrNew=[]
sums = sums + parseFloat(arr[j].profit) sums = sums + parseFloat(arr[j].profit)
if (arrNew.length ===0) if (arrNew.length ===0)
arrNew.push({sum: sums, index: i}) arrNew.push({sum: sums, index: i,date:arr[j].date})
else if (arrNew[arrNew.length-1].sum > sums) else if (arrNew[arrNew.length-1].sum > sums)
arrNew.push({sum: sums, index: i}) arrNew.push({sum: sums, index: i,date:arr[j].date})
} }
...@@ -45,8 +45,8 @@ let arrNew=[] ...@@ -45,8 +45,8 @@ let arrNew=[]
arrNew = _.orderBy(arrNew, ['sum']) arrNew = _.orderBy(arrNew, ['sum'])
console.log(arr) console.log(arr)
console.log('Balance ->',balance) console.log('Balance ->',balance)
console.log('Max reserve ->',arrNew[0].sum) console.log('Max reserve ->',arrNew[0].sum,'date ->',arrNew[0].date)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment