This commit is contained in:
Juan Pablo Vial
2023-07-24 20:41:38 -04:00
parent 6ab24c8961
commit be33305cf1
612 changed files with 11436 additions and 107 deletions

View File

@ -0,0 +1,25 @@
<?php
namespace Incoviba\nuevo\Venta;
use Incoviba\Common\Alias\NewEstado;
/**
*
* @author Aldarien
* @property Venta venta_id
* @property TipoEstadoVenta estado_id
*
*/
class EstadoVenta extends NewEstado
{
protected static $_table = 'estado_ventas';
public function venta()
{
return $this->belongsTo(Venta::class, 'venta_id')->findOne();
}
public function estado()
{
return $this->belongsTo(TipoEstadoVenta::class, 'estado_id')->findOne();
}
}