|
@@ -579,7 +579,7 @@ def payment_changed(sender, instance, created, **kwargs):
|
|
|
|
|
|
# If this payment is related to a member, update the accounting for
|
|
# If this payment is related to a member, update the accounting for
|
|
# this member
|
|
# this member
|
|
- if (created or instance.amount_not_allocated != 0) \
|
|
|
|
|
|
+ if (created or instance.amount_not_allocated() != 0) \
|
|
and (instance.member is not None):
|
|
and (instance.member is not None):
|
|
update_accounting_for_member(instance.member)
|
|
update_accounting_for_member(instance.member)
|
|
|
|
|