public function subTotal($format = true, $withDiscount = true)
{
$total = 0;
if ($this->count() != 0) {
foreach ($this->getItems() as $item) {
$total += $item->subTotal(false, $withDiscount);
}
}
return $this->formatMoney($total, null, null, $format);
}