Fix price mismatch
This commit is contained in:
parent
f45a2a1acb
commit
7bf2701865
@ -14,12 +14,7 @@ try {
|
||||
if ($rate->id == $_REQUEST["rateid"]) {
|
||||
$cost = $rate->rate;
|
||||
$retail_rate = $rate->retail_rate ?? ($rate->list_rate ?? $rate->rate);
|
||||
if ($retail_rate - $cost > 3) {
|
||||
// Cap at $3 profit to be nice
|
||||
$price = $cost + 3.00;
|
||||
} else {
|
||||
$price = $cost + 1.00;
|
||||
}
|
||||
$price = $retail_rate + 1.00;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user