| @@ 690-692 (lines=3) @@ | ||
| 687 | } |
|
| 688 | // si existe una o más referencias se normalizan |
|
| 689 | if (!empty($datos['Referencia'])) { |
|
| 690 | if (!isset($datos['Referencia'][0])) { |
|
| 691 | $datos['Referencia'] = [$datos['Referencia']]; |
|
| 692 | } |
|
| 693 | $NroLinRef = 1; |
|
| 694 | foreach ($datos['Referencia'] as &$r) { |
|
| 695 | $r = array_merge([ |
|
| @@ 1739-1741 (lines=3) @@ | ||
| 1736 | $datos['Encabezado']['Transporte'] = false; |
|
| 1737 | // ajustar las referencias si existen |
|
| 1738 | if (!empty($datos['Referencia'])) { |
|
| 1739 | if (!isset($datos['Referencia'][0])) { |
|
| 1740 | $datos['Referencia'] = [$datos['Referencia']]; |
|
| 1741 | } |
|
| 1742 | foreach ($datos['Referencia'] as &$r) { |
|
| 1743 | foreach (['FchRef'] as $c) { |
|
| 1744 | if (isset($r[$c])) { |
|