Correciones de restricciones de credito
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
padding: 0px 5px;
|
padding: 0px 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nolineheight {line-height: 1;
|
.nolineheight { line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.claseesconder {
|
.claseesconder {
|
||||||
@@ -1048,7 +1048,6 @@
|
|||||||
<asp:Literal Text="" runat="server" ID="LtlClienteMsg"></asp:Literal>
|
<asp:Literal Text="" runat="server" ID="LtlClienteMsg"></asp:Literal>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</th>
|
</th>
|
||||||
<%--<th style="text-align: center;">
|
<%--<th style="text-align: center;">
|
||||||
<asp:LinkButton ID="LbVerInventario" ClientIDMode="Static" runat="server" CssClass="btn btn-circle btn-sm purple" Text="<i class='icon-magnifier'></i>"></asp:LinkButton>
|
<asp:LinkButton ID="LbVerInventario" ClientIDMode="Static" runat="server" CssClass="btn btn-circle btn-sm purple" Text="<i class='icon-magnifier'></i>"></asp:LinkButton>
|
||||||
@@ -6438,9 +6437,6 @@
|
|||||||
DataKeyNames="CveVenta,CveMetodoPago33,CveFormaPago33" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
DataKeyNames="CveVenta,CveMetodoPago33,CveFormaPago33" CssClass="table table-striped table-advance table-hover Widthall mysmallbtn" GridLines="None">
|
||||||
<Columns>
|
<Columns>
|
||||||
<asp:TemplateField>
|
<asp:TemplateField>
|
||||||
<HeaderTemplate>
|
|
||||||
<asp:CheckBox ID="ChkAllCxC" CssClass="gvcxcAllChe" onclick="chkSeleccionarNC();" runat="server" />
|
|
||||||
</HeaderTemplate>
|
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:CheckBox ID="ChkCxC" CssClass="gvcxcChe" runat="server" />
|
<asp:CheckBox ID="ChkCxC" CssClass="gvcxcChe" runat="server" />
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
@@ -7658,12 +7654,6 @@
|
|||||||
<script src="/Metronic/assets/global/scripts/jquery-sortable.js"></script>
|
<script src="/Metronic/assets/global/scripts/jquery-sortable.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
//$('body').on('click', '.gvcxcAllChe input', function () { });
|
|
||||||
|
|
||||||
function chkSeleccionarNC() {
|
|
||||||
$(".gvcxcChe input").not(this).click();
|
|
||||||
}
|
|
||||||
|
|
||||||
//FUNCIONES PARA COMERCIO EXTERIOR
|
//FUNCIONES PARA COMERCIO EXTERIOR
|
||||||
function CalculaTotalUSD(TotalUSD, ValorUnitario, TxtCantidad) {
|
function CalculaTotalUSD(TotalUSD, ValorUnitario, TxtCantidad) {
|
||||||
TotalUSD.innerText = FormatoNumero(ToDouble(ValorUnitario.value) * ToDouble(TxtCantidad.value), 2);
|
TotalUSD.innerText = FormatoNumero(ToDouble(ValorUnitario.value) * ToDouble(TxtCantidad.value), 2);
|
||||||
@@ -8315,17 +8305,6 @@
|
|||||||
Entro = 1;
|
Entro = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
<%-- if ('<%= UsuarioActual.Empresa.Funcionalidad(344) %>' == '1') {
|
|
||||||
let ImporteRestante = ToDouble($get('TxtImportesRemisionesNC').value) - ToDouble($get('TxtNCImporte').value)
|
|
||||||
if (ImporteRestante > 0) {
|
|
||||||
if (ImporteRestante < ImporteNuevo) {
|
|
||||||
ImporteNuevo = ImporteRestante;
|
|
||||||
}
|
|
||||||
Entro = 1;
|
|
||||||
}else {
|
|
||||||
ImporteNuevo = 0;
|
|
||||||
}
|
|
||||||
}--%>
|
|
||||||
|
|
||||||
if (ImporteNuevo > Saldo) {
|
if (ImporteNuevo > Saldo) {
|
||||||
ImporteNuevo = Saldo;
|
ImporteNuevo = Saldo;
|
||||||
|
|||||||
@@ -2471,15 +2471,15 @@ Partial Class Ventas
|
|||||||
LnkImprimirFormatoTelcel.Visible = True
|
LnkImprimirFormatoTelcel.Visible = True
|
||||||
End If
|
End If
|
||||||
|
|
||||||
'If UsuarioActual.TienePermisoProceso(269) AndAlso Not DevolucionAlmacen = 2 Then
|
If UsuarioActual.TienePermisoProceso(269) AndAlso Not DevolucionAlmacen = 2 Then
|
||||||
' Dim ObjInventario As New ClsInventarios
|
Dim ObjInventario As New ClsInventarios
|
||||||
' If ObjInventario.GetInv_Mov(CveVenta, UsuarioActual.CveEmpresa) Then
|
If ObjInventario.GetInv_Mov(CveVenta, UsuarioActual.CveEmpresa) Then
|
||||||
' If ObjInventario.DtResultados.Rows.Count > 0 Then
|
If ObjInventario.DtResultados.Rows.Count > 0 Then
|
||||||
' DivDevAlm.Visible = True
|
DivDevAlm.Visible = True
|
||||||
' End If
|
End If
|
||||||
' End If
|
End If
|
||||||
' ObjInventario.Dispose()
|
ObjInventario.Dispose()
|
||||||
'End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -2806,7 +2806,7 @@ Partial Class Ventas
|
|||||||
CargaFormatoSucursal()
|
CargaFormatoSucursal()
|
||||||
|
|
||||||
InicializaDevolucionAlmacen()
|
InicializaDevolucionAlmacen()
|
||||||
'CargaOtrosConceptos()
|
CargaOtrosConceptos()
|
||||||
CargaFacturaOC()
|
CargaFacturaOC()
|
||||||
|
|
||||||
'SELECCIONA SUCURSAL DEL USUARIO CUANDO SEA VENTA NUEVA Y SIN CLIENTE
|
'SELECCIONA SUCURSAL DEL USUARIO CUANDO SEA VENTA NUEVA Y SIN CLIENTE
|
||||||
@@ -5652,6 +5652,7 @@ Partial Class Ventas
|
|||||||
EnviarCorreoCliente = ObjCliente.EnviarFactura
|
EnviarCorreoCliente = ObjCliente.EnviarFactura
|
||||||
EstatusCliente = ObjCliente.Estatus
|
EstatusCliente = ObjCliente.Estatus
|
||||||
|
|
||||||
|
Me.PermiteCredito = ObjCliente.PermiteCredito
|
||||||
LnkAgregarCliente.Visible = False
|
LnkAgregarCliente.Visible = False
|
||||||
|
|
||||||
ClienteEsDistribuidor = Boolean.Parse(ObjCliente.DtResultados.Rows(0)("EsDistribuidor").ToString())
|
ClienteEsDistribuidor = Boolean.Parse(ObjCliente.DtResultados.Rows(0)("EsDistribuidor").ToString())
|
||||||
@@ -5744,17 +5745,10 @@ Partial Class Ventas
|
|||||||
ImprimeNombreSucursal = ObjCliente.ImprimeNombreSucursal
|
ImprimeNombreSucursal = ObjCliente.ImprimeNombreSucursal
|
||||||
'ViewState("NumCtaPago") = ObjCliente.NumCtaPago
|
'ViewState("NumCtaPago") = ObjCliente.NumCtaPago
|
||||||
ViewState("ClienteDesglosaIEPS") = ObjCliente.DesglosaIEPS
|
ViewState("ClienteDesglosaIEPS") = ObjCliente.DesglosaIEPS
|
||||||
ViewState("ClienteNODesglosaIVA") = ObjCliente.NoDesglosaIVA
|
|
||||||
|
|
||||||
If Not ClienteDesglosaIEPS Then
|
If Not ClienteDesglosaIEPS Then
|
||||||
DivClienteMsg.Visible = True
|
DivClienteMsg.Visible = True
|
||||||
LtlClienteMsg.Text = "Cálculo sin desglose de IEPS"
|
LtlClienteMsg.Text = "Cálculo sin desglose de IEPS"
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If ClienteNODesglosaIVA Then
|
|
||||||
DivClienteMsg.Visible = True
|
|
||||||
LtlClienteMsg.Text += "Cálculo NO desglosa IVA"
|
|
||||||
End If
|
|
||||||
ViewState("CargoUsado") = ObjCliente.CargoUsados
|
ViewState("CargoUsado") = ObjCliente.CargoUsados
|
||||||
|
|
||||||
Dim dr As DataRow = Nothing
|
Dim dr As DataRow = Nothing
|
||||||
@@ -5772,7 +5766,7 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
'HABILITA LA OPCION DE DIRECCION DE ENVIO
|
'HABILITA LA OPCION DE DIRECCION DE ENVIO
|
||||||
If UsuarioActual.CveEmpresa.Contiene(1, 72, 119, 140) Then
|
If UsuarioActual.CveEmpresa.Contiene(1, 72, 119) Then
|
||||||
trDireccionEnvio.Visible = True
|
trDireccionEnvio.Visible = True
|
||||||
CargaDireccionesEnvio()
|
CargaDireccionesEnvio()
|
||||||
End If
|
End If
|
||||||
@@ -6006,7 +6000,7 @@ Partial Class Ventas
|
|||||||
TrAtencionA.Visible = True
|
TrAtencionA.Visible = True
|
||||||
tdVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
tdVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
||||||
tdFechaVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
tdFechaVigencia.Visible = DdlTipoComprobante.SelectedValue.Contiene("Cot")
|
||||||
Me.PermiteCredito = ObjCliente.PermiteCredito
|
|
||||||
|
|
||||||
LbAgregar.Enabled = True
|
LbAgregar.Enabled = True
|
||||||
LnkAgregarPyME.Enabled = True
|
LnkAgregarPyME.Enabled = True
|
||||||
@@ -6086,6 +6080,8 @@ Partial Class Ventas
|
|||||||
UpModalRemisionesNC.Update()
|
UpModalRemisionesNC.Update()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
CargaFacturasARelacionar()
|
||||||
|
|
||||||
If RequiereOC Then
|
If RequiereOC Then
|
||||||
Dim Documentacion As String = ""
|
Dim Documentacion As String = ""
|
||||||
'RegistraScript("$('#DivDocsCliente').modal({ backdrop: 'static', keyboard: false });", "ModalArchivos")
|
'RegistraScript("$('#DivDocsCliente').modal({ backdrop: 'static', keyboard: false });", "ModalArchivos")
|
||||||
@@ -6352,7 +6348,9 @@ Partial Class Ventas
|
|||||||
DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("Ant"))
|
DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("Ant"))
|
||||||
End If
|
End If
|
||||||
DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("Rem"))
|
DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("Rem"))
|
||||||
If Opcion = 1 Then
|
|
||||||
|
'SI ES AUTORIZACION DEBE PERMITIR GENERARLA
|
||||||
|
If Opcion = 1 AndAlso (Not DdlTipoComprobante.SelectedValue.Contiene("PA")) Then
|
||||||
BtnEmitirImprimir.Visible = False
|
BtnEmitirImprimir.Visible = False
|
||||||
BtnsFacturar.Visible = False
|
BtnsFacturar.Visible = False
|
||||||
LBFacturarAnticipo.Visible = UsuarioActual.TienePermisoProceso(274)
|
LBFacturarAnticipo.Visible = UsuarioActual.TienePermisoProceso(274)
|
||||||
@@ -6361,6 +6359,7 @@ Partial Class Ventas
|
|||||||
LnkCotizaciones.Visible = False
|
LnkCotizaciones.Visible = False
|
||||||
LnkOCs.Visible = False
|
LnkOCs.Visible = False
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
' el cliente tiene crédito disponible, no tiene bloqueo
|
' el cliente tiene crédito disponible, no tiene bloqueo
|
||||||
DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("PA"))
|
DdlTipoComprobante.Items.Remove(DdlTipoComprobante.Items.FindByValue("PA"))
|
||||||
@@ -6511,9 +6510,10 @@ Partial Class Ventas
|
|||||||
Vta.Dispose()
|
Vta.Dispose()
|
||||||
If Opcion > 0 Then
|
If Opcion > 0 Then
|
||||||
Alert(OpcionMsg, TipoMensaje.MsgAdvertencia)
|
Alert(OpcionMsg, TipoMensaje.MsgAdvertencia)
|
||||||
|
BtnsFacturar.Visible = False
|
||||||
|
BtnGenerarRemision.Visible = False
|
||||||
End If
|
End If
|
||||||
BtnsFacturar.Visible = False
|
|
||||||
BtnGenerarRemision.Visible = False
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
End If
|
End If
|
||||||
@@ -6868,7 +6868,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
Dim CveSATNC = "84111506"
|
Dim CveSATNC = "84111506"
|
||||||
Dim dtt As New DataTable
|
Dim dtt As New DataTable
|
||||||
dtt = GlobalDTPSSimplificado(UsuarioActual.CveEmpresa, CodigoSATPS:=CveSATNC, AplicaParaVenta:=1) ', SATClavePS:=CveSATNC
|
dtt = GlobalDTPS(UsuarioActual.CveEmpresa, SATClavePS:=CveSATNC, AplicaParaVenta:=1) ', SATClavePS:=CveSATNC
|
||||||
|
|
||||||
If dtt IsNot Nothing Then
|
If dtt IsNot Nothing Then
|
||||||
DdlNCPS.DataSource = dtt
|
DdlNCPS.DataSource = dtt
|
||||||
@@ -12577,7 +12577,7 @@ Partial Class Ventas
|
|||||||
CveSubProyectoContabilizar = CveSubProyectoVenta
|
CveSubProyectoContabilizar = CveSubProyectoVenta
|
||||||
|
|
||||||
If importeMovimiento <> 0 Then
|
If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, ConceptoContable, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=row2.DataKey("CveVenta").ToEntero(), CveVentaAmortizacion:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=importeMovimiento, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, ConceptoContable, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=row2.DataKey("CveVenta").ToEntero(), CveVentaAmortizacion:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=importeMovimiento * tipoCambio, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, Contabilizable:=SeContabiliza) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
Else
|
Else
|
||||||
@@ -12601,7 +12601,7 @@ Partial Class Ventas
|
|||||||
CveSubProyectoContabilizar = CveSubProyectoVenta
|
CveSubProyectoContabilizar = CveSubProyectoVenta
|
||||||
|
|
||||||
If importeMovimiento <> 0 Then
|
If importeMovimiento <> 0 Then
|
||||||
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, ConceptoContable, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=CveVentaAnticipo, CveVentaAmortizacion:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=importeMovimiento * tipoCambio, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, Contabilizable:=SeContabiliza) Then
|
If Not ObjConta.AddPrePolizasDetalle(ObjFactura.CvePrePoliza, TipoMovimiento, importeMovimiento, Referencia, ConceptoContable, Concepto, FechaMovimiento, IdCtaContable, -1, CveVenta:=CveVentaAnticipo, CveVentaAmortizacion:=ObjFactura.CveVenta, CveCliente:=ObjFactura.CveCliente, CveIE:=CveIEAnticipo, ImporteMX:=importeMovimiento, ImporteME:=If(tipoCambio = 1, 0, importeMovimiento), CveSubProyecto:=CveSubProyectoContabilizar, Contabilizable:=SeContabiliza) Then
|
||||||
ErrorPrepoliza = True
|
ErrorPrepoliza = True
|
||||||
Exit For
|
Exit For
|
||||||
Else
|
Else
|
||||||
@@ -13612,7 +13612,7 @@ Partial Class Ventas
|
|||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If CveConceptoAlmacen = 3 AndAlso UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 140, 141}) AndAlso DdlTipoComprobante.SelectedValue.Contiene("Rem", "Ing") AndAlso Dr("EntregaDirecta").ToString().ToEntero() < 1 Then
|
If CveConceptoAlmacen = 3 AndAlso UsuarioActual.CveEmpresa.Contiene({72, 80, 119,140}) AndAlso DdlTipoComprobante.SelectedValue.Contiene("Rem", "Ing") AndAlso Dr("EntregaDirecta").ToString().ToEntero() < 1 Then
|
||||||
Existencia = ObjInventario.GetExistenciasPS(CveProducto, CveUnidad, UsuarioActual.CveEmpresa, CveAlmacen, FechaMovto:=DateTime.Today.AddDays(1).ToString("yyyy/MM/dd HH:mm"), CveSubProyecto:=DdlSubProyectoDatos.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), CveCliente:=If(UsuarioActual.Empresa.Funcionalidad(146) = "1", -1, CveCliente), ExcluyeAdelantado:=1, RestringirAlmacenes:=1, ExcluyeApartados:=1)
|
Existencia = ObjInventario.GetExistenciasPS(CveProducto, CveUnidad, UsuarioActual.CveEmpresa, CveAlmacen, FechaMovto:=DateTime.Today.AddDays(1).ToString("yyyy/MM/dd HH:mm"), CveSubProyecto:=DdlSubProyectoDatos.SelectedValue.ToEntero(), CveVendedor:=DdlVendedor.SelectedValue.ToEntero(), CveCliente:=If(UsuarioActual.Empresa.Funcionalidad(146) = "1", -1, CveCliente), ExcluyeAdelantado:=1, RestringirAlmacenes:=1, ExcluyeApartados:=1)
|
||||||
If Existencia < Cantidad Then
|
If Existencia < Cantidad Then
|
||||||
OcurrioError = True
|
OcurrioError = True
|
||||||
@@ -16875,7 +16875,7 @@ Partial Class Ventas
|
|||||||
|
|
||||||
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Then
|
If DdlTipoComprobante.SelectedValue <> "Cot" And ChkSinExistencia.Checked = False Then
|
||||||
'VALIDA EXISTENCIA
|
'VALIDA EXISTENCIA
|
||||||
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 140, 153}) Then
|
If UsuarioActual.CveEmpresa.Contiene({72, 80, 119, 153,140}) Then
|
||||||
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
If Existencia - TmpDT.SUM("Cantidad", $"CvePS = {CvePS} AND (EntregaDirecta IS NULL OR EntregaDirecta < 1)") < TxtCantidad.Text.ToDouble Then
|
||||||
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
Alert("No cuenta con la cantidad suficiente en inventario. Cuenta con " + Existencia.FormatoNumero(2) + ".", TipoMensaje.MsgAdvertencia)
|
||||||
Return False
|
Return False
|
||||||
@@ -21621,19 +21621,17 @@ Partial Class Ventas
|
|||||||
If ObjInv.GetInv_Mov(CveVenta, UsuarioActual.CveEmpresa) Then
|
If ObjInv.GetInv_Mov(CveVenta, UsuarioActual.CveEmpresa) Then
|
||||||
If ObjInv.DtResultados.Rows.Count > 0 Then
|
If ObjInv.DtResultados.Rows.Count > 0 Then
|
||||||
CargaGVInv(ObjInv.DtResultados)
|
CargaGVInv(ObjInv.DtResultados)
|
||||||
If UsuarioActual.TienePermisoProceso(269) AndAlso Not DevolucionAlmacen = 2 Then
|
|
||||||
|
|
||||||
DivDevAlm.Visible = True
|
|
||||||
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjInv.Dispose()
|
ObjInv.Dispose()
|
||||||
|
|
||||||
'si es la empresa 119, Candado, no permiter refacturar, si no se ha surtido, para que cancele la factura mejor.
|
'si es la empresa 119, Candado, no permite refacturar, si no se ha surtido y que no sea refacturación, para que cancele la factura mejor.
|
||||||
If UsuarioActual.CveEmpresa = 119 AndAlso LkRefacturacion.Visible AndAlso VentaSaldoAlmacen = 0 Then
|
If UsuarioActual.CveEmpresa = 119 AndAlso LkRefacturacion.Visible AndAlso VentaSaldoAlmacen = 0 And CveVentaPadre <= 0 Then
|
||||||
LkRefacturacion.Visible = False
|
LkRefacturacion.Visible = False
|
||||||
End If
|
End If
|
||||||
|
If UsuarioActual.CveEmpresa = 119 AndAlso CveVenta = 620098 Then
|
||||||
|
LkRefacturacion.Visible = True
|
||||||
|
End If
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Private Sub CargaGVInv(DtTemporal As DataTable)
|
Private Sub CargaGVInv(DtTemporal As DataTable)
|
||||||
@@ -21781,7 +21779,7 @@ Partial Class Ventas
|
|||||||
DdlDireccionEnvio.Items.Clear()
|
DdlDireccionEnvio.Items.Clear()
|
||||||
If ObjClientes.DireccionEnvioGet(-1, CveCliente, CveClienteSucursal) Then
|
If ObjClientes.DireccionEnvioGet(-1, CveCliente, CveClienteSucursal) Then
|
||||||
DdlDireccionEnvio.DataSource = ObjClientes.DtResultados.FiltraParametros(String.Format("Estatus = 1"))
|
DdlDireccionEnvio.DataSource = ObjClientes.DtResultados.FiltraParametros(String.Format("Estatus = 1"))
|
||||||
|
DdlDireccionEnvio.DataBind()
|
||||||
'DdlDireccionEnvio.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
'DdlDireccionEnvio.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
TmpDTEnvioDireccion = ObjClientes.DtResultados
|
TmpDTEnvioDireccion = ObjClientes.DtResultados
|
||||||
Else
|
Else
|
||||||
@@ -21793,7 +21791,6 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
ObjClientes.Dispose()
|
ObjClientes.Dispose()
|
||||||
DdlDireccionEnvio.DataBind()
|
|
||||||
UpCliente.Update()
|
UpCliente.Update()
|
||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
@@ -23559,15 +23556,13 @@ Partial Class Ventas
|
|||||||
End If
|
End If
|
||||||
DdlMarca.Items.Clear()
|
DdlMarca.Items.Clear()
|
||||||
DdlMarcaPSDes.Items.Clear()
|
DdlMarcaPSDes.Items.Clear()
|
||||||
|
Dim ObjMarcas As New ClsProductosServicios
|
||||||
Dim dt As DataTable = GlobalDTGralMarcas(UsuarioActual.CveEmpresa)
|
ObjMarcas.GetMarcas(UsuarioActual.CveEmpresa)
|
||||||
|
DdlMarca.DataSource = ObjMarcas.DtResultados
|
||||||
DdlMarca.DataSource = dt
|
DdlMarcaPSDes.DataSource = ObjMarcas.DtResultados
|
||||||
DdlMarcaPSDes.DataSource = dt
|
ObjMarcas.Dispose()
|
||||||
|
|
||||||
DdlMarca.DataBind()
|
DdlMarca.DataBind()
|
||||||
DdlMarcaPSDes.DataBind()
|
DdlMarcaPSDes.DataBind()
|
||||||
dt.Dispose()
|
|
||||||
End If
|
End If
|
||||||
DdlMarca.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlMarca.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
DdlMarcaPSDes.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
DdlMarcaPSDes.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||||
|
|||||||
Reference in New Issue
Block a user