editar factura

This commit is contained in:
2024-07-07 19:25:39 +02:00
parent c7d8d0c5cc
commit 5605a88846
21 changed files with 1132 additions and 31 deletions

View File

@ -30,4 +30,19 @@ class FacturaLineaModel extends \App\Models\BaseModel {
protected $useSoftDeletes = true;
public static $labelField = "id";
public function getResource($factura_id)
{
$builder = $this->db
->table($this->table . " t1")
->select(
"t1.id AS id, t1.factura_id AS factura_id,
t1.pedido_impresion_id AS pedido_impresion_id, t1.pedido_maquetacion_id AS pedido_maquetacion_id,
t1.descripcion AS concepto, t1.cantidad as cantidad, t1.precio_unidad AS precio_unidad, t1.iva AS iva,
t1.base AS base, t1.total_iva AS total_iva, t1.total AS total, t1.data AS data,"
)
->where("t1.factura_id", $factura_id);
return $builder;
}
}