Dependencies
This commit is contained in:
27
incoviba/modelos/src/nuevo/Venta/EstadoPostventa.php
Normal file
27
incoviba/modelos/src/nuevo/Venta/EstadoPostventa.php
Normal file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Incoviba\nuevo\Venta;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Incoviba\Common\Alias\NewEstado;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Aldarien
|
||||
* @property Postventa postventa_id
|
||||
* @property TipoEstadoPostventa tipo_estado_postventa_id
|
||||
*
|
||||
*/
|
||||
class EstadoPostventa extends NewEstado
|
||||
{
|
||||
protected static $_table = 'estado_postventas';
|
||||
|
||||
public function postventa()
|
||||
{
|
||||
return $this->belongs_to(Postventa::class, 'postventa_id')->findOne();
|
||||
}
|
||||
public function tipo()
|
||||
{
|
||||
return $this->belongs_to(TipoEstadoPostventa::class, 'tipo_estado_postventa_id')->findOne();
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user