public function initTotals()
    {
        if ($value = $this->_getInterestAmount()) {
            $installmentInterest = new DataObject(
                [
                    'code' => 'gabrielqs_installments_interest_amount',
                    'strong' => false,
                    'value' => $value,
                    'label' => __('Interest'),
                    'class' => __('Interest'),
                ]
            );

            $this->getParentBlock()->addTotal($installmentInterest, 'gabrielqs_installments_interest_amount');
        }

        return $this;
    }
public function initTotals()
    {
        if ($value = $this->_getInterestAmount()) {
            $installmentInterest = new DataObject(
                [
                    'code' => 'gabrielqs_installments_interest_amount',
                    'strong' => false,
                    'value' => $value,
                    'label' => __('Interest'),
                    'class' => __('Interest'),
                ]
            );

            $this->getParentBlock()->addTotal($installmentInterest, 'gabrielqs_installments_interest_amount');
        }

        return $this;
    }
public function initTotals ( ) { if ( $ value = $ this -> _getInterestAmount ( ) ) { $ installmentInterest = new DataObject ( [ 'code' => 'gabrielqs_installments_interest_amount' , 'strong' => false , 'value' => $ value , 'label' => __ ( 'Interest' ) , 'class' => __ ( 'Interest' ) , ] ) ; $ this -> getParentBlock ( ) -> addTotal ( $ installmentInterest , 'gabrielqs_installments_interest_amount' ) ; } return $ this ; }
Initialize all order totals relates with tax
@return $this
Initialize all order totals relates with tax