diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-08-16 20:56:10 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2008-08-16 20:56:10 +0000 |
commit | 57617cdf31a98a34f46f717749b677a4e84f3868 (patch) | |
tree | e15945e82cd0b4edcb0ab108a7f5d662bb41c634 /LedgerSMB/IR.pm | |
parent | 6091d96e247809aea9cb09ac0086f624a50d1b67 (diff) |
* Fixing price matrix logic (1897245)
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@2270 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/IR.pm')
-rwxr-xr-x | LedgerSMB/IR.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/LedgerSMB/IR.pm b/LedgerSMB/IR.pm index 1de8155a..117cf61d 100755 --- a/LedgerSMB/IR.pm +++ b/LedgerSMB/IR.pm @@ -1165,6 +1165,8 @@ sub retrieve_invoice { my $ptref; while ( $ref = $sth->fetchrow_hashref(NAME_lc) ) { + PriceMatrix::price_matrix( $pmh, $ref, '', $decimalplaces, $form, + $myconfig ); $form->db_parse_numeric(sth=>$sth, hashref=>$ref); my ($dec) = ( $ref->{fxsellprice} =~ /\.(\d+)/ ); @@ -1189,8 +1191,6 @@ sub retrieve_invoice { $form->round_amount( $ref->{fxsellprice} * $form->{ $form->{currency} }, $decimalplaces ); - PriceMatrix::price_matrix( $pmh, $ref, $decimalplaces, $form, - $myconfig ); $ref->{sellprice} = $ref->{fxsellprice}; $ref->{qty} *= -1; @@ -1289,6 +1289,8 @@ sub retrieve_item { my $ptref; while ( $ref = $sth->fetchrow_hashref(NAME_lc) ) { + PriceMatrix::price_matrix( $pmh, $ref, '', $decimalplaces, $form, + $myconfig ); $form->db_parse_numeric(sth=>$sth, hashref=>$ref); my ($dec) = ( $ref->{sellprice} =~ /\.(\d+)/ ); @@ -1306,8 +1308,6 @@ sub retrieve_item { chop $ref->{taxaccounts}; # get vendor price and partnumber - PriceMatrix::price_matrix( $pmh, $ref, $decimalplaces, $form, - $myconfig ); $ref->{description} = $ref->{translation} if $ref->{translation}; |