Fix price mismatch

This commit is contained in:
Skylar Ittner 2026-03-03 14:34:03 -07:00
parent f45a2a1acb
commit 7bf2701865

View File

@ -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;
}
}