Limpieza: comentarios en el codigo, if vacio de CreateHojaRuta y documentacion. Versión 2.1.8.0
Sin cambios de comportamiento. Comentarios en Picking, Recibo, ConnectionServiceLayer, CreditNotesRepository, InvoiceRepository y RepositoryWrapper. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
57b4578f1f
commit
a5a4160471
9 files changed
+66
-26
No files matched your search
@@ -48,6 +48,7 @@ namespace Net.Connection.ServiceLayer
|
||||
_responseLoginServiceLayer = new ResponseLoginServiceLayer();
|
||||
}
|
||||
|
||||
// Inicia sesion en el Service Layer (cookie B1SESSION). Usa SapServiceLayer:company/user/password de appsettings.json
|
||||
public async Task<ResponseLoginServiceLayer> Login()
|
||||
{
|
||||
try
|
||||
@@ -135,6 +136,7 @@ namespace Net.Connection.ServiceLayer
|
||||
return _responseLoginServiceLayer;
|
||||
}
|
||||
}
|
||||
// Igual que Login(); duplicado historico (candidato a unificar)
|
||||
public async Task<ResponseLoginServiceLayer> LoginPost()
|
||||
{
|
||||
try
|
||||
@@ -223,6 +225,7 @@ namespace Net.Connection.ServiceLayer
|
||||
return _responseLoginServiceLayer;
|
||||
}
|
||||
}
|
||||
// GET al Service Layer. dinamico = true: la respuesta es una sola entidad (ej. Invoices(123)); false: coleccion { value: [...] }
|
||||
public async Task<List<T>> GetAsync<T>(string Query, int maxpagesize,bool dinamico = false)
|
||||
{
|
||||
try
|
||||
@@ -304,6 +307,8 @@ namespace Net.Connection.ServiceLayer
|
||||
// PASAMOS LA EXCEPCIÓN A LA APP.
|
||||
}
|
||||
}
|
||||
// POST con cuerpo JSON. Reintenta una vez si la sesion expiro (401). Si SAP rechaza, devuelve Exito = false y guarda
|
||||
// el JSON enviado con ErrorLogger (tabla ITCA_LOG_INTEGRACION)
|
||||
public async Task<T> PostAsync<T>(string Query, object obj)
|
||||
{
|
||||
|
||||
@@ -434,6 +439,7 @@ namespace Net.Connection.ServiceLayer
|
||||
// PASAMOS LA EXCEPCIÓN A LA APP.
|
||||
}
|
||||
}
|
||||
// POST sin cuerpo para reabrir un documento (ej. Invoices(n)/Reopen). SAP responde 204 sin contenido y se toma como exito
|
||||
public async Task<T> PostReOpen<T>(string Query)
|
||||
{
|
||||
|
||||
@@ -566,6 +572,7 @@ namespace Net.Connection.ServiceLayer
|
||||
// PASAMOS LA EXCEPCIÓN A LA APP.
|
||||
}
|
||||
}
|
||||
// POST sin cuerpo para cerrar un documento (.../Close)
|
||||
public async Task<T> PostClose<T>(string Query)
|
||||
{
|
||||
|
||||
@@ -694,6 +701,7 @@ namespace Net.Connection.ServiceLayer
|
||||
// PASAMOS LA EXCEPCIÓN A LA APP.
|
||||
}
|
||||
}
|
||||
// PATCH con cuerpo JSON. OJO: con un 204 real devuelve null sin marcar exito (bug conocido); para PATCH sin respuesta usar PatchNoContentAsync
|
||||
public async Task<T> PatchAsyncSBA<T>(string Query, object obj)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in new issue
Block a user