summaryrefslogtreecommitdiff
path: root/LedgerSMB/DBObject/Customer.pm
blob: 9a120f91b9ef27dd60e24bdec4a5ff4c3a59db3f (plain)
  1. package LedgerSMB::DBObject::Customer;
  2. use base qw(LedgerSMB::DBObject);
  3. use LedgerSMB::DBObject;
  4. use LedgerSMB::Entity;
  5. sub save {
  6. my $self = shift @_;
  7. # This saves both the entity and the credit account. -- CT
  8. $self->{entity_class} = 2;
  9. $self->{id} = $self->exec_method(funcname => 'entity_credit_save');
  10. }
  11. sub get_metadata {
  12. my $self = shift @_;
  13. @{$self->{location_class}} =
  14. $self->exec_method(funcname => 'location_list_class');
  15. @{$self->{country}} =
  16. $self->exec_method(funcname => 'location_list_country');
  17. @{$self->{contact_class}} =
  18. $self->exec_method(funcname => 'entity_list_contact_class');
  19. }
  20. sub search {
  21. }
  22. 1;