@@ 700-701 (lines=2) @@ | ||
697 | } |
|
698 | // si existe una o más referencias se normalizan |
|
699 | if (!empty($datos['Referencia'])) { |
|
700 | if (!isset($datos['Referencia'][0])) { |
|
701 | $datos['Referencia'] = [$datos['Referencia']]; |
|
702 | } |
|
703 | $NroLinRef = 1; |
|
704 | foreach ($datos['Referencia'] as &$r) { |
|
@@ 1723-1725 (lines=3) @@ | ||
1720 | } |
|
1721 | // ajustar las referencias si existen |
|
1722 | if (!empty($datos['Referencia'])) { |
|
1723 | if (!isset($datos['Referencia'][0])) { |
|
1724 | $datos['Referencia'] = [$datos['Referencia']]; |
|
1725 | } |
|
1726 | foreach ($datos['Referencia'] as &$r) { |
|
1727 | foreach (['TpoDocRef', 'FolioRef', 'FchRef'] as $c) { |
|
1728 | if (isset($r[$c])) { |