diff --git a/VERSION.txt b/VERSION.txt index 5858312..7131d59 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -63ea071 2026-08-26 setup wizard +e0f1a2b 2026-08-26 setup wizard + any-file-type upload diff --git a/engine.ps1 b/engine.ps1 index 6e0e3fc..a802719 100644 --- a/engine.ps1 +++ b/engine.ps1 @@ -419,8 +419,19 @@ foreach ($practice in $practices) { Write-Host " $today\ NOT archived - $ignored file(s) were ignored (unconfigured path)." -ForegroundColor Yellow Write-Info "NOARCHIVE entity=$entityName practice=$pracName reason=$ignored ignored files" } elseif ($insFiles.Count + $ptStmts.Count -eq 0) { - Write-Host " Nothing to send in $today\ ($fileTypeLabel)." -ForegroundColor Gray - Write-Info "SKIP entity=$entityName practice=$pracName reason=no matching files in date folder" + # A configured file type that matches nothing looks identical to + # an empty folder, which is what "no pdf" hid for weeks. Say so. + $present = @(Get-ChildItem -Path $dateDir -File) + if ($insuranceExt -and $present.Count -gt 0) { + $what = ($present | Group-Object Extension | + ForEach-Object { "$($_.Count)x $($_.Name)" }) -join ", " + Write-Host " Nothing matched .$insuranceExt, but $today\ holds $($present.Count) file(s): $what" -ForegroundColor Yellow + Write-Host " -> insurance_file_type is set to '$insuranceExt' in entity.json. Remove that line to send everything, or correct it." -ForegroundColor Yellow + Write-Info "MISMATCH entity=$entityName practice=$pracName filter=$insuranceExt present=$what" + } else { + Write-Host " Nothing to send in $today\ ($fileTypeLabel)." -ForegroundColor Gray + Write-Info "SKIP entity=$entityName practice=$pracName reason=no matching files in date folder" + } } $totalOk += $insResult.Ok; $totalFail += $insResult.Fail