diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-07 06:02:55 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-05-07 06:02:55 +0000 |
commit | 19b819c58c2bd54d1354c8004e680a40e9ae94ec (patch) | |
tree | 3b3a561235193818dad05bfe928b70ea651a3050 /LedgerSMB/IS.pm | |
parent | 1d4c913ccaf723b79d5a4dbd9fcbe9e4297ec9ad (diff) |
Applying patch to bugs 1699718 and 1713439
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1146 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/IS.pm')
-rw-r--r-- | LedgerSMB/IS.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm index 12e6941a..e3b8d03c 100644 --- a/LedgerSMB/IS.pm +++ b/LedgerSMB/IS.pm @@ -1516,6 +1516,7 @@ sub cogs { my $qty; while ( my $ref = $sth->fetchrow_hashref(NAME_lc) ) { + $form->db_parse_numeric(sth=>$sth, hashref=>$ref); if ( ( $qty = ( ( $ref->{qty} * -1 ) - $ref->{allocated} ) ) > $totalqty ) { @@ -1751,6 +1752,7 @@ sub retrieve_invoice { $sth->execute( $form->{id} ) || $form->dberror($query); $ref = $sth->fetchrow_hashref(NAME_lc); + $form->db_parse_numeric(sth=> $sth, hashref=>$ref_); for ( keys %$ref ) { $form->{$_} = $ref->{$_} } $sth->finish; @@ -1808,7 +1810,7 @@ sub retrieve_invoice { my $ptref; while ( $ref = $sth->fetchrow_hashref(NAME_lc) ) { - + $form->db_parse_numeric(sth=>$sth, hashref => $ref); my ($dec) = ( $ref->{fxsellprice} =~ /\.(\d+)/ ); $dec = length $dec; my $decimalplaces = ( $dec > 2 ) ? $dec : 2; @@ -1935,6 +1937,7 @@ sub retrieve_item { my $transdate = $form->datetonum( $myconfig, $form->{transdate} ); while ( $ref = $sth->fetchrow_hashref(NAME_lc) ) { + $form->db_parse_numeric(sth => $sth, hashref => $ref); my ($dec) = ( $ref->{sellprice} =~ /\.(\d+)/ ); $dec = length $dec; |