summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xLedgerSMB/AM.pm2
-rwxr-xr-xLedgerSMB/IS.pm4
2 files changed, 2 insertions, 4 deletions
diff --git a/LedgerSMB/AM.pm b/LedgerSMB/AM.pm
index a066f9af..351b0ae0 100755
--- a/LedgerSMB/AM.pm
+++ b/LedgerSMB/AM.pm
@@ -1390,10 +1390,8 @@ sub save_defaults {
if ($translation{$_}){
$val = $form->{$translation{$_}};
- print STDERR $val;
}
if ($_ =~ /accno/){
- print STDERR "Account $_: $translation{$_}";
$sth_accno->execute($val, $_)
|| $form->dberror("Saving $_");
} else {
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm
index 05b4dd06..dd293759 100755
--- a/LedgerSMB/IS.pm
+++ b/LedgerSMB/IS.pm
@@ -820,10 +820,10 @@ sub post_invoice {
$query = qq|
SELECT (SELECT value FROM defaults
- WHERE setting_key = fxgain_accno_id)
+ WHERE setting_key = 'fxgain_accno_id')
AS fxgain_accno_id,
(SELECT value FROM defaults
- WHERE setting_key = fxloss_accno_id)
+ WHERE setting_key = 'fxloss_accno_id')
AS fxloss_accno_id|;
my ($fxgain_accno_id, $fxloss_accno_id) = $dbh->selectrow_array($query);