leonardo 2015-05-04 23:30:34 +00:00
parent 5d563eb0fb
commit 793814c652
1 changed files with 8 additions and 3 deletions

View File

@ -122,6 +122,7 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaChe
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd;
import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao;
import com.rjconsultores.ws.totvs.dao.DAO;
import com.rjconsultores.ws.totvs.service.TotvsService;
import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno;
@ -822,7 +823,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
TotvsService.setSb(sb);
}
TotvsService.cadastrarTituloAReceber(checkTodosPuntosVenta.isChecked() ? null : puntoVenta.getPuntoventaId(), dateInicio, dateFim, myConn);
DAO.getInstance().setDBConnection(myConn);
String strEmpresas = DAO.getInstance().obterConstante("EMPRESAS_INTEGRACAO");
for (String empresaId : strEmpresas.split(",")){
TotvsService.cadastrarTituloAReceber(checkTodosPuntosVenta.isChecked() ? null : puntoVenta.getPuntoventaId(), dateInicio, dateFim, myConn, Integer.parseInt(empresaId));
}
if (!checkSimulaIntegracion.isChecked()) {
myConn.commit();