Temporarily stubbed out an inaccurate assert
This commit is contained in:
parent
e97b59b006
commit
49f5465adb
3 changed files with 13 additions and 3 deletions
|
|
@ -1062,8 +1062,10 @@ void amount_t::print(std::ostream& _out) const
|
||||||
bool amount_t::valid() const
|
bool amount_t::valid() const
|
||||||
{
|
{
|
||||||
if (quantity) {
|
if (quantity) {
|
||||||
if (! quantity->valid())
|
if (! quantity->valid()) {
|
||||||
|
DEBUG("ledger.validate", "amount_t: ! quantity->valid()");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (quantity->ref == 0) {
|
if (quantity->ref == 0) {
|
||||||
DEBUG("ledger.validate", "amount_t: quantity->ref == 0");
|
DEBUG("ledger.validate", "amount_t: quantity->ref == 0");
|
||||||
|
|
|
||||||
|
|
@ -511,8 +511,10 @@ public:
|
||||||
|
|
||||||
bool valid() const {
|
bool valid() const {
|
||||||
foreach (const amounts_map::value_type& pair, amounts)
|
foreach (const amounts_map::value_type& pair, amounts)
|
||||||
if (! pair.second.valid())
|
if (! pair.second.valid()) {
|
||||||
|
DEBUG("ledger.validate", "balance_t: ! pair.second.valid()");
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,13 @@ class period_xact_t : public xact_base_t
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool valid() const {
|
virtual bool valid() const {
|
||||||
return period.is_valid();
|
#if 0
|
||||||
|
if (! period.is_valid()) {
|
||||||
|
DEBUG("ledger.validate", "period_xact_t: ! period.is_valid()");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue