Conversation
根據客戶反饋實作四項功能改善: 1. 稅金可選擇性顯示 - 新增 show_tax 欄位,用戶可選擇是否在 PDF 顯示稅金 2. 整體優惠折抵(稅前折扣) - 新增 discount_amount 和 discount_description 欄位 - 計算邏輯:小計 → 折扣 → 折後小計 → 計稅 → 總計 3. 自訂品項輸入 - 品項可手動輸入名稱和價格,不需選擇既有產品 - UI 切換「選擇產品」和「自訂品項」模式 4. 報價單附件照片 - 新增 quotation_images 資料表 - 支援多張照片上傳(JPG/PNG,最大 5MB) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
當用戶嘗試用 email 註冊,但該 email 已透過 Google OAuth 註冊過時, Supabase 會回傳空的 identities 陣列。現在會偵測此情況並顯示適當提示, 引導用戶使用登入或「忘記密碼」功能。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
將「可能透過 Google 登入」改為通用訊息,因為無法確定用戶原本的註冊方式。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
zhenheco
added a commit
that referenced
this pull request
Mar 7, 2026
* feat: 報價單功能改善 - 稅金開關、整體折扣、自訂品項、附件照片 根據客戶反饋實作四項功能改善: 1. 稅金可選擇性顯示 - 新增 show_tax 欄位,用戶可選擇是否在 PDF 顯示稅金 2. 整體優惠折抵(稅前折扣) - 新增 discount_amount 和 discount_description 欄位 - 計算邏輯:小計 → 折扣 → 折後小計 → 計稅 → 總計 3. 自訂品項輸入 - 品項可手動輸入名稱和價格,不需選擇既有產品 - UI 切換「選擇產品」和「自訂品項」模式 4. 報價單附件照片 - 新增 quotation_images 資料表 - 支援多張照片上傳(JPG/PNG,最大 5MB) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: 偵測已存在帳號並提示使用登入或忘記密碼 當用戶嘗試用 email 註冊,但該 email 已透過 Google OAuth 註冊過時, Supabase 會回傳空的 identities 陣列。現在會偵測此情況並顯示適當提示, 引導用戶使用登入或「忘記密碼」功能。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: 修正註冊錯誤訊息,移除對 Google 的特定提及 將「可能透過 Google 登入」改為通用訊息,因為無法確定用戶原本的註冊方式。 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: zhenheco <ace@zhenhe-co.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
報價單功能
show_tax欄位)註冊流程
identities.length === 0)Database Migration
migrations/041_quotation_enhancements.sqlquotation-imagesStorage bucketTest plan
🤖 Generated with Claude Code