mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadidos enlaces a facturas rectificativas/rectificadas
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user