diff --git a/app/Models/Credit.php b/app/Models/Credit.php index f62d48ea0..064c80833 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 830ab1de0..bff169918 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 d91070452..b028e3e3e 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 4fbcddbcb..822da29ff 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()