Payment/Model/PaymentSubjectTrait.php
protected function initializePaymentSubject()
    {
        $this->depositTotal = 0;
        $this->grandTotal = 0;
        $this->paidTotal = 0;
        $this->pendingTotal = 0;
        $this->outstandingAccepted = 0;
        $this->outstandingExpired = 0;
        $this->outstandingLimit = 0;

        $this->paymentState = PaymentStates::STATE_NEW;
        $this->payments = new ArrayCollection();
    }
protected function initializePaymentSubject()
    {
        $this->depositTotal = 0;
        $this->grandTotal = 0;
        $this->paidTotal = 0;
        $this->pendingTotal = 0;
        $this->outstandingAccepted = 0;
        $this->outstandingExpired = 0;
        $this->outstandingLimit = 0;

        $this->paymentState = PaymentStates::STATE_NEW;
        $this->payments = new ArrayCollection();
    }
Initializes the payment subject.