Fix bug del id de factura

This commit is contained in:
imnavajas
2024-08-16 16:01:43 +02:00
parent ec8288e6e4
commit 1170852209
2 changed files with 3 additions and 8 deletions

View File

@ -129,6 +129,7 @@ class FacturaModel extends \App\Models\BaseModel {
$builder->join("formas_pago t4", "t3.forma_pago_id = t4.id", "left");
$builder->join("lg_paises t5", "t2.pais_id = t5.id", "left");
$builder->where("t1.id", $factura_id);
$builder->where("t1.deleted_at IS NULL");
$builder->groupBy("t1.id"); // Agrupa por id de la factura