fix: fractional part from stock_div must be cash refunds (#273) #288
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.
提供個人修正 #273 的做法,
其中小數部分加進 gain_cash 的部分,大部分公司都是能讓股東選擇與其他股東湊齊整數做合併,或是不合併的話以面值退還現金。由於大部分公司面額是 10 元,因此這邊直接用 10 元做計算。實際上應該要另外處理 (?),或是直接保留小數部分? 將該欄位型態改為 float 避免 pydandic 報錯?