1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-23 18:01:35 +02:00
invoiceninja/app/models/Payment.php
2013-12-07 20:45:00 +02:00

36 lines
490 B
PHP
Executable File

<?php
class Payment extends EntityModel
{
public function invoice()
{
return $this->belongsTo('Invoice');
}
public function invitation()
{
return $this->belongsTo('Invitation');
}
public function client()
{
return $this->belongsTo('Client');
}
public function getName()
{
return '';
//return $this->invoice_number;
}
public function getEntityType()
{
return ENTITY_PAYMENT;
}
}
Payment::created(function($payment)
{
Activity::createPayment($payment);
});