Borderoul tine per factura ce mai are de completat si daca are articole de gestiune (camp gest, coloana si filtru), coada contabilizeaza in serie facturile bifate si incheie cu un rezumat, iar contul de furnizor/client se alege din planul de conturi. Cheia normalizata de articol, rezolvarea automata a partenerului si anularea in bloc intra tot aici. Pozitia in lista se pastreaza peste reaplicarea filtrului. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Aroafxp4z8bmM5oVECZRXY
21 lines
956 B
PowerShell
21 lines
956 B
PowerShell
# test_repro_gridprefs_cales.ps1 - rulare headless a repro-ului gridprefs.tmp vechi
|
|
# (cAles/cSemafor pe grdFacturi, frm_import_efactura).
|
|
# Rulare: powershell -ExecutionPolicy Bypass -File test_repro_gridprefs_cales.ps1
|
|
$ErrorActionPreference = 'Stop'
|
|
$Teste = $PSScriptRoot
|
|
$Prg = Join-Path $Teste 'test_repro_gridprefs_cales.prg'
|
|
$Fxp = [IO.Path]::ChangeExtension($Prg, '.fxp')
|
|
$Err = [IO.Path]::ChangeExtension($Prg, '.err')
|
|
$Log = Join-Path $Teste 'test_repro_gridprefs_cales_log.txt'
|
|
$Vfp = 'C:\Program Files (x86)\Microsoft Visual FoxPro 9\vfp9.exe'
|
|
|
|
Remove-Item $Fxp, $Err, $Log -ErrorAction SilentlyContinue
|
|
$p = Start-Process -FilePath $Vfp -ArgumentList '-A', '-T', "`"$Prg`"" -PassThru
|
|
if (-not $p.WaitForExit(240000)) {
|
|
$p.Kill()
|
|
throw 'TIMEOUT: testul nu s-a terminat in 240s'
|
|
}
|
|
if (Test-Path $Err) { throw "Eroare de compilare: $(Get-Content $Err -Raw)" }
|
|
if (-not (Test-Path $Log)) { throw "Lipseste logul $Log" }
|
|
Get-Content $Log
|