summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-07 18:46:23 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-07-07 18:46:23 +0000
commitd70512a802e60a52847a42f4f70bb91a2d16218d (patch)
tree55aee1d50c20ea0b16184963b86e55d3608d5472
parent9b2ca60860546153ef23ee991ed01a299cdab003 (diff)
Applying Victor Sterpu's fix to bug 1748895
Fixing bareword error with pos.conf.pl Adding Victor to contributors file git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1352 4979c152-3d1c-0410-bac9-87ea11338e46
-rw-r--r--CONTRIBUTORS3
-rwxr-xr-xLedgerSMB/IR.pm2
-rw-r--r--pos.conf.pl2
3 files changed, 6 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index eeaa87a8..95a8bf6f 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -65,6 +65,9 @@ some performance fixes and has contributed a great deal of work to our web site.
Donna Robinson [email omitted] contributed some fixes to the HTML code.
+Victor Sterpu <victor @ ambra.ro> has contributed some bug fixes to COGS
+handling.
+
Original Authors of SQL-Ledger:
===================================
Dieter Simader <dsimader @ sql-ledger.com>
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm
index 714acf61..709d5dcf 100755
--- a/LedgerSMB/IR.pm
+++ b/LedgerSMB/IR.pm
@@ -390,6 +390,8 @@ sub post_invoice {
$form->update_balance( $dbh, "invoice", "allocated",
qq|id = $ref->{id}|,
$qty * -1 );
+ $form->update_balance( $dbh, "invoice", "allocated",
+ qq|id =$invoice_id|,$qty);
$allocated += $qty;
diff --git a/pos.conf.pl b/pos.conf.pl
index da0ca6e2..63fb68ad 100644
--- a/pos.conf.pl
+++ b/pos.conf.pl
@@ -97,7 +97,7 @@ $form->{pos_sources} = \%pos_sources;
# Due to the architecture of SL, we need to use netcat to print.
# Otherwise the document gets spooled twice and this interferes with timeliness.
-${LedgerSMB::Sysconfig::printer}{'Printer'} =
+${'LedgerSMB::Sysconfig::printer'}{'Printer'} =
"utils/pos/directnet.pl $pos_config{rp_host} $pos_config{rp_proto} $pos_config{rp_port}";
1;