public function setDatePayment( $date )
	{
		if ( $date === $this->getDatePayment() ) { return; }

		$this->_checkDateFormat($date);

		$this->_values['datepayment'] = (string) $date;
		$this->setModified();
	}
public function setDatePayment( $date )
	{
		if ( $date === $this->getDatePayment() ) { return; }

		$this->_checkDateFormat($date);

		$this->_values['datepayment'] = (string) $date;
		$this->setModified();
	}
public function setDatePayment ( $ date ) { if ( $ date === $ this -> getDatePayment ( ) ) { return ; } $ this -> _checkDateFormat ( $ date ) ; $ this -> _values [ 'datepayment' ] = ( string ) $ date ; $ this -> setModified ( ) ; }
Sets the purchase date of the invoice.

@param string $date ISO date in yyyy-mm-dd HH:ii:ss format
Sets the purchase date of the invoice .