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,35 @@
<?php
namespace Incoviba\nuevo\Venta;
use Incoviba\Common\Alias\NewModel;
use Incoviba\nuevo\Common\Banco;
use Incoviba\Common\Definition\hasEstado;
/**
*
* @author Aldarien
* @property int id
* @property TipoPago tipo_id
* @property string identificador
* @property int valor
* @property Banco banco_id
* @property Date fecha
* @property double uf
* @property string pagador
*
*/
class Pago extends NewModel
{
use hasEstado;
protected static $_table = 'pagos';
public function tipo()
{
return $this->belongsTo(TipoPago::class, 'tipo_id')->findOne();
}
public function banco()
{
return $this->belongsTo(Banco::class, 'banco_id')->findOne();
}
}