Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Mar 21, 2024
1 parent d89ec3d commit 03ea40a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@ public function partiallyPaid(): bool
*/
public function payable(): bool
{
return $this->getTotalPayable() > 0 && ! $this->paid();
return in_array($this->status, [static::ON_HOLD, static::CANCELLED])
&& $this->getTotalPayable() > 0
&& ! $this->paid();
}

/**
Expand Down

0 comments on commit 03ea40a

Please sign in to comment.