From d6b58fe5b8bd83ee4b96960b0e6407ded3b62e06 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 6 Jul 2020 14:12:04 +1000 Subject: [PATCH] Fixes for testS --- app/Services/Invoice/TriggeredActions.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/Services/Invoice/TriggeredActions.php b/app/Services/Invoice/TriggeredActions.php index 3253fefec437..5d1d53b7c200 100644 --- a/app/Services/Invoice/TriggeredActions.php +++ b/app/Services/Invoice/TriggeredActions.php @@ -44,17 +44,19 @@ class TriggeredActions extends AbstractService { //the request may have buried in it additional actions we should automatically perform on the invoice - if($request->has('send_email')) { + if($this->request->has('send_email')) { } - if($request->has('auto_bill')) { + if($this->request->has('auto_bill')) { } - if($request->has('paid')) { + if($this->request->has('paid')) { } + + return $this->invoice; } private function sendEmail()