summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AA.pm')
-rw-r--r--LedgerSMB/AA.pm4
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)