---
name: "LedgerSMB::Batch"
section: "3pm"
platform: "linux"
package: "ledgersmb"
version: "1.3.40-1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/LedgerSMB::Batch"
---

# LedgerSMB::Batch(3pm)

Batch/voucher management model for LedgerSMB 1.3

## NAME

LedgerSMB::Batch - Batch/voucher management model for LedgerSMB 1.3

## SYNOPSIS

Batch/voucher management model for LedgerSMB 1.3

## METHODS

- get\_new\_info

  This gets the information required for the new batch screen.  Currently this just populates the batch\_number hashref value.

- create

  Saves the batch info and populates the id hashref value with the id inserted.

- delete\_voucher($id)

  Deletes the voucher specified by `$id`.

- unlock($id)

  Unlocks a given batch

- get\_search\_criteria Sets all hash values needed for the search interface:

  - batch\_classes List of all batch classes

    - batch\_users List of all users

    - get\_search\_method (private)

  Determines the appropriate search method, either for empty, mini, or full  searches

  Returns the appropriate stored proc name.

- get\_search\_results

  Returns the appropriate search as detected by get\_search\_method.

- get\_class\_id($type)

  Returns the class\_id of batch class specified by its label.

- post

  Posts a batch to the books and makes the vouchers show up in transaction  reports, financial statements, and more.

- delete

  Deletes the unapproved batch and all vouchers under it.

- list\_vouchers Returns a list of all vouchers in the batch and attaches that list to $self-\>{vouchers}

  - get

  Gets the batch and merges information with the current batch object.

## Copyright (C) 2009, The LedgerSMB core team.

This file is licensed under the Gnu General Public License version 2, or at your option any later version.  A copy of the license should have been included with your software.
