fixes bug#22868

dev: Celio
qua:

Alteração no layout de envio solicitado pelo cliente

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@108555 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabio 2021-08-30 20:10:05 +00:00
parent 0a7d46b7ec
commit 56a7576556
2 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ public class IntegracaoSapRest {
json.append("{");
json.append(" \"ID_LEGADO\": \"010\",");
json.append(" \"AGENCIA\": {");
json.append(" \"KUNNR\": \"").append( formatarValorPorTamanhoZeroEsquerda(fcc.getNumPuntoVenta(), 10)).append("\",");
json.append(" \"TSTCD1\": \"").append( fcc.getCnpjPuntoVenta()).append("\"");
json.append(" },");
json.append(" \"BOLETO\": [{");

View File

@ -83,7 +83,7 @@ public class SapServiceImpl implements SapService{
suscribir(registro);
contador++;
}else if(integrado.getString("Integration").equals("E")) {
throw new RuntimeException(integrado.getString("Message"));
throw new RuntimeException("Retorno enviado pelo SAP: \r\n"+integrado.getString("Message"));
}
}
}