summaryrefslogtreecommitdiff
path: root/contrib/non-profit-audit-reports
diff options
context:
space:
mode:
authorBradley M. Kuhn <bkuhn@ebb.org>2013-01-08 16:38:24 -0500
committerBradley M. Kuhn <bkuhn@ebb.org>2013-02-18 14:08:45 -0500
commit18d2867a6315562b4f4588ebf4fc58adf1fb9acf (patch)
tree0bc0db5bb4ca93c6dd6ff45f9451e2192c89362e /contrib/non-profit-audit-reports
parentb1b807fcfab49b9682db79b6b2fed000fc230f90 (diff)
downloadfork-ledger-18d2867a6315562b4f4588ebf4fc58adf1fb9acf.tar.gz
fork-ledger-18d2867a6315562b4f4588ebf4fc58adf1fb9acf.tar.bz2
fork-ledger-18d2867a6315562b4f4588ebf4fc58adf1fb9acf.zip
Rename the function to note it's the dynamic programming one.
Diffstat (limited to 'contrib/non-profit-audit-reports')
-rwxr-xr-xcontrib/non-profit-audit-reports/bank-reconcilation.plx4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/non-profit-audit-reports/bank-reconcilation.plx b/contrib/non-profit-audit-reports/bank-reconcilation.plx
index f18f43dc..669a25b0 100755
--- a/contrib/non-profit-audit-reports/bank-reconcilation.plx
+++ b/contrib/non-profit-audit-reports/bank-reconcilation.plx
@@ -16,7 +16,7 @@ my $DEBUG = 0;
my $LEDGER_BIN = "/usr/local/bin/ledger";
######################################################################
-sub SubSetSumSolver ($$$) {
+sub DynamicProgrammingSubSetSumSolver ($$$) {
my($numberList, $totalSought, $extractNumber) = @_;
my($P, $N) = (0, 0);
@@ -148,7 +148,7 @@ while ($startDate ge $earliestStartDate) {
if (@entries == 1) {
@solution = ( (abs($entries[0]->{amount}) == abs($balanceSought)), \@entries);
} else {
- @solution = SubSetSumSolver(\@entries, ConvertTwoDigitPrecisionToInteger($balanceSought),
+ @solution = DynamicProgrammingSubSetSumSolver(\@entries, ConvertTwoDigitPrecisionToInteger($balanceSought),
\&ConvertTwoDigitPrecisionToIntegerInEntry);
}
if ($VERBOSE) {