Totvs - WS Fornecedor / WS Cliente / WS Pedido Compra (bug #6127)
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@42725 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
1ea013e703
commit
676f01456f
|
@ -95,6 +95,7 @@ import com.rjconsultores.ventaboletos.service.PuntoVentaService;
|
|||
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioBancarioService;
|
||||
import com.rjconsultores.ventaboletos.service.UsuarioService;
|
||||
import com.rjconsultores.ventaboletos.utilerias.InscricaoEstadualUtil;
|
||||
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
|
||||
import com.rjconsultores.ventaboletos.web.gui.controladores.configuracioneccomerciales.FechamentoParamptovtaListItemRenderer;
|
||||
import com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta;
|
||||
|
@ -252,6 +253,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
private MyTextbox txtNumFax;
|
||||
private MyTextbox txtCompl;
|
||||
private MyTextbox txtNumAg;
|
||||
private MyTextbox txtDigitoAg;
|
||||
private MyTextbox txtConta;
|
||||
private MyTextbox txtDigito;
|
||||
private MyTextbox txtBilhetes;
|
||||
|
@ -710,7 +712,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
puntoVenta.setNumIEPuntoVenta("ISENTO");
|
||||
txtNumIEPuntoVenta.setValue("ISENTO");
|
||||
txtNumIEPuntoVenta.setDisabled(true);
|
||||
|
||||
|
||||
} else {
|
||||
puntoVenta.setNumIEPuntoVenta("");
|
||||
txtNumIEPuntoVenta.setValue("");
|
||||
|
@ -938,6 +940,23 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
cmbTipoConta.getValue();
|
||||
cmbPosicao.getValue();
|
||||
|
||||
if (!ckIsento.isChecked()) {
|
||||
try {
|
||||
String uf = puntoVenta.getColonia() == null ? null : puntoVenta.getColonia().getCiudad().getEstado().getCveestado();
|
||||
String inscEstadual = puntoVenta.getNumIEPuntoVenta();
|
||||
|
||||
InscricaoEstadualUtil.valida(inscEstadual, uf);
|
||||
} catch (Exception e) {
|
||||
log.error("editarPuntoVentaController: ", e);
|
||||
Messagebox.show(e.getMessage(), Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||
Messagebox.OK, Messagebox.ERROR);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
String numagencia = txtNumAg.getValue() + (StringUtils.isBlank(txtDigitoAg.getValue()) ? "" : "-" + txtDigitoAg.getValue());
|
||||
puntoVenta.getAgenciaId().setNumagencia(numagencia);
|
||||
|
||||
if (puntoVenta.getPuntoVentaPadre() == null && !cmbPuntoVentaPadre.getValue().isEmpty()) {
|
||||
cmbPuntoVentaPadre.getValue(true);
|
||||
}
|
||||
|
|
|
@ -276,23 +276,24 @@
|
|||
</row>
|
||||
<row>
|
||||
<!-- Inscrição Estadual -->
|
||||
<label value="${c:l('editarPuntoVentaController.lbIE.value')}" />
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbIE.value')}" />
|
||||
<hbox>
|
||||
|
||||
<textbox id="txtNumIEPuntoVenta" width="100%" maxlength="20"
|
||||
<textbox id="txtNumIEPuntoVenta"
|
||||
width="100%" maxlength="20"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.numIEPuntoVenta}"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
|
||||
<checkbox id="ckIsento"
|
||||
checked="@{winEditarPuntoVenta$composer.puntoVenta.incProgConcessaoCredito}" />
|
||||
<label value="ISENTO" />
|
||||
|
||||
<checkbox id="ckIsento" />
|
||||
<label value="ISENTO" />
|
||||
</hbox>
|
||||
</row>
|
||||
<row>
|
||||
<!-- Inscrição Programa concessão de Crédito -->
|
||||
<label
|
||||
value="${c:l('editarPuntoVentaController.lbProgConcessao.value')}" />
|
||||
<checkbox
|
||||
<checkbox id="ckIncProgConcessaoCredito"
|
||||
checked="@{winEditarPuntoVenta$composer.puntoVenta.incProgConcessaoCredito}" />
|
||||
</row>
|
||||
<row>
|
||||
|
@ -451,14 +452,33 @@
|
|||
</h:table>
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionAgenciaBancariaController.lbNumAg.value')}" />
|
||||
<textbox id="txtNumAg" width="70%"
|
||||
maxlength="5"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numagencia}" />
|
||||
|
||||
<hbox>
|
||||
<h:table border="none">
|
||||
<h:tr>
|
||||
|
||||
<h:td>
|
||||
<textbox id="txtNumAg"
|
||||
width="70%" maxlength="5"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"
|
||||
value="@{winEditarPuntoVenta$composer.puntoVenta.agenciaId.numagencia}" />
|
||||
</h:td>
|
||||
<h:td>
|
||||
<label value=" - " />
|
||||
<textbox id="txtDigitoAg"
|
||||
width="20%" maxlength="1"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />
|
||||
</h:td>
|
||||
|
||||
</h:tr>
|
||||
</h:table>
|
||||
</hbox>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<label
|
||||
value="${c:l('editarConfiguracionAgenciaBancariaController.lbTipoConta.value')}" />
|
||||
|
|
Loading…
Reference in New Issue