summaryrefslogtreecommitdiff
path: root/bin/aa.pl
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-26 20:28:38 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-26 20:28:38 +0000
commit6c5c1c36fa682244c355f6c06808ec715f0a2baa (patch)
tree632efc981a5735f7b8d424a680469b71597dd495 /bin/aa.pl
parent6a118bd31a09a9b8aaabd84f8876952e1cdd6459 (diff)
Merging bugfixes from current branches/1.2
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1105 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin/aa.pl')
-rw-r--r--bin/aa.pl12
1 files changed, 9 insertions, 3 deletions
diff --git a/bin/aa.pl b/bin/aa.pl
index 08a766f2..f4e6c1b1 100644
--- a/bin/aa.pl
+++ b/bin/aa.pl
@@ -117,6 +117,14 @@ sub display_form {
}
sub create_links {
+ if ( $form->{script} eq 'ap.pl' ) {
+ $form->{ARAP} = 'AP';
+ $form->{vc} = 'vendor';
+ }
+ elsif ( $form->{script} eq 'ar.pl' ) {
+ $form->{ARAP} = 'AR';
+ $form->{vc} = 'customer';
+ }
$form->create_links( $form->{ARAP}, \%myconfig, $form->{vc} );
@@ -1481,13 +1489,12 @@ qq|<input name="l_transdate" class=checkbox type=checkbox value=Y checked> |
}
sub transactions {
-
if ( $form->{ $form->{vc} } ) {
$form->{ $form->{vc} } = $form->unescape( $form->{ $form->{vc} } );
( $form->{ $form->{vc} }, $form->{"$form->{vc}_id"} ) =
split( /--/, $form->{ $form->{vc} } );
}
-
+ my @column_index;
AA->transactions( \%myconfig, \%$form );
$href = "$form->{script}?action=transactions";
@@ -1640,7 +1647,6 @@ sub transactions {
$href .= "&l_$item=Y";
}
}
-
if ( !$form->{summary} ) {
foreach $item (qw(source debit credit accno description projectnumber))
{