mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
36 lines
490 B
PHP
Executable File
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);
|
|
}); |