示例#1
0
 /**
  * Price with VAT every time
  * @return string
  */
 public function formatVat()
 {
     $number = $this->lastChange->getNumber();
     if ($this->tax->isVatOn()) {
         return $this->lastChange->render($number);
     }
     $this->tax->vatOn();
     $number = $this->lastChange->render($this->tax->taxation($number));
     $this->tax->vatOff();
     return $number;
 }