summaryrefslogtreecommitdiff
path: root/LedgerSMB/Batch.pm
blob: 5c948f79b9a0042c5ddbd1bc1df628070db1b176 (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. $self->{dbh}->commit;
  9. return $ref->{id};
  10. }
  11. 1;