FIX: valor en Escritura
This commit is contained in:
@ -20,5 +20,10 @@ class Escritura extends Model
|
||||
{
|
||||
return $this->belongs_to(Pago::class, 'pago')->findOne();
|
||||
}
|
||||
|
||||
public function valor(string $tipo = 'pesos')
|
||||
{
|
||||
return $this->pago()->valor($tipo);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user