diff --git a/ci4/app/Entities/Facturas/FacturaEntity.php b/ci4/app/Entities/Facturas/FacturaEntity.php index 99f923b5..ce2ab573 100755 --- a/ci4/app/Entities/Facturas/FacturaEntity.php +++ b/ci4/app/Entities/Facturas/FacturaEntity.php @@ -48,4 +48,14 @@ class FacturaEntity extends \CodeIgniter\Entity\Entity 'creditoAsegurado' => 'float', ]; + public function getIdFromNumero(string $numero): ?int + { + $facturaModel = model('\App\Models\Facturas\FacturaModel'); + $factura = $facturaModel->where('numero', $numero)->first(); + + return $factura?->id; + } + + + } \ No newline at end of file diff --git a/ci4/app/Language/es/Facturas.php b/ci4/app/Language/es/Facturas.php index fd058b51..1765a9da 100755 --- a/ci4/app/Language/es/Facturas.php +++ b/ci4/app/Language/es/Facturas.php @@ -21,8 +21,8 @@ return [ 'dias' => 'Días', 'serieFacturacion' => 'Serie facturación', 'creditoAsegurado' => 'Crédito asegurado', - 'facturaRectificada' => 'Factura rectificada', - 'facturaRectificativa' => 'Factura rectificativa', + 'facturaRectificada' => 'Fact. rectificada', + 'facturaRectificativa' => 'Fact. rectificativa', 'razonSocial' => 'Razón Social', 'cif' => 'CIF', 'direccion' => 'Dirección', diff --git a/ci4/app/Views/themes/vuexy/form/facturas/_facturaCabeceraItems.php b/ci4/app/Views/themes/vuexy/form/facturas/_facturaCabeceraItems.php index 6f58ad99..53c9141c 100755 --- a/ci4/app/Views/themes/vuexy/form/facturas/_facturaCabeceraItems.php +++ b/ci4/app/Views/themes/vuexy/form/facturas/_facturaCabeceraItems.php @@ -99,7 +99,16 @@