public function discountAmount()
    {
        $totalDiscount = 0;

        foreach ($this->transaction->discounts as $discount) {
            $totalDiscount += $discount->amount;
        }

        return (float) $totalDiscount;
    }
public function discountAmount()
    {
        $totalDiscount = 0;

        foreach ($this->transaction->discounts as $discount) {
            $totalDiscount += $discount->amount;
        }

        return (float) $totalDiscount;
    }
public function discountAmount ( ) { $ totalDiscount = 0 ; foreach ( $ this -> transaction -> discounts as $ discount ) { $ totalDiscount += $ discount -> amount ; } return ( float ) $ totalDiscount ; }
Get the raw discount amount.

@return float
Get the raw discount amount .