fix:only show dividends where qty > 0
This commit is contained in:
@@ -102,7 +102,8 @@ class Holding extends Model
|
|||||||
->from('transactions')
|
->from('transactions')
|
||||||
->whereRaw("transactions.portfolio_id = '$this->portfolio_id'")
|
->whereRaw("transactions.portfolio_id = '$this->portfolio_id'")
|
||||||
->whereRaw("transactions.symbol = '$this->symbol'");
|
->whereRaw("transactions.symbol = '$this->symbol'");
|
||||||
});
|
})
|
||||||
|
->having('total_received', '>', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user