tracer.printf("Reducing balances by %s because postdate of %s/%s(%s) is past statement date",(split.shares()*factor).formatMoney("",2).local8Bit().data(),(*it).first.id().local8Bit().data(),split.id().local8Bit().data(),(*it).first.postDate().toString(Qt::ISODate).local8Bit().data());
tracer.printf("Reducing balances by %s because postdate of %s/%s(%s) is past statement date",(split.shares()*factor).formatMoney("",2).local8Bit().data(),(*it).first.id().local8Bit().data(),split.id().local8Bit().data(),(*it).first.postDate().toString(TQt::ISODate).local8Bit().data());
endBalance-=split.shares()*factor;
endBalance-=split.shares()*factor;
startBalance-=split.shares()*factor;
startBalance-=split.shares()*factor;
}else{
}else{
switch(split.reconcileFlag()){
switch(split.reconcileFlag()){
caseMyMoneySplit::NotReconciled:
caseMyMoneySplit::NotReconciled:
tracer.printf("Reducing balances by %s because %s/%s(%s) is not reconciled",(split.shares()*factor).formatMoney("",2).local8Bit().data(),(*it).first.id().local8Bit().data(),split.id().local8Bit().data(),(*it).first.postDate().toString(Qt::ISODate).local8Bit().data());
tracer.printf("Reducing balances by %s because %s/%s(%s) is not reconciled",(split.shares()*factor).formatMoney("",2).local8Bit().data(),(*it).first.id().local8Bit().data(),split.id().local8Bit().data(),(*it).first.postDate().toString(TQt::ISODate).local8Bit().data());
endBalance-=split.shares()*factor;
endBalance-=split.shares()*factor;
startBalance-=split.shares()*factor;
startBalance-=split.shares()*factor;
break;
break;
caseMyMoneySplit::Cleared:
caseMyMoneySplit::Cleared:
tracer.printf("Reducing start balance by %s because %s/%s(%s) is cleared",(split.shares()*factor).formatMoney("",2).local8Bit().data(),(*it).first.id().local8Bit().data(),split.id().local8Bit().data(),(*it).first.postDate().toString(Qt::ISODate).local8Bit().data());
tracer.printf("Reducing start balance by %s because %s/%s(%s) is cleared",(split.shares()*factor).formatMoney("",2).local8Bit().data(),(*it).first.id().local8Bit().data(),split.id().local8Bit().data(),(*it).first.postDate().toString(TQt::ISODate).local8Bit().data());
tracer.printf("Reducing cleared balance by %s because %s/%s(%s) is not reconciled",(split.shares()*factor).formatMoney("",2).local8Bit().data(),t->transaction().id().local8Bit().data(),split.id().local8Bit().data(),t->transaction().postDate().toString(Qt::ISODate).local8Bit().data());
tracer.printf("Reducing cleared balance by %s because %s/%s(%s) is not reconciled",(split.shares()*factor).formatMoney("",2).local8Bit().data(),t->transaction().id().local8Bit().data(),split.id().local8Bit().data(),t->transaction().postDate().toString(TQt::ISODate).local8Bit().data());
tracer.printf("Reducing cleared balance by %s because we are in reconciliation, %s/%s(%s)'s date is after or on reconciliation date (%s) and is cleared",(split.shares()*factor).formatMoney("",2).local8Bit().data(),t->transaction().id().local8Bit().data(),split.id().local8Bit().data(),t->transaction().postDate().toString(Qt::ISODate).local8Bit().data(),reconciliationDate.toString(Qt::ISODate).local8Bit().data());
tracer.printf("Reducing cleared balance by %s because we are in reconciliation, %s/%s(%s)'s date is after or on reconciliation date (%s) and is cleared",(split.shares()*factor).formatMoney("",2).local8Bit().data(),t->transaction().id().local8Bit().data(),split.id().local8Bit().data(),t->transaction().postDate().toString(TQt::ISODate).local8Bit().data(),reconciliationDate.toString(TQt::ISODate).local8Bit().data());
tracer.printf("Reducing actual balance by %s because %s/%s(%s) is in the future",(split.shares()*factor).formatMoney("",2).local8Bit().data(),t->transaction().id().local8Bit().data(),split.id().local8Bit().data(),t->transaction().postDate().toString(Qt::ISODate).local8Bit().data());
tracer.printf("Reducing actual balance by %s because %s/%s(%s) is in the future",(split.shares()*factor).formatMoney("",2).local8Bit().data(),t->transaction().id().local8Bit().data(),split.id().local8Bit().data(),t->transaction().postDate().toString(TQt::ISODate).local8Bit().data());