fix:only show dividends where qty > 0

This commit is contained in:
hackerESQ
2024-10-20 13:28:40 -05:00
parent bf8478a43f
commit 318f8dd940
+2 -1
View File
@@ -102,7 +102,8 @@ class Holding extends Model
->from('transactions')
->whereRaw("transactions.portfolio_id = '$this->portfolio_id'")
->whereRaw("transactions.symbol = '$this->symbol'");
});
})
->having('total_received', '>', 0);
}
/**