Permalink
Browse files

only check if the amount > 0

  • Loading branch information...
1 parent 2313241 commit 8d558599efcc193bb765dfe0bf2c74ade8fb671f @lestrrat lestrrat committed Apr 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/Pixis-Plugin-Event/lib/Pixis/API/Event.pm
@@ -197,7 +197,7 @@ sub get_registration_status {
my $order = Pixis::Registry->get(api => 'Order')->find($row->order_id);
if ($order) {
- if ($order->is_pending_accept || $order->is_pending_credit_check || $order->is_init) {
+ if ($order->amount > 0 && ($order->is_pending_accept || $order->is_pending_credit_check || $order->is_init)) {
return -1; # registered, but unpaid
} elsif ($order->is_done) {
return 1;

0 comments on commit 8d55859

Please sign in to comment.