Skip to content

Commit

Permalink
Merge pull request #1955 from einhverfr/1.4
Browse files Browse the repository at this point in the history
do not call pricematrix on existing order/invoice, fixes #1954, also …
  • Loading branch information
einhverfr committed Aug 2, 2016
2 parents aa9e0e5 + 92ea8d0 commit d5e616a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LedgerSMB/PriceMatrix.pm
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ sub price_matrix_query {

sub price_matrix {
my ( $pmh, $ref, $transdate, $decimalplaces, $form, $myconfig ) = @_;
return if $form->{id};
my $customerprice;
my $pricegroupprice;
my $sellprice;
Expand All @@ -138,7 +139,6 @@ sub price_matrix {
$ref->{sellprice} = $sellprice;
} elsif ($form->{vendor_id}){
$sellprice = $mref->{lastcost} || $ref->{sellprice};
die $sellprice;
$ref->{sellprice} = $sellprice;
}
}
Expand Down

0 comments on commit d5e616a

Please sign in to comment.