summaryrefslogtreecommitdiff
path: root/LedgerSMB/DBObject/Customer.pm
blob: aa4404ced908c9b41651144d791954f9d094f0d6 (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->{entity_id} = $self->exec_method(funcname => 'entity_credit_save');
  10. $self->{dbh}->commit;
  11. }
  12. sub get_metadata {
  13. my $self = shift @_;
  14. @{$self->{location_class}} =
  15. $self->exec_method(funcname => 'location_list_class');
  16. @{$self->{country}} =
  17. $self->exec_method(funcname => 'location_list_country');
  18. @{$self->{contact_class}} =
  19. $self->exec_method(funcname => 'entity_list_contact_class');
  20. }
  21. sub search {
  22. }
  23. 1;