-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
「受注管理」で「商品追加」「商品削除」対応 #2030
「受注管理」で「商品追加」「商品削除」対応 #2030
Conversation
{% else %} | ||
{% set maxIndex = max(form.OrderDetails|keys) + 1 %} | ||
{% endif %} | ||
order_details_count = '{{ maxIndex }}'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
' '
で囲むと、文字列として変数にセットされてしまいます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
もとのソース見ると文字列でしたのでそのままにしました
order_details_count = '{{ form.OrderDetails|length }}';
order_details_countはキーを作る時使ってますので数字、文字列でも大丈夫です
#2023 のパターンは解消されているのを確認できました。 本PRの影響かは不明ですが、複数配送時にshipment_itemが削除されない事象が発生します。
このとき、
ただし、計算結果を更新する -> 受注情報を登録する、の順に操作すると正しくshipment_itemは削除されます。 |
こちらのPR #2053 はソースのほうが最新です |
@chihiro-adachi |
@chihiro-adachi |
@trebla-on |
「受注管理」で「商品追加」「商品削除」を繰り返えした場合(3つ商品登録し、真ん中の2番目を削除→再度追加)、明細がおかしくなる。
#2023
■対応内容