@@ -2955,7 +2955,8 @@ ISNULL (munic.nombre,'') as sector_env,
...
@@ -2955,7 +2955,8 @@ ISNULL (munic.nombre,'') as sector_env,
--'' as facturaPeru,
--'' as facturaPeru,
--case when XXCustom01 is null then '2' when SUBSTRING(XXCustom01,1,1) = ',' then SUBSTRING(XXCustom01,2,1) else SUBSTRING(XXCustom01,3,1) end tipoCliente, -- 2 es persona natural. 1 es empresa.
--case when XXCustom01 is null then '2' when SUBSTRING(XXCustom01,1,1) = ',' then SUBSTRING(XXCustom01,2,1) else SUBSTRING(XXCustom01,3,1) end tipoCliente, -- 2 es persona natural. 1 es empresa.
case when '1' = (case when XXCustom01 is null then '2' when SUBSTRING(XXCustom01,1,1) = ',' then SUBSTRING(XXCustom01,2,1) else SUBSTRING(XXCustom01,3,1) end) then 'X' else '' end facturaPeru,
case when '1' = (case when XXCustom01 is null then '2' when SUBSTRING(XXCustom01,1,1) = ',' then SUBSTRING(XXCustom01,2,1) else SUBSTRING(XXCustom01,3,1) end) then 'X' else '' end facturaPeru,
t.origenSAP as origen,
'JOMA1' as origen,
--t.origenSAP as origen,
ISNULL(PostalCode,'') as codigoPostalFacturacion,
ISNULL(PostalCode,'') as codigoPostalFacturacion,
ISNULL(PostalCode,'') as codigoPostalEnvio,
ISNULL(PostalCode,'') as codigoPostalEnvio,
'' as empresa_env,
'' as empresa_env,
...
@@ -3608,7 +3609,7 @@ order by p.InternalTransactionId asc</property>
...
@@ -3608,7 +3609,7 @@ order by p.InternalTransactionId asc</property>
refId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Output].ExternalColumns[origen]"
refId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Output].ExternalColumns[origen]"
codePage="1252"
codePage="1252"
dataType="str"
dataType="str"
length="50"
length="5"
name="origen"/>
name="origen"/>
<externalMetadataColumn
<externalMetadataColumn
refId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Output].ExternalColumns[codigoPostalFacturacion]"
refId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Output].ExternalColumns[codigoPostalFacturacion]"
...
@@ -3861,7 +3862,7 @@ order by p.InternalTransactionId asc</property>
...
@@ -3861,7 +3862,7 @@ order by p.InternalTransactionId asc</property>
refId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Error Output].Columns[origen]"
refId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Error Output].Columns[origen]"
codePage="1252"
codePage="1252"
dataType="str"
dataType="str"
length="50"
length="5"
lineageId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Error Output].Columns[origen]"
lineageId="Package\ImportarPedidos\ConsultaPedidos.Outputs[OLE DB Source Error Output].Columns[origen]"
name="origen"/>
name="origen"/>
<outputColumn
<outputColumn
...
@@ -5841,6 +5842,10 @@ order by p.InternalTransactionId asc</property>
...
@@ -5841,6 +5842,10 @@ order by p.InternalTransactionId asc</property>
Size="166,44"
Size="166,44"
Id="Package\ImportarPedidos\LLenarPedidos"
Id="Package\ImportarPedidos\LLenarPedidos"
TopLeft="277,401"/>
TopLeft="277,401"/>
<NodeLayout
Size="162,42"
Id="Package\ImportarPedidos\ConsultaPedidos"
TopLeft="275,109"/>
<NodeLayout
<NodeLayout
Size="182,42"
Size="182,42"
Id="Package\ImportarPedidos\BuscarPedidos"
Id="Package\ImportarPedidos\BuscarPedidos"
...
@@ -5891,10 +5896,6 @@ order by p.InternalTransactionId asc</property>
...
@@ -5891,10 +5896,6 @@ order by p.InternalTransactionId asc</property>
<EdgeLabelCollection/>
<EdgeLabelCollection/>
</EdgeLayout.Labels>
</EdgeLayout.Labels>
</EdgeLayout>
</EdgeLayout>
<NodeLayout
Size="162,42"
Id="Package\ImportarPedidos\ConsultaPedidos"
TopLeft="275,109"/>
<EdgeLayout
<EdgeLayout
Id="Package\ImportarPedidos.Paths[OLE DB Source Output]"
Id="Package\ImportarPedidos.Paths[OLE DB Source Output]"