Added supplier location endpoint

This commit is contained in:
Tom Bloor 2017-09-27 18:01:06 +01:00
parent df90f62b7a
commit 5e078f8f8b
8 changed files with 414 additions and 1 deletions

View file

@ -63,4 +63,16 @@ sub name {
}
}
sub type_object {
my $self = shift;
if ( $self->type eq 'customer' ) {
return $self->customer;
} elsif ( $self->type eq 'organisation' ) {
return $self->organisation;
} else {
return;
}
}
1;