-- envío de vendedor en la OS
This commit is contained in:
@@ -3407,11 +3407,13 @@ Partial Class OS_OrdenesServicios
|
|||||||
Dim ProcesoOK As Boolean = True
|
Dim ProcesoOK As Boolean = True
|
||||||
Dim CveSubProyectoPedido As Integer = -1
|
Dim CveSubProyectoPedido As Integer = -1
|
||||||
Dim CveMoneda As Integer = -1
|
Dim CveMoneda As Integer = -1
|
||||||
|
Dim tCveVendedor As Integer = -1
|
||||||
|
|
||||||
If ObjVentas.GetVenta(CvePedido, UsuarioActual.CveEmpresa, VerificaAlmacen:=False) Then
|
If ObjVentas.GetVenta(CvePedido, UsuarioActual.CveEmpresa, VerificaAlmacen:=False) Then
|
||||||
Dim DbRowVenta As DataRow = ObjVentas.DtResultados.Copy().Rows(0)
|
Dim DbRowVenta As DataRow = ObjVentas.DtResultados.Copy().Rows(0)
|
||||||
CveMoneda = DbRowVenta("CveMoneda").ToString.ToEntero
|
CveMoneda = DbRowVenta("CveMoneda").ToString.ToEntero
|
||||||
CveSubProyectoPedido = DbRowVenta("CveSubProyecto").ToString().ToEntero()
|
CveSubProyectoPedido = DbRowVenta("CveSubProyecto").ToString().ToEntero()
|
||||||
|
tCveVendedor = DbRowVenta("CveVendedor").ToString.ToEntero
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim ObjFactura As Modelos.Factura = Modelos.Factura.CrearVentaNueva(UsuarioActual, CveSubProyectoPedido, CveCliente, CveMoneda, "Rem")
|
Dim ObjFactura As Modelos.Factura = Modelos.Factura.CrearVentaNueva(UsuarioActual, CveSubProyectoPedido, CveCliente, CveMoneda, "Rem")
|
||||||
@@ -3427,6 +3429,7 @@ Partial Class OS_OrdenesServicios
|
|||||||
ObjFactura.Paciente = TxtPacienteModal.Text.Trim
|
ObjFactura.Paciente = TxtPacienteModal.Text.Trim
|
||||||
ObjFactura.Episodio = TxtEpisodioModal.Text.Trim
|
ObjFactura.Episodio = TxtEpisodioModal.Text.Trim
|
||||||
ObjFactura.Alfa1 = TxtFolioRemisionModal.Text.Trim
|
ObjFactura.Alfa1 = TxtFolioRemisionModal.Text.Trim
|
||||||
|
ObjFactura.CveVendedor = tCveVendedor
|
||||||
|
|
||||||
Dim TmpDTMat As New DataTable
|
Dim TmpDTMat As New DataTable
|
||||||
TmpDTMat.Columns.Add("Consec", GetType(Integer))
|
TmpDTMat.Columns.Add("Consec", GetType(Integer))
|
||||||
|
|||||||
Reference in New Issue
Block a user