Debug 6 /reservation

This commit is contained in:
2018-07-31 13:47:47 +02:00
parent 2da7fdd9cc
commit c520c3386a
6 changed files with 52 additions and 25 deletions
@@ -85,7 +85,10 @@ class MonthPayments {
private function setTotalProjectPayments()
{
$this->totalProjectPayments += $this->payment->paymentamount;
$paymentYear = date( 'Y', strtotime( $this->payment->paymentdate ) );
if ( $paymentYear == $this->year )
$this->totalProjectPayments += $this->payment->paymentamount;
}
private function setProjectDetails()