public function getPartialPayments()
    {
        if (!$this->isInDB()) {
            return null;
        }

        return Payment::get()
            ->filter('InitialPaymentID', $this->ID)
            ->sort(array('Created' => 'DESC', 'ID' => 'DESC'));
    }
public function getPartialPayments()
    {
        if (!$this->isInDB()) {
            return null;
        }

        return Payment::get()
            ->filter('InitialPaymentID', $this->ID)
            ->sort(array('Created' => 'DESC', 'ID' => 'DESC'));
    }
public function getPartialPayments ( ) { if ( ! $ this -> isInDB ( ) ) { return null ; } return Payment :: get ( ) -> filter ( 'InitialPaymentID' , $ this -> ID ) -> sort ( array ( 'Created' => 'DESC' , 'ID' => 'DESC' ) ) ; }
Get partial payments that have this payment as initial payment.
The list will be sorted from newest to oldest
@return DataList|null
Get partial payments that have this payment as initial payment . The list will be sorted from newest to oldest