Commit b67ff7d6 authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent c6244d88
...@@ -99,10 +99,7 @@ async function run() { ...@@ -99,10 +99,7 @@ async function run() {
arr = _.orderBy(arr, ['date']) arr = _.orderBy(arr, ['date'])
for (let i = 0; i < arr.length; i++) {
balance = balance + arr[i].profit
arr[i].balance = balance
}
let arrNew = [] let arrNew = []
for (let i = 0; i < arr.length; i++) { for (let i = 0; i < arr.length; i++) {
let sums = 0 let sums = 0
...@@ -142,7 +139,11 @@ async function run() { ...@@ -142,7 +139,11 @@ async function run() {
} }
arrDate = _.orderBy(arrDate, ['sum']) arrDate = _.orderBy(arrDate, ['sum'])
// balance=lastBalance balance=lastBalance
for (let i = 0; i < arr.length; i++) {
balance = balance + arr[i].profit
arr[i].balance = balance
}
// for (let i = 0; i < dates.length; i++) { // for (let i = 0; i < dates.length; i++) {
// balance = balance + dates[i].profit // balance = balance + dates[i].profit
// dates[i].balance = balance // dates[i].balance = balance
......
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