diff --git a/app/Models/Credit.php b/app/Models/Credit.php index f62d48ea098f..064c808337a2 100644 --- a/app/Models/Credit.php +++ b/app/Models/Credit.php @@ -130,7 +130,7 @@ class Credit extends BaseModel public function activities() { - return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(300); + return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(50); } public function company() diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 830ab1de081e..bff169918327 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -206,7 +206,7 @@ class Invoice extends BaseModel public function activities() { - return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(300); + return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(50); } public function history() diff --git a/app/Models/Quote.php b/app/Models/Quote.php index d91070452158..b028e3e3e39d 100644 --- a/app/Models/Quote.php +++ b/app/Models/Quote.php @@ -128,7 +128,7 @@ class Quote extends BaseModel public function activities() { - return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(300); + return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(50); } public function user() diff --git a/app/Models/RecurringInvoice.php b/app/Models/RecurringInvoice.php index 4fbcddbcb75c..822da29ff311 100644 --- a/app/Models/RecurringInvoice.php +++ b/app/Models/RecurringInvoice.php @@ -159,7 +159,7 @@ class RecurringInvoice extends BaseModel public function activities() { - return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(300); + return $this->hasMany(Activity::class)->orderBy('id', 'DESC')->take(50); } public function history()