@@ 679-680 (lines=2) @@ | ||
676 | } |
|
677 | // si existe una o más referencias se normalizan |
|
678 | if (!empty($datos['Referencia'])) { |
|
679 | if (!isset($datos['Referencia'][0])) { |
|
680 | $datos['Referencia'] = [$datos['Referencia']]; |
|
681 | } |
|
682 | $NroLinRef = 1; |
|
683 | foreach ($datos['Referencia'] as &$r) { |
|
@@ 1687-1689 (lines=3) @@ | ||
1684 | } |
|
1685 | // ajustar las referencias si existen |
|
1686 | if (!empty($datos['Referencia'])) { |
|
1687 | if (!isset($datos['Referencia'][0])) { |
|
1688 | $datos['Referencia'] = [$datos['Referencia']]; |
|
1689 | } |
|
1690 | foreach ($datos['Referencia'] as &$r) { |
|
1691 | foreach (['TpoDocRef', 'FolioRef', 'FchRef'] as $c) { |
|
1692 | if (isset($r[$c])) { |