New: “Restaurează AWB” button in order metabox — when an AWB was deleted from the order but still exists in FAN Courier SelfAWB, admins can restore it with one click
New: AWB restoration verifies existence in FAN Courier borderou before restoring, preventing restoration of truly deleted AWBs
New: “AWB Restaurat” history entry with precise timestamp for audit trail
Improved: Grace period now protects both generated and restored AWBs from automatic deletion (2-hour window)
Improved: All history scans (metabox, order list columns, AJAX handlers) recognize “AWB Restaurat” as a valid active AWB state
1.0.11 – 2026-03-02
Fixed: Grace period now uses precise microtime() timestamp from AWB history instead of date-only META_AWB_DATE (which resolved to midnight and always exceeded the 2-hour window)
Fixed: force_delete_awb_from_order() now uses the actual AWB generation date when checking the borderou, preventing false deletions of AWBs generated on previous days
Fixed: Async AWB restoration no longer triggers for orders that have no “AWB Generat” entry in history, eliminating unnecessary log spam and Action Scheduler tasks
Fixed: Fatal error when class-hgezlpfcr-integrity.php is missing — integrity class loading is now conditional with file_exists() checks
1.0.10 – 2026-02-27
Fixed: Freshly generated AWBs were incorrectly deleted when not yet visible in the FAN Courier Borderou (race condition)
New: 2-hour grace period — AWBs generated within the last 2 hours are protected from Borderou-based deletion
Fixed: Metabox auto-cleanup no longer deletes a newly regenerated AWB based on a stale “AWB Șters” history entry from the previous AWB
Improved: Sync verification now shows informative “grace period” message instead of deleting recent AWBs
1.0.9 – 2026-02-21
Security: Added file integrity monitoring system (SHA-256 hash verification)
New: Hourly WP-Cron check detects modified, deleted, or suspicious files in plugin directory
New: Admin email alerts and persistent dashboard warning on integrity check failure
New: Automatic hash regeneration on plugin updates (WordPress upgrader, FTP, or version change)
New: Detection of unexpected PHP files that may indicate compromise
1.0.8 – 2026-02-19
Security: Enabled SSL certificate verification on all eCommerce API calls (post_form() and generate_auth_token())
Previously sslverify was set to false for ecommerce.fancourier.ro endpoints; now consistently true across all API methods
Performance: Optimized check_awb_exists() — borderou responses are now cached per date (5 min transient), reducing API calls from up to 4 per check to at most 1
Performance: Multiple AWB existence checks for the same date now use a single cached API call with O(1) lookup instead of iterating all entries
Performance: Removed excessive per-entry debug logging from borderou checks
1.0.7 – 2026-02-06
Fixed: Meta boxes not displaying on HPOS order edit pages
Fixed: JavaScript not loading on HPOS order screens (Generate AWB, Verify AWB, Download PDF buttons)
Added: HPOS-compatible helper methods get_order_from_post_or_order() and get_order_id_from_post_or_order()
Added: Robust screen detection for both legacy (shop_order) and HPOS (woocommerce_page_wc-orders) screens
Improved: enqueue_admin_scripts() now correctly loads scripts on HPOS order edit pages
Improved: All meta box render callbacks now handle both WP_Post (legacy) and WC_Order (HPOS) objects
Improved: Meta box registration uses multiple hooks for maximum compatibility
Improved: Added debug logging for meta box registration and script enqueuing
Compatibility: Full HPOS support for all order page functionality (AWB generation, verification, PDF download)
1.0.6 – 2026-01-27
Added: Formal HPOS (High-Performance Order Storage) compatibility declaration
Fixed: AWB history not saving correctly when HPOS is enabled
Fixed: Order meta data caching issues with HPOS
Improved: log_awb_action() now clears order cache before reading to ensure fresh data
Improved: All AWB read operations use helper functions for legacy meta key compatibility
Compatibility: Tested with WooCommerce 9.7 HPOS mode
1.0.5 – 2025-12-07
Enhanced: Logger class now supports all PSR-3 log levels (emergency, alert, critical, error, warning, notice, info, debug)