mirror of
https://github.com/KeymonSoft/Marquez.git
synced 2026-04-21 06:39:12 +00:00
Version: 5.06.04
Se corriguio el tiempo real, la gestion de las no ventas ahora se actualizan a 3 cuando se hace la no venta.
This commit is contained in:
@@ -529,13 +529,44 @@ Sub B4XPage_Appear
|
||||
c.Position = 0
|
||||
usuario = c.GetString("USUARIO")
|
||||
c.Close
|
||||
' B4XPages.MainPage.batt = batterystatus(0)
|
||||
' B4XPages.MainPage.montoActual = L_MONTOD.Text
|
||||
' B4XPages.MainPage.clientestotal = L_CUANTOST.Text
|
||||
' B4XPages.MainPage.clientesventa = l_cuantosc.Text
|
||||
' B4XPages.MainPage.clientesvisitados = l_porvisitar.TEXT
|
||||
' B4XPages.MainPage.ALMACEN = ALMACEN
|
||||
' B4XPages.MainPage.rutapreventa = l_ruta.text
|
||||
|
||||
Dim conVen As Int = 0
|
||||
Dim sinVen As Int = 0
|
||||
|
||||
Dim cursor As Cursor = Starter.skmt.ExecQuery($"SELECT SUM(PE_COSTO_TOT) AS PE_COSTO_TOT, COUNT(DISTINCT PE_CLIENTE) AS PE_CLIENTE FROM PEDIDO WHERE PE_FOLIO <> 'RECARGA'"$)
|
||||
If cursor.RowCount > 0 Then
|
||||
cursor.Position = 0
|
||||
B4XPages.MainPage.montoActual = cursor.GetString("PE_COSTO_TOT")
|
||||
B4XPages.MainPage.clientesventa = cursor.GetString("PE_CLIENTE")
|
||||
conVen = cursor.GetInt("PE_CLIENTE")
|
||||
End If
|
||||
Log("Clientes con venta: " & conVen)
|
||||
|
||||
Dim cNoVenta As Cursor = Starter.skmt.ExecQuery($"SELECT COUNT(DISTINCT NV_CLIENTE) AS NV_CLIENTE FROM NOVENTA"$)
|
||||
If cNoVenta.RowCount > 0 Then
|
||||
cNoVenta.Position = 0
|
||||
sinVen = cNoVenta.GetInt("NV_CLIENTE")
|
||||
|
||||
Log("Clientes sin venta: " & sinVen)
|
||||
|
||||
Dim totClientes As Int = sinVen + conVen
|
||||
Log("Total clientes visitados: " & totClientes)
|
||||
|
||||
End If
|
||||
|
||||
|
||||
B4XPages.MainPage.batt = batterystatus(0)
|
||||
B4XPages.MainPage.montoActual = L_MONTOD.Text
|
||||
B4XPages.MainPage.clientestotal = L_CUANTOST.Text
|
||||
B4XPages.MainPage.clientesventa = l_cuantosc.Text
|
||||
B4XPages.MainPage.clientesvisitados = l_porvisitar.TEXT
|
||||
B4XPages.MainPage.clientestotal = totClientes
|
||||
B4XPages.MainPage.clientesvisitados = l_porvisitar.Text
|
||||
B4XPages.MainPage.ALMACEN = ALMACEN
|
||||
B4XPages.MainPage.rutapreventa = l_ruta.text
|
||||
B4XPages.MainPage.rutapreventa = l_ruta.Text
|
||||
|
||||
'////// Para el usuario global - Chv
|
||||
c=B4XPages.MainPage.skmt.ExecQuery("select usuario from usuarioa")
|
||||
@@ -613,6 +644,7 @@ Sub B4XPage_Appear
|
||||
|
||||
fg.Close
|
||||
|
||||
checaPedido
|
||||
'-----------------------------
|
||||
End Sub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user