@@ 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([ |
|
@@ 1581-1583 (lines=3) @@ | ||
1578 | } |
|
1579 | // ajustar las referencias si existen |
|
1580 | if (!empty($datos['Referencia'])) { |
|
1581 | if (!isset($datos['Referencia'][0])) { |
|
1582 | $datos['Referencia'] = [$datos['Referencia']]; |
|
1583 | } |
|
1584 | foreach ($datos['Referencia'] as &$r) { |
|
1585 | foreach (['TpoDocRef', 'FolioRef', 'FchRef'] as $c) { |
|
1586 | if (isset($r[$c])) { |