Browse Source

fix compare algo

stanley-king 2 years ago
parent
commit
5a39e0844b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      helper/refill/policy/chctlex.php

+ 1 - 1
helper/refill/policy/chctlex.php

@@ -222,7 +222,7 @@ class chctlex
             $rRrofit = $out_price - $r->price();
 
             $lVal = $l->compile_val($lProfit);
-            $rVal = $r->compile_val($lProfit);
+            $rVal = $r->compile_val($rRrofit);
 
             Log::record("auto_match desc_profit lname={$l->name()} lval={$lVal} rname={$r->name()} rval={$rVal}",Log::DEBUG);