diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-07-22 23:27:50 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-07-22 23:27:50 +0000 |
commit | ecf56eca694d9606ffe56d3cab13a6614efc6aa4 (patch) | |
tree | 84fc7c9a763a97ef1c633a885b80456fc93559a0 /LedgerSMB/AA.pm | |
parent | 12a0239ccda7e2bd68cae034e916c6a664c3c430 (diff) |
Added format option to LedgerSMB::format_amount
Added batch information options for check template
Added batch default_date field
Corrected issues with payment batches not preserving post dates when adding vouchers to existing batch.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2219 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/AA.pm')
-rw-r--r-- | LedgerSMB/AA.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm index d5d8a1fe..8245fa33 100644 --- a/LedgerSMB/AA.pm +++ b/LedgerSMB/AA.pm @@ -373,9 +373,9 @@ sub post_transaction { $form->dberror($query); if (!$form->{approved} && $form->{batch_id}){ if ($form->{arap} eq 'ar'){ - $batch_class = 'receivable'; + $batch_class = 'ar'; } else { - $batch_class = 'payable'; + $batch_class = 'ap'; } $query = qq| INSERT INTO voucher (batch_id, trans_id, batch_class) |