1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-24 02:11:34 +02:00
invoiceninja/app/models/Payment.php
2013-12-05 17:23:24 +02:00

31 lines
412 B
PHP
Executable File

<?php
class Payment extends EntityModel
{
public function invoice()
{
return $this->belongsTo('Invoice');
}
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);
});