1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/models/Credit.php
Hillel Coren 75b1350808 bug fixes
2014-01-08 20:09:47 +00:00

29 lines
373 B
PHP
Executable File

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