--FIX nc en cobro por caja
This commit is contained in:
@@ -1282,9 +1282,9 @@
|
|||||||
let TipoAnticipo = $('#<%= DdlTipoAmortizacionAnticipo.ClientID %>').val();
|
let TipoAnticipo = $('#<%= DdlTipoAmortizacionAnticipo.ClientID %>').val();
|
||||||
|
|
||||||
//si es con.nc,es.el.total
|
//si es con.nc,es.el.total
|
||||||
let Total = ToDouble($get("C_LtlSaldo").value);
|
let Total = ToDouble($get("C_LtlSaldo").value.replace(",",""));
|
||||||
|
|
||||||
let SaldoCompra = parseFloat(parseFloat($get("C_LtlSaldo").value).toFixed(2));
|
let SaldoCompra = parseFloat(parseFloat($get("C_LtlSaldo").value.replace(",", "")).toFixed(2));
|
||||||
|
|
||||||
if (t.checked) {
|
if (t.checked) {
|
||||||
|
|
||||||
@@ -1319,13 +1319,13 @@
|
|||||||
|
|
||||||
function FnCambiaAnt(chk, txt, saldo) {
|
function FnCambiaAnt(chk, txt, saldo) {
|
||||||
|
|
||||||
let Total = ToDouble($get("C_LtlSaldo").value);// ToDouble($get('TxtSubTotal').value);
|
let Total = ToDouble($get("C_LtlSaldo").value.replace(",", ""));// ToDouble($get('TxtSubTotal').value);
|
||||||
|
|
||||||
let TipoAnticipo = $('#<%= DdlTipoAmortizacionAnticipo.ClientID %>').val();
|
let TipoAnticipo = $('#<%= DdlTipoAmortizacionAnticipo.ClientID %>').val();
|
||||||
let importeTxt = parseFloat(txt.value.replace(/,/g, ''));
|
let importeTxt = parseFloat(txt.value.replace(/,/g, ''));
|
||||||
|
|
||||||
if (TipoAnticipo == '4') {
|
if (TipoAnticipo == '4') {
|
||||||
Total = ToDouble($get("C_LtlSaldo").value);
|
Total = ToDouble($get("C_LtlSaldo").value.replace(",", ""));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isNaN(importeTxt)) {
|
if (isNaN(importeTxt)) {
|
||||||
|
|||||||
@@ -758,7 +758,9 @@ Partial Class Ventas_PVCobranza
|
|||||||
|
|
||||||
Private Function GenerarFactura(ByRef VentaRemision As Venta, ByRef ObjVentas As ClsVentas, ByRef ObjClientes As ClsClientes) As Modelos.Factura.MMensajeFactura
|
Private Function GenerarFactura(ByRef VentaRemision As Venta, ByRef ObjVentas As ClsVentas, ByRef ObjClientes As ClsClientes) As Modelos.Factura.MMensajeFactura
|
||||||
Dim Retorno As Modelos.Factura.MMensajeFactura = Nothing
|
Dim Retorno As Modelos.Factura.MMensajeFactura = Nothing
|
||||||
|
Dim SbAlert As New StringBuilder()
|
||||||
|
|
||||||
|
Try
|
||||||
Dim DtRemisiones As New DataTable
|
Dim DtRemisiones As New DataTable
|
||||||
DtRemisiones.Columns.Add(New DataColumn("CveVenta", GetType(Integer)))
|
DtRemisiones.Columns.Add(New DataColumn("CveVenta", GetType(Integer)))
|
||||||
DtRemisiones.Columns.Add(New DataColumn("SerieFolio", GetType(String)))
|
DtRemisiones.Columns.Add(New DataColumn("SerieFolio", GetType(String)))
|
||||||
@@ -872,9 +874,6 @@ Partial Class Ventas_PVCobranza
|
|||||||
ObjFactura.DtAnticiposAplicados = DtAnticipos
|
ObjFactura.DtAnticiposAplicados = DtAnticipos
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim SbAlert As New StringBuilder()
|
|
||||||
|
|
||||||
Try
|
|
||||||
Retorno = ObjFactura.EmitirFactura(False, Transac:=ObjVentas.IniciaTransacSQL(), Modulo:="Cobranza/GuardarVenta", MostrarURL:=True)
|
Retorno = ObjFactura.EmitirFactura(False, Transac:=ObjVentas.IniciaTransacSQL(), Modulo:="Cobranza/GuardarVenta", MostrarURL:=True)
|
||||||
Retorno.Factura = ObjFactura
|
Retorno.Factura = ObjFactura
|
||||||
|
|
||||||
@@ -944,6 +943,9 @@ Partial Class Ventas_PVCobranza
|
|||||||
|
|
||||||
Private Function GenerarNC(ByRef Venta As Venta, ByRef ObjVentas As ClsVentas) As Modelos.Factura.MMensajeFactura
|
Private Function GenerarNC(ByRef Venta As Venta, ByRef ObjVentas As ClsVentas) As Modelos.Factura.MMensajeFactura
|
||||||
Dim Retorno As Modelos.Factura.MMensajeFactura = Nothing
|
Dim Retorno As Modelos.Factura.MMensajeFactura = Nothing
|
||||||
|
Dim SbAlert As New StringBuilder()
|
||||||
|
|
||||||
|
Try
|
||||||
Dim ObjNC = Modelos.Factura.CrearVentaNueva(UsuarioActual, Venta.CveSubProyecto, Venta.CveCliente, Venta.CveMoneda, "Egs")
|
Dim ObjNC = Modelos.Factura.CrearVentaNueva(UsuarioActual, Venta.CveSubProyecto, Venta.CveCliente, Venta.CveMoneda, "Egs")
|
||||||
|
|
||||||
Dim Total As Decimal = TxtNCDev.Text.ToDecimal()
|
Dim Total As Decimal = TxtNCDev.Text.ToDecimal()
|
||||||
@@ -1016,9 +1018,10 @@ Partial Class Ventas_PVCobranza
|
|||||||
|
|
||||||
ObjNC.PreparaTimbre()
|
ObjNC.PreparaTimbre()
|
||||||
|
|
||||||
Dim SbAlert As New StringBuilder()
|
ObjNC.CveFormaPago33 = 21 'Aplicación de anticipos
|
||||||
|
ObjNC.CveMetodoPago33 = 1
|
||||||
|
ObjNC.CveMetodoPago = 1
|
||||||
|
|
||||||
Try
|
|
||||||
Retorno = ObjNC.EmitirFactura(False, Transac:=ObjVentas.IniciaTransacSQL(), Modulo:="Cobranza/GuardarVenta", MostrarURL:=True)
|
Retorno = ObjNC.EmitirFactura(False, Transac:=ObjVentas.IniciaTransacSQL(), Modulo:="Cobranza/GuardarVenta", MostrarURL:=True)
|
||||||
Retorno.Factura = ObjNC
|
Retorno.Factura = ObjNC
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user