public function save() { $rez = $this->order_srl ? $this->repo->update($this) : $this->repo->insert($this); if ($this->cart && ($coupon = $this->cart->getCoupon())) { $coupon->useOnce(true); } return $rez; }