Update: 2026-05-05 01:19:43

This commit is contained in:
Hamza-Ayed
2026-05-05 01:19:43 +03:00
parent ed525250c2
commit b2ed480d93
3 changed files with 88 additions and 2 deletions

View File

@@ -61,6 +61,13 @@ try {
// company_name is stored plaintext in the companies table — no decryption needed
// $invoice['company_name'] is already plaintext from the JOIN
// 3.5 Parse Validation Warnings
if (isset($invoice['validation_warnings']) && $invoice['validation_warnings']) {
$invoice['validation_warnings'] = json_decode($invoice['validation_warnings'], true);
} else {
$invoice['validation_warnings'] = [];
}
// 4. Fetch JoFotara Submission Data (latest accepted submission)
$stmtSub = $db->prepare("
SELECT jofotara_uuid, submitted_at, qr_code_raw, response_body