19 Commits

Author SHA1 Message Date
426e8b0c87 VERSION 5.12.16
- Se agrego codigo para que el label de la notificacion tenga scroll vertical y se vaya al inicio del texto
2025-12-20 02:38:30 -06:00
5124f6c5a1 VERSION 5.12.16
- Se agrego codigo para que el label de la notificacion tenga scroll vertical y se vaya al inicio del texto
2025-12-20 02:30:16 -06:00
4e69087ff2 Version 5.12.16 2025-12-20 02:27:17 -06:00
4a5fc4dd05 Version 5.12.16 2025-12-20 02:23:30 -06:00
64a80661e8 Version 5.12.16
- Se agregó comando y script para enviar automáticamente el TAG con la version actual a GitHub.
2025-12-20 02:15:07 -06:00
96838bf61b VERSION 5.12.16
- Se agregó comando y script para enviar automáticamente el TAG con la version actual a GitHub.
2025-12-20 02:11:40 -06:00
7e19a197a1 Version 5.12.15.test
PRUEBA
2025-12-20 01:49:09 -06:00
64e9e6b389 Version 5.12.15.test
PRUEBA
2025-12-20 01:47:58 -06:00
63df3fbf39 Version 5.12.15.test
PRUEBA
2025-12-20 01:46:25 -06:00
e72a1381d5 Version 5.12.15.test
PRUEBA
2025-12-20 01:43:14 -06:00
367ff75966 Version 5.12.15.test
PRUEBA
2025-12-20 01:36:22 -06:00
2ec2e9acb3 Version 5.12.15.test
PRUEBA
2025-12-20 01:34:50 -06:00
246437fc98 Version 5.12.15.test
PRUEBA
2025-12-20 01:26:18 -06:00
67e0b906dc Version 5.12.15.test
PRUEBA
2025-12-20 00:41:20 -06:00
d7e6643f15 Version 5.12.15.test 2025-12-20 00:29:29 -06:00
cc5261c67f Version 5.12.15.test
Prueba
2025-12-20 00:28:03 -06:00
cc36c6c1da Version 5.12.15.test 2025-12-20 00:11:35 -06:00
441fe0c5fb Version 5.12.15.test
- Commit SIN cambios de codigo, solo de prueba con tags
2025-12-20 00:08:49 -06:00
136df88646 - VERSION 5.12.15
- Se agregga codigo para que si hay nulos en los datos de Trade Spending no truene la aplicacion.
2025-12-19 23:36:33 -06:00
7 changed files with 149 additions and 6 deletions

View File

@@ -18,8 +18,11 @@ Version=9.85
'###################### PUSH TORTOISE GIT #########################################################
'Ctrl + click ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=TortoiseGitProc&Args=/command:commit&Args=/path:"./../../"&Args=/closeonend:2
'###########################################################################################################
'###################### PUSH TORTOISE GIT CON TAG ##################################################
'Ctrl + clic para Git: ide://run?file=%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe&Args=-ExecutionPolicy&Args=Bypass&Args=-File&Args=..\_git_tag.ps1&Args=%22%PROJECT%%22&Args=%22%PROJECT_NAME%%22
'###########################################################################################################
#End Region
'Ctrl + click ide://run?file=%WINDIR%\System32\cmd.exe&Args=/c&Args=github&Args=..\..\
Sub Class_Globals

View File

@@ -917,7 +917,7 @@ Version=12.8
#Region Project Attributes
#ApplicationLabel: Kelloggs Venta
#VersionCode: 3000
#VersionName: 5.12.14
#VersionName: 5.12.16
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#BridgeLogger:true

View File

@@ -100,6 +100,6 @@ ModuleClosedNodes6=
ModuleClosedNodes7=
ModuleClosedNodes8=
ModuleClosedNodes9=
NavigationStack=C_Principal,JobDone,2227,0,Diseñador Visual,cliente.bal,-100,2,C_Cliente,Guardar_Click,1083,0,C_Cliente,mandaPendientes,1089,1,C_Principal,enviaPedidoBatch,3521,6,Main,Globals,34,0,Main,Process_Globals,28,0,C_Cliente,Class_Globals,0,0,C_Cliente,B4XPage_Created,399,6,C_Cliente,B4XPage_Appear,850,0
NavigationStack=C_Principal,cargar_Click,1031,0,Subs,modTrendSpending,2210,3,C_TrendSpending,modTrendSpending,112,2,C_Productos,B4XPage_Appear,236,0,C_TrendSpending,traeDescXSku,59,0,C_TrendSpending,traeInfoTrendSpending,73,2,C_Principal,JobDone,2240,0,Main,Activity_Create,43,0,B4XMainPage,Class_Globals,119,0,B4XMainPage,Initialize,122,0
SelectedBuild=0
VisibleModules=31,1,12,3,32,13,14,20,19,33

View File

@@ -2214,7 +2214,7 @@ Sub modTrendSpending(accion As String, tipo As String, monto As String)
acumulado = d.GetString("ACUMULADO")
End If
Log("acumulado: " & acumulado & " | monto: " & monto)
Private c As Cursor = Starter.skmt.ExecQuery($"select HIST_TSS_TIPO, ${HIST_TSS_SEMANA} as disponible, ${HIST_TSS_SEMANA_ACUM} as acumulado from HIST_TREND_SPENDING_SEMANAL where HIST_TSS_TIPO = '${tipo.ToUpperCase}'"$)
Private c As Cursor = Starter.skmt.ExecQuery($"select HIST_TSS_TIPO, ifnull(${HIST_TSS_SEMANA},0) as disponible, ifnull(${HIST_TSS_SEMANA_ACUM},0) as acumulado from HIST_TREND_SPENDING_SEMANAL where HIST_TSS_TIPO = '${tipo.ToUpperCase}'"$)
If accion.ToUpperCase = "RESTA" Then
If c.RowCount > 0 Then
c.Position = 0

110
B4A/_git_tag.ps1 Normal file
View File

@@ -0,0 +1,110 @@
# --- SCRIPT DE AUTODESCUBRIMIENTO CON GUI MEJORADA ---
# Cargar librería visual
Add-Type -AssemblyName System.Windows.Forms
Add-Type -AssemblyName System.Drawing
# 1. AUTODESCUBRIMIENTO
$projectPath = $PSScriptRoot
Write-Host "Ruta: $projectPath"
$b4aFileItem = Get-ChildItem -Path $projectPath -Filter "*.b4a" | Select-Object -First 1
if (-Not $b4aFileItem) {
[System.Windows.Forms.MessageBox]::Show("No hay archivo .b4a en esta carpeta.", "Error", "OK", "Error")
return
}
$b4aFile = $b4aFileItem.FullName
$projectName = $b4aFileItem.BaseName
Write-Host "Proyecto: $projectName"
# 2. LIMPIEZA
# $objectsPath = Join-Path $projectPath "Objects"
# if (Test-Path $objectsPath) {
# Write-Host "Limpiando Objects..."
# Remove-Item -Path "$objectsPath\*" -Recurse -Force -ErrorAction SilentlyContinue
# }
# 3. LEER VERSIÓN
$versionLine = Get-Content $b4aFile | Select-String "#VersionName:"
if (-Not $versionLine) { Write-Error "Falta #VersionName"; return }
$version = ($versionLine -split ":")[1].Trim()
$tagName = "v$version"
Set-Location $projectPath
# 4. COMMIT
$oldCommit = git rev-parse HEAD
Write-Host "----------------------------------------"
Write-Host "Versión: $version"
Write-Host "Abriendo TortoiseGit..."
# Argumentos limpios
$pathArg = '/path:"{0}"' -f $projectPath
$msgArg = '/logmsg:"VERSION {0}"' -f $version
$cmdArg = "/command:commit"
$process = Start-Process "TortoiseGitProc.exe" -ArgumentList $cmdArg, $pathArg, $msgArg -Wait -PassThru
$newCommit = git rev-parse HEAD
# 5. VALIDACIÓN
if ($oldCommit -eq $newCommit) {
Write-Warning "Commit cancelado."
git tag -d $tagName 2>$null # Borra tag local previo si existe para actualizarlo al nuevo commit
return
}
Write-Host ">> Commit detectado."
# 6. GESTIÓN DE TAGS (VISUAL TOPMOST)
Write-Host "git ls-remote --tags origin $tagName"
$remoteTagInfo = git ls-remote --tags origin $tagName
if ($remoteTagInfo) {
# --- TRUCO PARA QUE LA VENTANA SALGA AL FRENTE ---
# Creamos un formulario invisible que esté "Siempre Visible" (TopMost)
Write-Host "Recibimos remoteTagInfo"
$topForm = New-Object System.Windows.Forms.Form
$topForm.TopMost = $true
$topForm.Opacity = 0 # Invisible
$topForm.ShowInTaskbar = $false
$topForm.StartPosition = "CenterScreen"
$topForm.Show()
$topForm.Activate()
[System.Console]::Beep(1000, 200)
[System.Console]::Beep(1000, 200)
$msgBody = "El tag '$tagName' YA EXISTE en GitHub.`n`nDeseas SOBRESCRIBIRLO?`n`nSi = Borrar anterior y actualizar (Force Push).`nNo = Subir solo codigo (mantener tag viejo)."
$msgTitle = "⚠️ Conflicto de Versiones - $projectName"
# El mensaje ahora es "hijo" del formulario invisible, heredando su propiedad TopMost
Write-Host "Preguntamos que hacer con el tag"
$respuesta = [System.Windows.Forms.MessageBox]::Show($topForm, $msgBody, $msgTitle, "YesNo", "Warning")
$topForm.Dispose() # Limpiamos el formulario invisible
if ($respuesta -eq "Yes") {
Write-Host "Sobrescribiendo..."
git tag -d $tagName 2>$null
git tag -a $tagName -m "Release version $version (Updated)"
git push origin
git push origin $tagName --force
Write-Host ">> Tag actualizado (Force Push)."
} else {
Write-Host "Conservando tag anterior..."
git push origin
Write-Host ">> Código subido."
}
} else {
# Tag Nuevo
git tag -a $tagName -m "Release version $version"
git push origin --follow-tags
Write-Host ">> Versión publicada."
}
Write-Host "----------------------------------------"

29
B4A/_juntaBas.bat Normal file
View File

@@ -0,0 +1,29 @@
@echo off
setlocal EnableDelayedExpansion
:: Nombre del archivo de salida
set "OutputFile=TODOS_LOS_BAS.txt"
:: Si existe una versión anterior, la elimina para no anexar datos duplicados
if exist "!OutputFile!" del "!OutputFile!"
echo Iniciando proceso de fusion...
:: Itera sobre todos los archivos .bas en el directorio actual
for %%F in (*.bas *.b4a *.b4j) do (
echo Procesando: %%F
:: Agrega un salto de linea y el encabezado al archivo de salida
echo. >> "!OutputFile!"
echo ====================================== >> "!OutputFile!"
echo ARCHIVO: %%F >> "!OutputFile!"
echo ====================================== >> "!OutputFile!"
echo. >> "!OutputFile!"
:: Vuelca el contenido del archivo actual al archivo de salida
type "%%F" >> "!OutputFile!"
)
echo.
echo Proceso terminado. Se ha creado el archivo: !OutputFile!
pause

View File

@@ -82,11 +82,12 @@ Sub traeInfoTrendSpending As Map
End If
If semana > 0 Then
c = tsdb.ExecQuery($"select HIST_TSS_TIPO, HIST_TSS_SEMANA${semana}, ifnull(HIST_TSS_SEMANA${semana}_ACUM,0) as HIST_TSS_SEMANA${semana}_ACUM from HIST_TREND_SPENDING_SEMANAL"$)
' Log($"select HIST_TSS_TIPO, HIST_TSS_SEMANA${semana}, ifnull(HIST_TSS_SEMANA${semana}_ACUM,0) as HIST_TSS_SEMANA${semana}_ACUM from HIST_TREND_SPENDING_SEMANAL"$)
Log($"select HIST_TSS_TIPO, HIST_TSS_SEMANA${semana}, ifnull(HIST_TSS_SEMANA${semana}_ACUM,0) as HIST_TSS_SEMANA${semana}_ACUM from HIST_TREND_SPENDING_SEMANAL"$)
If c.RowCount > 0 Then
For i = 0 To c.RowCount - 1
c.Position = i
HIST_TSS_SEMANA = c.GetString($"HIST_TSS_SEMANA${semana}"$)
If Not(IsNumber(HIST_TSS_SEMANA)) Then HIST_TSS_SEMANA = 0
Private xx As String = c.GetString($"HIST_TSS_SEMANA${semana}_ACUM"$)
If xx = "null" Then xx = 0
HIST_TSS_SEMANA_ACUM = xx
@@ -124,7 +125,7 @@ Sub modTrendSpending(accion As String, tipo As String, monto As String)
acumulado = d.GetString("ACUMULADO")
End If
Log("acumulado:" & acumulado & " | monto: " & monto)
Private c As Cursor = tsdb.ExecQuery($"select HIST_TSS_TIPO, ${HIST_TSS_SEMANA} as disponible, ${HIST_TSS_SEMANA_ACUM} as acumulado from HIST_TREND_SPENDING_SEMANAL where HIST_TSS_TIPO = '${tipo.ToUpperCase}'"$)
Private c As Cursor = tsdb.ExecQuery($"select HIST_TSS_TIPO, ifnull(${HIST_TSS_SEMANA},0) as disponible, ifnull(${HIST_TSS_SEMANA_ACUM},0) as acumulado from HIST_TREND_SPENDING_SEMANAL where HIST_TSS_TIPO = '${tipo.ToUpperCase}'"$)
' Log(($"select HIST_TSS_TIPO, ${HIST_TSS_SEMANA} as disponible, ${HIST_TSS_SEMANA_ACUM} as acumulado from HIST_TREND_SPENDING_SEMANAL where HIST_TSS_TIPO = '${tipo.ToUpperCase}'"$))
Log("---- " & c.RowCount)
If accion.ToUpperCase = "RESTA" Then