1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 16:31:33 +02:00
invoiceninja/app/models/Credit.php
2013-12-04 18:20:14 +02:00

24 lines
321 B
PHP
Executable File

<?php
class Credit extends EntityModel
{
public function invoice()
{
return $this->belongsTo('Invoice');
}
public function getName()
{
return $this->credit_number;
}
public function getEntityType()
{
return ENTITY_CREDIT;
}
}
Credit::created(function($credit)
{
Activity::creaateCredit($credit);
});