public function addOnAmount()
    {
        $totalAddOn = 0;

        foreach ($this->transaction->addOns as $addOn) {
            $totalAddOn += $addOn->amount * ($addOn->quantity ?? 1);
        }

        return (float) $totalAddOn;
    }
public function addOnAmount()
    {
        $totalAddOn = 0;

        foreach ($this->transaction->addOns as $addOn) {
            $totalAddOn += $addOn->amount * ($addOn->quantity ?? 1);
        }

        return (float) $totalAddOn;
    }
public function addOnAmount ( ) { $ totalAddOn = 0 ; foreach ( $ this -> transaction -> addOns as $ addOn ) { $ totalAddOn += $ addOn -> amount * ( $ addOn -> quantity ?? 1 ) ; } return ( float ) $ totalAddOn ; }
Get the raw add-on amount.

@return float
Get the raw add - on amount .