order items
This commit is contained in:
parent
41e345b646
commit
6e7e0c6b9e
|
|
@ -105,13 +105,13 @@ class OrderItem extends ComponentBase
|
|||
->sum('amount');
|
||||
|
||||
|
||||
$stockCalc = $bagCalc;
|
||||
$stockCalc = (float)$bagCalc;
|
||||
|
||||
if($stockCalc > 0){
|
||||
|
||||
$notCompleteCalc = '<font style="color: darkgreen;"> +'.number_format(($stockCalc - $amountCalc), 2).' artyk</font>';
|
||||
$notCompleteCalc = '<font style="color: darkgreen;"> +'.number_format((float)((float)$stockCalc - (float)$amountCalc), 2).' artyk</font>';
|
||||
}elseif($stockCalc < 0){
|
||||
$notCompleteCalc = '<font style="color: darkred;">'.number_format(($stockCalc - $amountCalc), 2).' ýetenok</font>';
|
||||
$notCompleteCalc = '<font style="color: darkred;">'.number_format((float)((float)$stockCalc - (float)$amountCalc), 2).' ýetenok</font>';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue