star-cloud/app/Http
sky121113 69a1d02fc7 [FIX] 電子發票列印限縮為僅統編發票,避免載具/捐贈列印失敗
1. 釐清綠界規則:InvoicePrint 僅能列印開立時 Print=1 的發票;本系統開立邏輯為「有統編才 Print=1」,故載具、捐贈、一般無統編 B2C 皆 Print=0,列印會回「取得發票列印網址失敗」。
2. 後端 printInvoice() 守衛改為檢查 metadata['business_tax_id'],非統編發票直接回「Only invoices with a tax ID can be printed」,取代原本僅擋捐贈(love_code)的舊邏輯。
3. 訂單詳情面板列印鈕顯示條件改為 business_tax_id 有值才顯示,非統編發票改顯示「此發票無可列印紙本」。
4. 新增三語系 key(Only invoices with a tax ID can be printed、This invoice has no printable copy),zh_TW/en/ja 對齊排序。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 11:41:26 +08:00
..
Controllers [FIX] 電子發票列印限縮為僅統編發票,避免載具/捐贈列印失敗 2026-06-18 11:41:26 +08:00
Middleware feat(Admin/Company): 擴充業務類型與合約期間功能,補齊多語系翻譯詞條 2026-03-30 09:08:02 +08:00
Requests feat(profile): increase profile photo upload limit to 5MB and verify webp storage 2026-05-17 13:09:39 +08:00
Kernel.php [FEAT] 重構機台日誌 UI 與增加多語系支援,並整合 IoT API 核心架構 2026-03-16 17:29:15 +08:00