Facturacion, se agrega PropiedadUnidad

This commit is contained in:
2023-11-29 20:09:08 -03:00
parent 094209823a
commit 39048e12b3
24 changed files with 716 additions and 55 deletions

View File

@ -10,6 +10,20 @@ class Direccion extends Model
public string $extra;
public Comuna $comuna;
public function simple(): string
{
$arr = [
implode(' ', [
$this->calle,
$this->numero
])
];
if ($this->extra !== '') {
$arr []= $this->extra;
}
return implode(', ', $arr);
}
public function full(): string
{
return implode(', ', [

View File

@ -0,0 +1,16 @@
<?php
namespace Incoviba\Model\Venta;
class PropiedadUnidad extends Unidad
{
public int $pu_id;
public int $propiedad_id;
public float $valor;
public function jsonSerialize(): mixed
{
return array_merge(parent::jsonSerialize(), [
'valor' => $this->valor
]);
}
}