| @@ 712-714 (lines=3) @@ | ||
| 709 | } |
|
| 710 | // si existe una o más referencias se normalizan |
|
| 711 | if (!empty($datos['Referencia'])) { |
|
| 712 | if (!isset($datos['Referencia'][0])) { |
|
| 713 | $datos['Referencia'] = [$datos['Referencia']]; |
|
| 714 | } |
|
| 715 | $NroLinRef = 1; |
|
| 716 | foreach ($datos['Referencia'] as &$r) { |
|
| 717 | $r = array_merge([ |
|
| @@ 1759-1761 (lines=3) @@ | ||
| 1756 | $datos['Encabezado']['Transporte'] = false; |
|
| 1757 | // ajustar las referencias si existen |
|
| 1758 | if (!empty($datos['Referencia'])) { |
|
| 1759 | if (!isset($datos['Referencia'][0])) { |
|
| 1760 | $datos['Referencia'] = [$datos['Referencia']]; |
|
| 1761 | } |
|
| 1762 | foreach ($datos['Referencia'] as &$r) { |
|
| 1763 | foreach (['FchRef'] as $c) { |
|
| 1764 | if (isset($r[$c])) { |
|