1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/models/Payment.php
2013-12-01 22:58:25 +02:00

28 lines
391 B
PHP
Executable File

<?php
class Payment extends Eloquent implements iEntity
{
protected $softDelete = true;
public function invoice()
{
return $this->belongsTo('Invoice');
}
public function getName()
{
return '';
//return $this->invoice_number;
}
public function getEntityType()
{
return ENTITY_PAYMENT;
}
}
Payment::created(function($payment)
{
Activity::createPayment($payment);
});