summaryrefslogtreecommitdiff
path: root/LedgerSMB/Batch.pm
blob: 19cb656e56ca01827f76220bfe2158e7dbf12bd7 (plain)
  1. package LedgerSMB::Batch;
  2. use base qw(LedgerSMB::DBObject);
  3. sub create {
  4. $self = shift @_;
  5. my ($ref) = $self->exec_method(funcname => 'batch_create');
  6. print STDERR "$ref, $ref->{batch_create}, " . join (':', keys %$ref);
  7. $self->{id} = $ref->{batch_create};
  8. return $ref->{id};
  9. }
  10. 1;