Skip to content

Commit

Permalink
don't send email when invoice is marked as paid
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Oct 27, 2021
1 parent 8da3b2b commit 1f0b9e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/Listeners/Document/SendDocumentPaymentNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ public function handle(Event $event)
return;
}

if (!empty($event->request['mark_paid'])) {
return;
}

$document = $event->document;
$transaction = $document->transactions()->latest()->first();

Expand Down

0 comments on commit 1f0b9e9

Please sign in to comment.