fix delete transaction flow

This commit is contained in:
hackerESQ
2024-08-30 20:58:00 -05:00
parent b13bb198d3
commit 2a42ce9d12
7 changed files with 109 additions and 66 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ class Holding extends Model
*/
public function transactions()
{
return $this->hasManyThrough(Transaction::class, Portfolio::class, 'id', 'portfolio_id', 'portfolio_id', 'id');
return $this->hasManyThrough(Transaction::class, Portfolio::class, 'id', 'portfolio_id', 'portfolio_id', 'id')->orderBy('date', 'DESC');
}
/**