protected function submitEditPriceRule()
    {
        if ($this->isPosted('delete')) {
            $this->deletePriceRule();
        } else if ($this->isPosted('save') && $this->validateEditPriceRule()) {
            if (isset($this->data_rule['price_rule_id'])) {
                $this->updatePriceRule();
            } else {
                $this->addPriceRule();
            }
        }
    }
protected function submitEditPriceRule()
    {
        if ($this->isPosted('delete')) {
            $this->deletePriceRule();
        } else if ($this->isPosted('save') && $this->validateEditPriceRule()) {
            if (isset($this->data_rule['price_rule_id'])) {
                $this->updatePriceRule();
            } else {
                $this->addPriceRule();
            }
        }
    }
protected function submitEditPriceRule ( ) { if ( $ this -> isPosted ( 'delete' ) ) { $ this -> deletePriceRule ( ) ; } else if ( $ this -> isPosted ( 'save' ) && $ this -> validateEditPriceRule ( ) ) { if ( isset ( $ this -> data_rule [ 'price_rule_id' ] ) ) { $ this -> updatePriceRule ( ) ; } else { $ this -> addPriceRule ( ) ; } } }
Handles a submitted price rule
Handles a submitted price rule