mirror of
https://github.com/KeymonSoft/Kelloggs_v4.git
synced 2026-04-20 19:49:12 +00:00
- VERSION 5.09.10
- Se escondio el boton de NoVenta en cliente hata tener ubicacion. - Se habilitó los clientes nuevos POR RUTA, en la tabla "CLIENTES_NUEVOS_X_RUTA", y si ya llegaron a limite, se "deshabilita" el boton en principal. - Se corrige que para Trade Spending, estaba todavia la ruta y almacen en duro.
This commit is contained in:
@@ -1035,15 +1035,25 @@ Sub traeUsarIntentBDWA As Boolean 'ignore
|
||||
End Sub
|
||||
|
||||
'Regresa los clientes nuevos maximos.
|
||||
'Si no está especificado, el default es 2.
|
||||
'Si no está especificado o no esta autorizado para crear clientes nuevos, el default es 0.
|
||||
Sub traeMaxClientesNuevos As Int 'ignore
|
||||
Private CN As Int = 5
|
||||
Private x As Cursor = Starter.skmt.ExecQuery($"select CAT_VA_VALOR from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'MAXCTESNUEVOS'"$)
|
||||
Private CN_AUT As Int = 0
|
||||
Private CN_MAX As Int = 0
|
||||
Private x As Cursor = Starter.skmt.ExecQuery($"select ifnull(CAT_VA_VALOR, 0) as CAT_VA_VALOR from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'CN_AUTORIZADO'"$)
|
||||
If x.RowCount > 0 Then
|
||||
x.Position = 0
|
||||
CN = x.GetString("CAT_VA_VALOR")
|
||||
CN_AUT = x.GetInt("CAT_VA_VALOR")
|
||||
End If
|
||||
Return CN
|
||||
If CN_AUT = 1 Then
|
||||
Private x As Cursor = Starter.skmt.ExecQuery($"select ifnull(CAT_VA_VALOR, 0) as CAT_VA_VALOR from CAT_VARIABLES where CAT_VA_DESCRIPCION = 'CN_CUANTOS'"$)
|
||||
If x.RowCount > 0 Then
|
||||
x.Position = 0
|
||||
CN_MAX = x.GetString("CAT_VA_VALOR")
|
||||
End If
|
||||
End If
|
||||
x.Close
|
||||
Log($"Clientes Nuevos, Autorizado ${CN_AUT}, Cuantos: ${CN_MAX}"$)
|
||||
Return CN_MAX
|
||||
End Sub
|
||||
|
||||
'Regresa verdadero o falso dependiendo si el cliente lleva pedido DOE.
|
||||
|
||||
Reference in New Issue
Block a user