public function collect(
        Quote $quote,
        ShippingAssignmentInterface $shippingAssignment,
        Total $total
    ) {
        parent::collect($quote, $shippingAssignment, $total);

        $baseInterest = (float) $quote->getBaseGabrielqsInstallmentsInterestAmount();
        $interest = (float) $quote->getGabrielqsInstallmentsInterestAmount();

        $total->addTotalAmount('gabrielqs_installments_interest_amount', $interest);
        $total->addBaseTotalAmount('gabrielqs_installments_interest_amount', $baseInterest);

        $total->setBaseGrandTotal($total->getBaseGrandTotal() + $baseInterest);
        $total->setGrandTotal($total->getGrandTotal() + $interest);

        return $this;
    }
public function collect(
        Quote $quote,
        ShippingAssignmentInterface $shippingAssignment,
        Total $total
    ) {
        parent::collect($quote, $shippingAssignment, $total);

        $baseInterest = (float) $quote->getBaseGabrielqsInstallmentsInterestAmount();
        $interest = (float) $quote->getGabrielqsInstallmentsInterestAmount();

        $total->addTotalAmount('gabrielqs_installments_interest_amount', $interest);
        $total->addBaseTotalAmount('gabrielqs_installments_interest_amount', $baseInterest);

        $total->setBaseGrandTotal($total->getBaseGrandTotal() + $baseInterest);
        $total->setGrandTotal($total->getGrandTotal() + $interest);

        return $this;
    }
public function collect ( Quote $ quote , ShippingAssignmentInterface $ shippingAssignment , Total $ total ) { parent :: collect ( $ quote , $ shippingAssignment , $ total ) ; $ baseInterest = ( float ) $ quote -> getBaseGabrielqsInstallmentsInterestAmount ( ) ; $ interest = ( float ) $ quote -> getGabrielqsInstallmentsInterestAmount ( ) ; $ total -> addTotalAmount ( 'gabrielqs_installments_interest_amount' , $ interest ) ; $ total -> addBaseTotalAmount ( 'gabrielqs_installments_interest_amount' , $ baseInterest ) ; $ total -> setBaseGrandTotal ( $ total -> getBaseGrandTotal ( ) + $ baseInterest ) ; $ total -> setGrandTotal ( $ total -> getGrandTotal ( ) + $ interest ) ; return $ this ; }
Collect grand total address amount

@param Quote $quote
@param ShippingAssignmentInterface $shippingAssignment
@param Total $total
@return $this
Collect grand total address amount