| if ($countD24 >= intval($pieces[0]) && $countD24 <= intval($pieces[1])) { | if ($countD24 >= intval($pieces[0]) && $countD24 <= intval($pieces[1])) { | ||||
| if (strpos($c->comm, 'RM') !== false) { | if (strpos($c->comm, 'RM') !== false) { | ||||
| info(explode("RM", $c->comm)); | |||||
| $comms = explode("RM", $c->comm); | |||||
| info($comms[]); | |||||
| $comm24 = '+ ' . $c->comm; | |||||
| $commV24 = ''; | |||||
| $addRM24 = $c->comm; | |||||
| $comms = explode(" + RM ", $c->comm); | |||||
| $comm24 = $comms[0] . '%'; | |||||
| $commV24 = floatval($comms[0]) / 100; | |||||
| $addRM24 = 'RM' . $comms[1]; | |||||
| } else { | } else { | ||||
| $comms = explode("RM", $c->comm); | $comms = explode("RM", $c->comm); | ||||
| if (!empty($comms[1])) { | if (!empty($comms[1])) { |