Пример #1
0
 public function beforeSave()
 {
     if (!$this->tax_class_id) {
         $this->tax_class = Tax::getDefault();
     }
     $this->calculateTotals();
 }