PARA TODAS LAS FACTURAS RECTIFICATIVAS YA QUE FS PONE LOS IMPORTES EN NEGATIVO EL TIPO DE RECTIFICATIVA DEBERÍA SER SIEMPRE POR DIFERENCIA Y NO POR SUSTITUCION EN NINGÚN CASO.
if ($invoiceRect) { $json['invoice']['header']['rectifyingInvoice'] = [ 'code' => strtolower($invoiceRect->codserie) === 's' ? 'R5' : 'R1', 'type' => $invoiceRect->total === abs($this->total) ? 'S' : 'I' ]; EN ESTE IF EL TYPE DEBERÍA SER SIEMPRE 'I' Y NO UN CONDICIONAL.
Fecha de inicio: 21-12-2022, Fecha de fin: 21-12-2022, pull request enviada, Puntos de soporte +5