@@ 678-679 (lines=2) @@ | ||
675 | } |
|
676 | // si existe una o más referencias se normalizan |
|
677 | if (!empty($datos['Referencia'])) { |
|
678 | if (!isset($datos['Referencia'][0])) |
|
679 | $datos['Referencia'] = [$datos['Referencia']]; |
|
680 | $NroLinRef = 1; |
|
681 | foreach ($datos['Referencia'] as &$r) { |
|
682 | $r = array_merge([ |
|
@@ 1604-1606 (lines=3) @@ | ||
1601 | } |
|
1602 | // ajustar las referencias si existen |
|
1603 | if (!empty($datos['Referencia'])) { |
|
1604 | if (!isset($datos['Referencia'][0])) { |
|
1605 | $datos['Referencia'] = [$datos['Referencia']]; |
|
1606 | } |
|
1607 | foreach ($datos['Referencia'] as &$r) { |
|
1608 | foreach (['TpoDocRef', 'FolioRef', 'FchRef'] as $c) { |
|
1609 | if (isset($r[$c])) { |