);
}
=head3 is_guarantor
Returns true if the patron is a guarantor.
=cut
sub is_guarantor {
my ($self) = @_;
return $self->guarantee_relationships()->count()
=head3 relationships_debt
Returns the amount owed by the patron's guarantors *and* the other guarantees of those guarantors
foreach my $guarantor (@guarantors) {
if ( ( $op eq 'cud-save' || $op eq 'cud-insert' ) && ($guarantor->is_child ) || $guarantor->is_guarantee) {
if ( ( $op eq 'cud-save' || $op eq 'cud-insert' ) && ($guarantor->is_child ) || $guarantor->is_guarantee || $patron->is_guarantor) {
push @errors, 'ERROR_guarantor_is_guarantee';
-