diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/aa.pl | 3 | ||||
-rwxr-xr-x | bin/cp.pl | 10 |
2 files changed, 10 insertions, 3 deletions
@@ -1225,7 +1225,7 @@ sub transactions { $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"; @@ -1356,7 +1356,6 @@ sub transactions { $href .= "&l_$item=Y"; } } - if (!$form->{summary}) { foreach $item (qw(source debit credit accno description projectnumber)) { push @column_index, $item; @@ -56,6 +56,11 @@ require "bin/arap.pl"; 1; # end of main +# This may need to get more sophisticated in the future +# Anyway, it provides one point of control for date handling. +sub default_date { + $form->{date} ||= 'current_date' +} sub payment { @@ -1137,7 +1142,10 @@ sub payment_footer { } -sub post { &{"post_$form->{payment}"} } +sub post { + &default_date; + &{"post_$form->{payment}"}; +} sub post_payments { |