28 lines
No EOL
391 B
PHP
Executable file
28 lines
No EOL
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);
|
|
}); |