# test_tva_secundare.ps1 - wrapper subtire peste harness-ul generic vfp_ui_harness.ps1.
# Runda30: garda cScc.Valid (Thisform.nOldVal) arma sincronizarea si cand grila a scris deja
# valoarea in cursor (cazul Enter); T-urile documentelor SECUNDARE se regrupeaza pe creditorii
# (scc/ascc) randurilor S proportional cu bazele, in sparge_document si in recalc_tva_document.
# Rulare:  powershell -ExecutionPolicy Bypass -File test_tva_secundare.ps1
$ErrorActionPreference = 'Stop'
$Teste = $PSScriptRoot
& (Join-Path (Split-Path $Teste -Parent) 'vfp_ui_harness.ps1') `
    -TestPrg (Join-Path $Teste 'test_tva_secundare.prg') `
    -Steps @('stare_baza','bug2_regrupare_secundara','bug1_garda_scc','persistenta_regrupare','recalc_tva_secundara') `
    -ShotsDir (Join-Path $Teste 'screenshots_tva_secundare') `
    -SyncDir (Join-Path $Teste 'uisync_tva_secundare') `
    -StepTimeoutSec 180 `
    -ReadyTimeoutSec 180
