[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [538] trunk
- Subject: SF.net SVN: ledger-smb: [538] trunk
- From: ..hidden..
- Date: Sun, 12 Nov 2006 15:11:16 -0800
Revision: 538
http://svn.sourceforge.net/ledger-smb/?rev=538&view=rev
Author: einhverfr
Date: 2006-11-12 15:11:14 -0800 (Sun, 12 Nov 2006)
Log Message:
-----------
Numerous small problems fixed with Form
Modified Paths:
--------------
trunk/LedgerSMB/Form.pm
trunk/UPGRADE
Modified: trunk/LedgerSMB/Form.pm
===================================================================
--- trunk/LedgerSMB/Form.pm 2006-11-12 21:34:51 UTC (rev 537)
+++ trunk/LedgerSMB/Form.pm 2006-11-12 23:11:14 UTC (rev 538)
@@ -533,7 +533,7 @@
$argstr =~ s/\, $//;
$query = "SELECT $procname";
$query =~ s/\(\)/$argstr/;
- my $sth = $form->{dbh}->prepare($query);
+ my $sth = $self->{dbh}->prepare($query);
while (my $ref = $sth->fetchrow_hashref(NAME_lc)){
push @results, $ref;
}
@@ -1358,7 +1358,7 @@
if ($query_type eq 'UPDATE'){
$query = "DELETE FROM $_ WHERE row_id = ?";
my $sth = $dbh->prepare($query);
- $sth->execute->($form->{"id"."$linenum"})
+ $sth->execute->($self->{"id"."$linenum"})
|| $self->dberror($query);
} elsif ($query_type eq 'INSERT'){
$query .= " INTO $_ (";
@@ -1399,9 +1399,9 @@
for (@rc){
$query = shift (@{$_});
$sth = $dbh->prepare($query)
- || $form->db_error($query);
- $sth->execute(@{$_}, $form->{id})
- || $form->dberror($query);;
+ || $self->db_error($query);
+ $sth->execute(@{$_}, $self->{id})
+ || $self->dberror($query);;
$sth->finish;
$did_insert = 1;
}
@@ -1412,10 +1412,10 @@
for (@rc){
$query = shift @{$_};
$sth = $self->{dbh}->prepare($query);
- $sth->execute($form->{id});
+ $sth->execute($self->{id});
$ref = $sth->fetchrow_hashref(NAME_lc);
for (keys %{$ref}){
- $form->{$_} = $ref->{$_};
+ $self->{$_} = $ref->{$_};
}
}
}
@@ -1900,7 +1900,7 @@
FROM project
WHERE $where|;
- if ($form->{language_code}) {
+ if ($self->{language_code}) {
$query = qq|
SELECT pr.*, t.description AS translation
@@ -2096,7 +2096,7 @@
FROM status s WHERE s.trans_id = ?|;
$sth = $dbh->prepare($query);
- $sth->execute($self->{id}) || $form->dberror($query);
+ $sth->execute($self->{id}) || $self->dberror($query);
while ($ref = $sth->fetchrow_hashref(NAME_lc)) {
$self->{printed} .= "$ref->{formname} "
@@ -2157,9 +2157,9 @@
(undef, $val) = $sth->fetchrow_array();
if ($_ eq 'curr'){
- $form->{currencies} = $val;
+ $self->{currencies} = $val;
} else {
- $form->{$_} = $val;
+ $self->{$_} = $val;
}
$sth->finish;
}
@@ -2176,11 +2176,11 @@
(undef, $val) = $sth->fetchrow_array();
if ($_ eq 'curr'){
- $form->{currencies} = $val;
+ $self->{currencies} = $val;
} elsif ($_ eq 'current_date'){
- $form->{transdate} = $val;
+ $self->{transdate} = $val;
} else {
- $form->{$_} = $val;
+ $self->{$_} = $val;
}
$sth->finish;
}
@@ -2451,7 +2451,7 @@
WHERE trans_id = ?|;
my $sth = $dbh->prepare($query);
- $sth->execute($form->{id});
+ $sth->execute($self->{id});
$sth->finish;
my %queued;
Modified: trunk/UPGRADE
===================================================================
--- trunk/UPGRADE 2006-11-12 21:34:51 UTC (rev 537)
+++ trunk/UPGRADE 2006-11-12 23:11:14 UTC (rev 538)
@@ -40,6 +40,11 @@
line. The test suites currently check to make sure all the perl modules load
and that a number of numeric tests are passed.
+Dependencies which are recommended are needed only for specific functionality
+and may not be required in all circumstances. These include:
+ * Net::TCLink for credit card processing in a POS environment
+ * Parse::RecDescent for the CLI script host
+
3) Upgrade database
a) cd to the sql/legacy/ directory of the new ledger directory
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.