diff --git a/app/DataMapper/FeesAndLimits.php b/app/DataMapper/FeesAndLimits.php index ecb51cc0130f..922a6cb486c1 100644 --- a/app/DataMapper/FeesAndLimits.php +++ b/app/DataMapper/FeesAndLimits.php @@ -37,9 +37,12 @@ class FeesAndLimits public $adjust_fee_percent = false; + public $is_enabled = true; + //public $gateway_type_id = 1; public static $casts = [ + 'is_enabled' => 'bool', 'gateway_type_id' => 'int', 'min_limit' => 'float', 'max_limit' => 'float', diff --git a/app/Jobs/Util/ReminderJob.php b/app/Jobs/Util/ReminderJob.php index ea72979d617d..f6f53f176229 100644 --- a/app/Jobs/Util/ReminderJob.php +++ b/app/Jobs/Util/ReminderJob.php @@ -58,7 +58,7 @@ class ReminderJob implements ShouldQueue Invoice::where('next_send_date', Carbon::today()->format('Y-m-d'))->with('invitations')->cursor()->each(function ($invoice) { if ($invoice->isPayable()) { $reminder_template = $invoice->calculateTemplate('invoice'); - $invoice->service()->touchReminder($this->reminder_template)->save(); + $invoice->service()->touchReminder($reminder_template)->save(); $invoice->invitations->each(function ($invitation) use ($invoice, $reminder_template) { EmailEntity::dispatch($invitation, $invitation->company, $reminder_template);