返礼目安額(suggested_amount)を画面から直接編集できない #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
specの計算ルール「ユーザーがsuggested_amountを直接編集→calc_method='manual'」がUIから到達できない。
現状
app/templates/return_gifts/list.htmlでsuggested_amountはhidden inputのみで、ユーザーは実額(actual_amount)しか編集できない。対応案
一覧の返礼目安セルを編集可能なinputにする。変更時は
calc_method='manual'となる挙動は既に実装済み(test_manual_suggested_marks_manual)。対応しました。一覧の返礼目安額を編集可能なinputに変更しました(hidden→number input)。変更して保存すると
calc_method='manual'になります。テスト73件パス。